mercurial/patch.py
changeset 2874 3d6efcbbd1c9
parent 2873 4ec58b157265
child 2880 eab07a7b7491
equal deleted inserted replaced
2873:4ec58b157265 2874:3d6efcbbd1c9
   265         fp = repo.ui
   265         fp = repo.ui
   266 
   266 
   267     if not node1:
   267     if not node1:
   268         node1 = repo.dirstate.parents()[0]
   268         node1 = repo.dirstate.parents()[0]
   269     # reading the data for node1 early allows it to play nicely
   269     # reading the data for node1 early allows it to play nicely
   270     # with repo.changes and the revlog cache.
   270     # with repo.status and the revlog cache.
   271     change = repo.changelog.read(node1)
   271     change = repo.changelog.read(node1)
   272     mmap = repo.manifest.read(change[0])
   272     mmap = repo.manifest.read(change[0])
   273     date1 = util.datestr(change[2])
   273     date1 = util.datestr(change[2])
   274 
   274 
   275     if not changes:
   275     if not changes:
   276         changes = repo.changes(node1, node2, files, match=match)
   276         changes = repo.status(node1, node2, files, match=match)[:5]
   277     modified, added, removed, deleted, unknown = changes
   277     modified, added, removed, deleted, unknown = changes
   278     if files:
   278     if files:
   279         def filterfiles(filters):
   279         def filterfiles(filters):
   280             l = [x for x in files if x in filters]
   280             l = [x for x in files if x in filters]
   281 
   281