Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/patch.py @ 2874:3d6efcbbd1c9
remove localrepository.changes.
use localrepository.status instead.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sat, 12 Aug 2006 16:40:12 -0700 |
parents | 4ec58b157265 |
children | eab07a7b7491 |
comparison
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 |