Commits

Yuya Nishihara committed 5d1e47e

sync: update scheme name in exploreurl/terminalurl for mercurial.util.url

Note that util.url() does not set scheme attribute if omitted.

  • Participants
  • Parent commits 9cb4512
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/sync.py

     def exploreurl(self):
         url = unicode(self.menuurl)
         u = parseurl(url)
-        if u.scheme == 'local':
+        if not u.scheme or u.scheme == 'file':
             qtlib.openlocalurl(u.path)
         else:
             QDesktopServices.openUrl(QUrl(url))
     def terminalurl(self):
         url = unicode(self.menuurl)
         u = parseurl(url)
-        if u.scheme != 'local':
+        if u.scheme and u.scheme != 'file':
             qtlib.InfoMsgBox(_('Repository not local'),
                         _('A terminal shell cannot be opened for remote'))
             return