Skip to content

Commit 39cda3c

Browse files
committed
Update cli.py
Use dict.get for all parameter.
1 parent 94cc3ca commit 39cda3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcs/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def get_changesets(self, repo, **options):
406406
Default is ``None``.
407407
"""
408408
branch_name = None
409-
if not options['all']:
409+
if not options.get('all', None):
410410
branch_name = options.get('branch') or repo.workdir.get_branch()
411411
if options.get('start_date'):
412412
options['start_date'] = parse_datetime(options['start_date'])

0 commit comments

Comments
 (0)