mercurial/context.py
branchstable
changeset 27941 75fa75d31495
parent 27906 c183f7b79541
child 27983 b7af616ca675
equal deleted inserted replaced
27940:cfe7da66f555 27941:75fa75d31495
   140                 added.append(fn)
   140                 added.append(fn)
   141             elif node2 is None:
   141             elif node2 is None:
   142                 removed.append(fn)
   142                 removed.append(fn)
   143             elif flag1 != flag2:
   143             elif flag1 != flag2:
   144                 modified.append(fn)
   144                 modified.append(fn)
   145             elif self.rev() is not None:
   145             elif node2 != _newnode:
   146                 # When comparing files between two commits, we save time by
   146                 # When comparing files between two commits, we save time by
   147                 # not comparing the file contents when the nodeids differ.
   147                 # not comparing the file contents when the nodeids differ.
   148                 # Note that this means we incorrectly report a reverted change
   148                 # Note that this means we incorrectly report a reverted change
   149                 # to a file as a modification.
   149                 # to a file as a modification.
   150                 modified.append(fn)
   150                 modified.append(fn)