mercurial/commands.py
changeset 16690 de2267517841
parent 16689 f366d4c2ff34
child 16705 c2d9ef43ff6c
--- a/mercurial/commands.py	Sat May 12 16:02:46 2012 +0200
+++ b/mercurial/commands.py	Sat May 12 20:06:04 2012 +0200
@@ -5634,9 +5634,9 @@
             f = url.open(ui, fname)
             gen = changegroup.readbundle(f, fname)
             modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname)
-        bookmarks.updatecurrentbookmark(repo, wc.node(), wc.branch())
     finally:
         lock.release()
+    bookmarks.updatecurrentbookmark(repo, wc.node(), wc.branch())
     return postincoming(ui, repo, modheads, opts.get('update'), None)
 
 @command('^update|up|checkout|co',