cmdutil.walkchangerevs: use '-1:0' instead ot 'tip:0'
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 19 Feb 2008 19:20:10 -0300
changeset 6145 154f8be6272b
parent 6144 08e0825b8106
child 6146 e3dd35d3603b
cmdutil.walkchangerevs: use '-1:0' instead ot 'tip:0' This avoids a possibly expensive tag lookup.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Tue Feb 19 19:20:10 2008 -0300
+++ b/mercurial/cmdutil.py	Tue Feb 19 19:20:10 2008 -0300
@@ -967,7 +967,7 @@
     if follow:
         defrange = '%s:0' % repo.changectx().rev()
     else:
-        defrange = 'tip:0'
+        defrange = '-1:0'
     revs = revrange(repo, opts['rev'] or [defrange])
     wanted = {}
     slowpath = anypats or opts.get('removed')