##// END OF EJS Templates
log: make opts entries optional (issue2423)
Patrick Mezard -
r17308:2e0805f5 stable
parent child Browse files
Show More
@@ -996,7 +996,7 b' def walkchangerevs(repo, match, opts, pr'
996 996 defrange = '%s:0' % repo['.'].rev()
997 997 else:
998 998 defrange = '-1:0'
999 revs = scmutil.revrange(repo, opts['rev'] or [defrange])
999 revs = scmutil.revrange(repo, opts.get('rev') or [defrange])
1000 1000 if not revs:
1001 1001 return []
1002 1002 wanted = set()
@@ -4074,7 +4074,7 b' def log(ui, repo, *pats, **opts):'
4074 4074 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
4075 4075
4076 4076 df = False
4077 if opts["date"]:
4077 if opts.get("date"):
4078 4078 df = util.matchdate(opts["date"])
4079 4079
4080 4080 branches = opts.get('branch', []) + opts.get('only_branch', [])
General Comments 0
You need to be logged in to leave comments. Login now