[OpenWalnut-Dev] Transferring changes from one branch to another

Mathias Goldau math at informatik.uni-leipzig.de
Wed Jul 18 12:30:00 CEST 2012


Hi,

as sometimes you want to copy bugfixes from default to a certain release
branch/branches, Mercurial has a very neat command for that: `hg help graft`
(see [1]) For example if you have commited a bugfix to default, but now want
it also to be in OpenWalnut_1.3 you may do this:

hg up -r OpenWalnut_1.3
hg graft --edit 6073

Then edit the commit message, e.g. change '[FIX #189]..' to '[PATCH #189]..'.
Check what you want to push with `hg outgoing`, and finally `hg push`. I just
wanted to let you know.

Mathias

--
  [1] http://www.selenic.com/mercurial/hg.1.html#graft

-- 
Institut für Informatik
Universität Leipzig
Johannisgasse 26, 04103 Leipzig
Phone: +493419732283



More information about the OpenWalnut-Dev mailing list