hgext/absorb.py
changeset 44985 1ca0047fd7e1
parent 44984 bfef35bb4ecb
child 44991 65d19d9c8e76
equal deleted inserted replaced
44984:bfef35bb4ecb 44985:1ca0047fd7e1
   780             memworkingcopy = self._getnewfilecontents(ctx)
   780             memworkingcopy = self._getnewfilecontents(ctx)
   781             if not memworkingcopy and not lastcommitted:
   781             if not memworkingcopy and not lastcommitted:
   782                 # nothing changed, nothing commited
   782                 # nothing changed, nothing commited
   783                 nextp1 = ctx
   783                 nextp1 = ctx
   784                 continue
   784                 continue
   785             if self._willbecomenoop(memworkingcopy, ctx, nextp1):
   785             if ctx.files() and self._willbecomenoop(
       
   786                 memworkingcopy, ctx, nextp1
       
   787             ):
   786                 # changeset is no longer necessary
   788                 # changeset is no longer necessary
   787                 self.replacemap[ctx.node()] = None
   789                 self.replacemap[ctx.node()] = None
   788                 msg = _(b'became empty and was dropped')
   790                 msg = _(b'became empty and was dropped')
   789             else:
   791             else:
   790                 # changeset needs re-commit
   792                 # changeset needs re-commit