diff -r a969b1470987 -r 425a30ddfff6 mercurial/patch.py --- 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