Commits

Waldemar Kornewald  committed 9c0aac6

fixed bug

  • Participants
  • Parent commits ca75ee8

Comments (0)

Files changed (1)

File rewriteurls.py

         return result
 
     if not dest:
-        dest = source.replace('\\', '/').rsplit('/', 1)[-1]
+        dest = source.replace('\\', '/').rstrip('/').rsplit('/', 1)[-1]
     with open(os.path.join(dest, '.hg', 'hgrc'), 'r') as fp:
         content = fp.read()
     source = ui.expandpath(source)