Commits

Yuya Nishihara committed 28929e9

hgrcd: fix handling of demangled repo name

Comments (0)

Files changed (1)

 
 def _rctorepopaths(rcpath, targetdir):
     reponame, cfgname = rcpath.rsplit('.', 1)
-    dest = os.path.join(targetdir, manglereponame(reponame), '.hg', cfgname)
+    reponame = manglereponame(reponame)
+    dest = os.path.join(targetdir, reponame, '.hg', cfgname)
     repodir = os.path.join(targetdir, reponame)
     return repodir, dest