mercurial/localrepo.py
changeset 3296 4546a5e31cb8
parent 3295 764688cf51e5
child 3299 a1aad25ccc3e
child 3300 a2d93b186a0e
equal deleted inserted replaced
3295:764688cf51e5 3296:4546a5e31cb8
   495                 fp1, fp2 = fp2, nullid
   495                 fp1, fp2 = fp2, nullid
   496             elif fpa == fp2:
   496             elif fpa == fp2:
   497                 fp2 = nullid
   497                 fp2 = nullid
   498 
   498 
   499             # is the file unmodified from the parent? report existing entry
   499             # is the file unmodified from the parent? report existing entry
   500             # fixme: use filelog.cmp()
   500             if fp2 == nullid and not filelog.cmp(fp1, text):
   501             if fp2 == nullid and text == filelog.read(fp1):
       
   502                 return (fp1, None, None, {})
   501                 return (fp1, None, None, {})
   503 
   502 
   504         return (None, fp1, fp2, meta)
   503         return (None, fp1, fp2, meta)
   505 
   504 
   506     def rawcommit(self, files, text, user, date, p1=None, p2=None, wlock=None):
   505     def rawcommit(self, files, text, user, date, p1=None, p2=None, wlock=None):