Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 3526:68341c06bc61
Make revrange return a list of ints so that callers don't have to convert
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Oct 2006 17:27:07 -0500 |
parents | cf0f8d9256c7 |
children | 39011927fdb0 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Oct 26 17:15:55 2006 -0500 +++ b/mercurial/cmdutil.py Thu Oct 26 17:27:07 2006 -0500 @@ -49,7 +49,7 @@ return defval return repo.changelog.rev(repo.lookup(val)) - seen = {} + seen, l = {}, [] for spec in revs: if revrangesep in spec: start, end = spec.split(revrangesep, 1) @@ -60,13 +60,15 @@ if rev in seen: continue seen[rev] = 1 - yield rev + l.append(rev) else: rev = revfix(repo, spec, None) if rev in seen: continue seen[rev] = 1 - yield rev + l.append(rev) + + return l def make_filename(repo, pat, node, total=None, seqno=None, revwidth=None, pathname=None):