[PATCH 1 of 2 RFC] unbundle: don't forward the current bookmark

Idan Kamara idankk86 at gmail.com
Tue Apr 19 07:34:24 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1303216397 -10800
# Node ID 25d517cc7b5652925bf7d7188c9e93d6866931e7
# Parent  f36d358e04aa7f9822f45f5226c7d01f253a57a9
unbundle: don't forward the current bookmark

it's unintuitive for unbundle to move the current
bookmark, this is now done by 'hg update'.

diff -r f36d358e04aa -r 25d517cc7b56 mercurial/commands.py
--- a/mercurial/commands.py	Tue Apr 19 15:26:44 2011 +0300
+++ b/mercurial/commands.py	Tue Apr 19 15:33:17 2011 +0300
@@ -4125,14 +4125,12 @@
     fnames = (fname1,) + fnames
 
     lock = repo.lock()
-    wc = repo['.']
     try:
         for fname in fnames:
             f = url.open(ui, fname)
             gen = changegroup.readbundle(f, fname)
             modheads = repo.addchangegroup(gen, 'unbundle', 'bundle:' + fname,
                                            lock=lock)
-        bookmarks.updatecurrentbookmark(repo, wc.node(), wc.branch())
     finally:
         lock.release()
     return postincoming(ui, repo, modheads, opts.get('update'), None)


More information about the Mercurial-devel mailing list