comparison mercurial/cmdutil.py @ 3718:7db88b094b14

fix hg log -r ''
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 27 Nov 2006 22:56:26 -0200
parents 67f44b825784
children cb48cd27d3f4
comparison
equal deleted inserted replaced
3717:9e248cfd8b94 3718:7db88b094b14
43 43
44 def revrange(repo, revs): 44 def revrange(repo, revs):
45 """Yield revision as strings from a list of revision specifications.""" 45 """Yield revision as strings from a list of revision specifications."""
46 46
47 def revfix(repo, val, defval): 47 def revfix(repo, val, defval):
48 if not val and val != 0: 48 if not val and val != 0 and defval is not None:
49 return defval 49 return defval
50 return repo.changelog.rev(repo.lookup(val)) 50 return repo.changelog.rev(repo.lookup(val))
51 51
52 seen, l = {}, [] 52 seen, l = {}, []
53 for spec in revs: 53 for spec in revs: