Mercurial > hg
changeset 16379:5cbfbb838198
scmutil: use context instead of lookup
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 08 Apr 2012 12:38:23 -0500 |
parents | c463f46fe050 |
children | 84ba30e8c790 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sun Apr 08 12:38:10 2012 -0500 +++ b/mercurial/scmutil.py Sun Apr 08 12:38:23 2012 -0500 @@ -523,7 +523,7 @@ def revfix(repo, val, defval): if not val and val != 0 and defval is not None: return defval - return repo.changelog.rev(repo.lookup(val)) + return repo[val].rev() seen, l = set(), [] for spec in revs: