D5484: pull: use opts.get('bookmark') instead of opts['bookmark']
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Jan 7 07:19:28 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5967995c32bb: pull: use opts.get('bookmark') instead of opts['bookmark'] (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5484?vs=13045&id=13047
REVISION DETAIL
https://phab.mercurial-scm.org/D5484
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4427,7 +4427,7 @@
pullopargs = {}
nodes = None
- if opts['bookmark'] or revs:
+ if opts.get('bookmark') or revs:
# The list of bookmark used here is the same used to actually update
# the bookmark names, to avoid the race from issue 4689 and we do
# all lookup and bookmark queries in one go so they see the same
@@ -4448,7 +4448,7 @@
remotebookmarks = fremotebookmarks.result()
remotebookmarks = bookmarks.unhexlifybookmarks(remotebookmarks)
pullopargs['remotebookmarks'] = remotebookmarks
- for b in opts['bookmark']:
+ for b in opts.get('bookmark', []):
b = repo._bookmarks.expandname(b)
if b not in remotebookmarks:
raise error.Abort(_('remote bookmark %s not found!') % b)
To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list