equal
deleted
inserted
replaced
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: |