Commits

Yuya Nishihara  committed 463f9f1

hgignore: use util.expandpath() to expand env vars of ui.ignore (fixes #2306)

Mercurial core behaves that way:
http://selenic.com/repo/hg/diff/d78fe60f6bda/mercurial/dirstate.py

  • Participants
  • Parent commits 5105ea2
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/hgignore.py

         ignorefiles = [repo.wjoin('.hgignore')]
         for name, value in repo.ui.configitems('ui'):
             if name == 'ignore' or name.startswith('ignore.'):
-                ignorefiles.append(os.path.expanduser(value))
+                ignorefiles.append(util.expandpath(value))
 
         filecombo = QComboBox()
         hbox.addWidget(filecombo)