summaryrefslogtreecommitdiff
path: root/admin/notes
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-14 21:41:07 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-14 21:41:07 -0800
commitfae95934b8edae3f538063e756ac799ed94313b2 (patch)
tree3bb814c43cd50db54591bf685e5cb72b863b5833 /admin/notes
parent6d302144c218f12bd380344ae2d3ed87a6ea9327 (diff)
parentbb55f713d2e4ea089a861a257d7d000432642ce9 (diff)
downloademacs-fae95934b8edae3f538063e756ac799ed94313b2.tar.gz
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.
The following description uses bound branches, presumably it works in
a similar way with unbound ones.
+0) (First time only) Get the bzr changelog_merge plugin:
+
+cd ~/.bazaar/plugins
+bzr branch lp:bzr-changelog-merge
+mv bzr-changelog-merge changelog_merge
+
+This will make merging ChangeLogs a lot smoother. It merges new
+entries to the top of the file, rather than trying to fit them in
+mid-way through.
+
1) Get clean, up-to-date copies of the emacs-23 and trunk branches.
Check for any uncommitted changes with bzr status.
2) M-x cd /path/to/trunk
+The first time only, do this:
+cd .bzr/branch
+Add the following line to branch.conf:
+changelog_merge_files = ChangeLog
+
3) load admin/bzrmerge.el
4) 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
choosing either the trunk or branch version, then run `make -C lisp
autoloads' to update the md5sums to the correct trunk value before
committing.
+
+* Re-adding a file that has been removed from the repository
+
+It's easy to get this wrong. Let's suppose you've done:
+
+bzr remove file; bzr commit
+
+and now, sometime later, you realize this was a mistake and file needs
+to be brought back. DON'T just do:
+
+bzr add file; bzr commit
+
+This restores file, but without its history (`bzr log file' will be
+very short). This is because file gets re-added with a new file-id
+(use `bzr file-id file' to see the id).
+
+Insteading of adding the file, try:
+
+bzr revert -rN file; bzr commit
+
+where revision N+1 is the one where file was removed.
+
+You could also try `bzr add --file-ids-from', if you have a copy of
+another branch where file still exists.