##// 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 defrange = '%s:0' % repo['.'].rev()
996 defrange = '%s:0' % repo['.'].rev()
997 else:
997 else:
998 defrange = '-1:0'
998 defrange = '-1:0'
999 revs = scmutil.revrange(repo, opts['rev'] or [defrange])
999 revs = scmutil.revrange(repo, opts.get('rev') or [defrange])
1000 if not revs:
1000 if not revs:
1001 return []
1001 return []
1002 wanted = set()
1002 wanted = set()
@@ -4074,7 +4074,7 b' def log(ui, repo, *pats, **opts):'
4074 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
4074 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
4075
4075
4076 df = False
4076 df = False
4077 if opts["date"]:
4077 if opts.get("date"):
4078 df = util.matchdate(opts["date"])
4078 df = util.matchdate(opts["date"])
4079
4079
4080 branches = opts.get('branch', []) + opts.get('only_branch', [])
4080 branches = opts.get('branch', []) + opts.get('only_branch', [])
General Comments 0
You need to be logged in to leave comments. Login now