mercurial/patch.py
changeset 7972 425a30ddfff6
parent 7873 4a4c7f6a5912
parent 7971 6ea0318daf75
child 8090 388bb482024e
--- a/mercurial/patch.py	Sat Apr 04 18:08:41 2009 +0200
+++ b/mercurial/patch.py	Sat Apr 04 19:43:00 2009 +0200
@@ -910,7 +910,7 @@
                 # else error?
                 # copy/rename + modify should modify target, not source
                 gp = changed.get(bfile)
-                if gp and gp.op in ('COPY', 'DELETE', 'RENAME'):
+                if gp and gp.op in ('COPY', 'DELETE', 'RENAME', 'ADD'):
                     afile = bfile
                     gitworkdone = True
             newfile = True