Commits

Ronny Pfannschmidt committed 6774b04

deal with hg's new path normalization

  • Participants
  • Parent commits 9b6f268

Comments (0)

Files changed (1)

 
     def instance(self, ui, url, create):
         scheme, path = url.split(':', 1)
-        if path.startswith('//'):
-            path = path[2:]
+        # strip the occasional leading // and
+        # the tailing / of the new normalization
+        path = path.strip('/')
         username = get_username(ui)
         if '/' not in path:
             path = username + '/' + path