Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 17308:2e0805f59736 stable
log: make opts entries optional (issue2423)
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 01 Aug 2012 15:49:00 +0200 |
parents | e51d4aedace9 |
children | 7124f984dc8d |
comparison
equal
deleted
inserted
replaced
17307:a028ce66e2b7 | 17308:2e0805f59736 |
---|---|
4072 if opts.get('rev'): | 4072 if opts.get('rev'): |
4073 endrev = max(scmutil.revrange(repo, opts.get('rev'))) + 1 | 4073 endrev = max(scmutil.revrange(repo, opts.get('rev'))) + 1 |
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', []) |
4081 opts['branch'] = [repo.lookupbranch(b) for b in branches] | 4081 opts['branch'] = [repo.lookupbranch(b) for b in branches] |
4082 | 4082 |