diff -r 4cc3fb23881d -r d0f1d8b4de57 mercurial/commands.py --- a/mercurial/commands.py Sat May 30 12:46:30 2015 +0900 +++ b/mercurial/commands.py Thu May 28 13:55:03 2015 -0700 @@ -5119,11 +5119,11 @@ revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) - remotebookmarks = other.listkeys('bookmarks') if opts.get('bookmark'): if not revs: revs = [] + remotebookmarks = other.listkeys('bookmarks') for b in opts['bookmark']: if b not in remotebookmarks: raise util.Abort(_('remote bookmark %s not found!') % b)