Commits

Yuya Nishihara  committed 00dc703

repowidget: specify incoming bundle by plain file path to avoid url parsing

If repository path starts with "bundle:", bundlerepo tries to split it to a
repo path and a bundle path by "+". It doesn't work well if either of paths
contains "+" character, which is unfortunately common on Mac OS X.

Mercurial can accept bundle file name without "bundle:", so the problem can
be avoided by omitting the scheme part.

  • Participants
  • Parent commits beae415

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

             self.clearBundle()
         self.bundlesource = bsource and unicode(bsource) or None
         oldlen = len(self.repo)
-        self._repoagent.setOverlay('bundle:%s' % bfile)
+        # no "bundle:<bfile>" because bfile may contain "+" separator
+        self._repoagent.setOverlay(bfile)
         self.filterbar.setQuery('bundle()')
         self.filterbar.runQuery()
         self.titleChanged.emit(self.title())