aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes
diff options
context:
space:
mode:
authorPaul Eggert2011-02-14 21:41:07 -0800
committerPaul Eggert2011-02-14 21:41:07 -0800
commitfae95934b8edae3f538063e756ac799ed94313b2 (patch)
tree3bb814c43cd50db54591bf685e5cb72b863b5833 /admin/notes
parent6d302144c218f12bd380344ae2d3ed87a6ea9327 (diff)
parentbb55f713d2e4ea089a861a257d7d000432642ce9 (diff)
downloademacs-fae95934b8edae3f538063e756ac799ed94313b2.tar.gz
emacs-fae95934b8edae3f538063e756ac799ed94313b2.zip
Merge from mainline.
Diffstat (limited to 'admin/notes')
-rw-r--r--admin/notes/bzr39
1 files changed, 39 insertions, 0 deletions
diff --git a/admin/notes/bzr b/admin/notes/bzr
index cb2a1bd4e4f..11f0af17a3b 100644
--- a/admin/notes/bzr
+++ b/admin/notes/bzr
@@ -65,11 +65,26 @@ removes a file, then remove the corresponding files by hand.
65The following description uses bound branches, presumably it works in 65The following description uses bound branches, presumably it works in
66a similar way with unbound ones. 66a similar way with unbound ones.
67 67
680) (First time only) Get the bzr changelog_merge plugin:
69
70cd ~/.bazaar/plugins
71bzr branch lp:bzr-changelog-merge
72mv bzr-changelog-merge changelog_merge
73
74This will make merging ChangeLogs a lot smoother. It merges new
75entries to the top of the file, rather than trying to fit them in
76mid-way through.
77
681) Get clean, up-to-date copies of the emacs-23 and trunk branches. 781) Get clean, up-to-date copies of the emacs-23 and trunk branches.
69Check for any uncommitted changes with bzr status. 79Check for any uncommitted changes with bzr status.
70 80
712) M-x cd /path/to/trunk 812) M-x cd /path/to/trunk
72 82
83The first time only, do this:
84cd .bzr/branch
85Add the following line to branch.conf:
86changelog_merge_files = ChangeLog
87
733) load admin/bzrmerge.el 883) load admin/bzrmerge.el
74 89
754) M-x bzrmerge RET /path/to/emacs-23 RET 904) M-x bzrmerge RET /path/to/emacs-23 RET
@@ -119,3 +134,27 @@ right thing to do is merge everything else, resolve the conflict by
119choosing either the trunk or branch version, then run `make -C lisp 134choosing either the trunk or branch version, then run `make -C lisp
120autoloads' to update the md5sums to the correct trunk value before 135autoloads' to update the md5sums to the correct trunk value before
121committing. 136committing.
137
138* Re-adding a file that has been removed from the repository
139
140It's easy to get this wrong. Let's suppose you've done:
141
142bzr remove file; bzr commit
143
144and now, sometime later, you realize this was a mistake and file needs
145to be brought back. DON'T just do:
146
147bzr add file; bzr commit
148
149This restores file, but without its history (`bzr log file' will be
150very short). This is because file gets re-added with a new file-id
151(use `bzr file-id file' to see the id).
152
153Insteading of adding the file, try:
154
155bzr revert -rN file; bzr commit
156
157where revision N+1 is the one where file was removed.
158
159You could also try `bzr add --file-ids-from', if you have a copy of
160another branch where file still exists.