Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 2875: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 |
line wrap: on
line diff
--- a/mercurial/patch.py Sat Aug 12 16:13:27 2006 -0700 +++ b/mercurial/patch.py Sat Aug 12 16:40:12 2006 -0700 @@ -267,13 +267,13 @@ if not node1: node1 = repo.dirstate.parents()[0] # reading the data for node1 early allows it to play nicely - # with repo.changes and the revlog cache. + # with repo.status and the revlog cache. change = repo.changelog.read(node1) mmap = repo.manifest.read(change[0]) date1 = util.datestr(change[2]) if not changes: - changes = repo.changes(node1, node2, files, match=match) + changes = repo.status(node1, node2, files, match=match)[:5] modified, added, removed, deleted, unknown = changes if files: def filterfiles(filters):