Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 689:4315db147f00
Make manifest lookup use changeset ids
manifest hash: 83cf1ac9c68ad9e8de29d2c629c8a06eaeeeae15
author | mpm@selenic.com |
---|---|
date | Wed, 13 Jul 2005 01:42:48 -0800 |
parents | 44b30755d07c |
children | 10c0264751da b266e92bcd0b |
comparison
equal
deleted
inserted
replaced
688:b50cd98bb7e4 | 689:4315db147f00 |
---|---|
717 | 717 |
718 def manifest(ui, repo, rev = []): | 718 def manifest(ui, repo, rev = []): |
719 """output the latest or given revision of the project manifest""" | 719 """output the latest or given revision of the project manifest""" |
720 n = repo.manifest.tip() | 720 n = repo.manifest.tip() |
721 if rev: | 721 if rev: |
722 n = repo.manifest.lookup(rev) | 722 try: |
723 # assume all revision numbers are for changesets | |
724 n = repo.lookup(rev) | |
725 change = repo.changelog.read(n) | |
726 n = change[0] | |
727 except: | |
728 n = repo.manifest.lookup(rev) | |
729 | |
723 m = repo.manifest.read(n) | 730 m = repo.manifest.read(n) |
724 mf = repo.manifest.readflags(n) | 731 mf = repo.manifest.readflags(n) |
725 files = m.keys() | 732 files = m.keys() |
726 files.sort() | 733 files.sort() |
727 | 734 |