Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 6145:154f8be6272b
cmdutil.walkchangerevs: use '-1:0' instead ot 'tip:0'
This avoids a possibly expensive tag lookup.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 19 Feb 2008 19:20:10 -0300 |
parents | 989467e8e3a9 |
children | a79d9408806f |
comparison
equal
deleted
inserted
replaced
6144:08e0825b8106 | 6145:154f8be6272b |
---|---|
965 return [], matchfn | 965 return [], matchfn |
966 | 966 |
967 if follow: | 967 if follow: |
968 defrange = '%s:0' % repo.changectx().rev() | 968 defrange = '%s:0' % repo.changectx().rev() |
969 else: | 969 else: |
970 defrange = 'tip:0' | 970 defrange = '-1:0' |
971 revs = revrange(repo, opts['rev'] or [defrange]) | 971 revs = revrange(repo, opts['rev'] or [defrange]) |
972 wanted = {} | 972 wanted = {} |
973 slowpath = anypats or opts.get('removed') | 973 slowpath = anypats or opts.get('removed') |
974 fncache = {} | 974 fncache = {} |
975 | 975 |