mercurial/commands.py
changeset 18848 cc741817a49e
parent 18828 b718999f2e0b
child 18851 a60963c02f92
--- a/mercurial/commands.py	Fri Mar 29 16:07:57 2013 -0700
+++ b/mercurial/commands.py	Fri Mar 29 19:06:23 2013 -0700
@@ -4499,11 +4499,11 @@
     if opts.get('bookmark'):
         if not revs:
             revs = []
-        rb = other.listkeys('bookmarks')
+        remotebookmarks = other.listkeys('bookmarks')
         for b in opts['bookmark']:
-            if b not in rb:
+            if b not in remotebookmarks:
                 raise util.Abort(_('remote bookmark %s not found!') % b)
-            revs.append(rb[b])
+            revs.append(remotebookmarks[b])
 
     if revs:
         try:
@@ -4530,7 +4530,7 @@
         for b in opts['bookmark']:
             # explicit pull overrides local bookmark if any
             ui.status(_("importing bookmark %s\n") % b)
-            marks[b] = repo[rb[b]].node()
+            marks[b] = repo[remotebookmarks[b]].node()
         marks.write()
 
     return ret