--- a/hgext/convert/monotone.py Sat Apr 11 21:17:11 2009 +0200
+++ b/hgext/convert/monotone.py Sat Apr 11 23:21:39 2009 +0200
@@ -111,11 +111,10 @@
def mtnrenamefiles(self, files, fromdir, todir):
renamed = {}
for tofile in files:
- if tofile.startswith(todir):
+ if tofile.startswith(todir + '/'):
renamed[tofile] = fromdir + tofile[len(todir):]
return renamed
-
# implement the converter_source interface:
def getheads(self):
@@ -158,6 +157,7 @@
"from '%s' to '%s'")
% (fromfile, tofile), '\n')
files[tofile] = rev
+ copies[tofile] = fromfile
for fromfile in renamed.values():
files[fromfile] = rev
return (files.items(), copies)