hgext/convert/monotone.py
changeset 8051 718c8f01feb2
parent 8026 683d8ebcf434
parent 8050 087cc65bebff
child 8052 fe2a87a3d344
--- 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)