diff -r 0ac7fee4f024 -r b51a8138292a mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Jun 09 01:04:28 2007 -0300 +++ b/mercurial/localrepo.py Sat Jun 09 01:04:28 2007 -0300 @@ -693,9 +693,9 @@ elif fpa == fp2: fp2 = nullid - # is the file unmodified from the parent? report existing entry - if fp2 == nullid and not fl.cmp(fp1, t): - return fp1 + # is the file unmodified from the parent? report existing entry + if fp2 == nullid and not fl.cmp(fp1, t): + return fp1 changelist.append(fn) return fl.add(t, meta, transaction, linkrev, fp1, fp2)