comparison admin/notes/bzr @ 112273:d074b0e8afef

* admin/notes/bzr: Add an idiot's guide to merging between branches.
author Glenn Morris <rgm@gnu.org>
date Sat, 15 Jan 2011 13:47:46 -0800
parents c8d754c15c55
children 60871b0684c4
comparison
equal deleted inserted replaced
112272:108035eb74dc 112273:d074b0e8afef
36 36
37 Or use shelves; or rebase; or do something else. See the thread for 37 Or use shelves; or rebase; or do something else. See the thread for
38 yet another fun excursion into the exciting world of version control. 38 yet another fun excursion into the exciting world of version control.
39 39
40 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00086.html 40 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00086.html
41
42 * How to merge changes from emacs-23 to trunk
43
44 The following description uses bound branches, presumably it works in
45 a similar way with unbound ones.
46
47 1) Get clean, up-to-date copies of the emacs-23 and trunk branches.
48 Check for any uncommitted changes with bzr status.
49
50 2) M-x cd /path/to/trunk
51
52 3) load admin/bzrmerge.el
53
54 4) M-x bzrmerge RET /path/to/emacs-23 RET
55
56 It will prompt about revisions that should be skipped, based on the
57 regexp in bzrmerge-missing. If there are more revisions that you know
58 need skipping, you'll have to do that by hand.
59
60 5) It will stop if there are any conflicts. Resolve them.
61 Using smerge-mode, there are menu items to skip to the next conflict,
62 and to take either the trunk, branch, or both copies.
63
64 6) After resolving all conflicts, you might need to run the command
65 again if there are more revisions still to merge.
66 You can commit either before you do this (eg if you had a lot of
67 conflicts to resolve and don't want to get confused), or refrain from
68 committing until bzrmerge has merged all revisions.
69