aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes
diff options
context:
space:
mode:
authorGlenn Morris2011-02-13 18:52:02 -0800
committerGlenn Morris2011-02-13 18:52:02 -0800
commita241b7c067132a073c29dc924846952fd7a7391b (patch)
tree0b5981bdddd689d79c4bde5d36d5dc48144bc144 /admin/notes
parent33f6cf7b4c003932ae6fd86597351610b037fd29 (diff)
downloademacs-a241b7c067132a073c29dc924846952fd7a7391b.tar.gz
emacs-a241b7c067132a073c29dc924846952fd7a7391b.zip
* admin/notes/bzr: Add section on undoing a bzr remove.
Diffstat (limited to 'admin/notes')
-rw-r--r--admin/notes/bzr24
1 files changed, 24 insertions, 0 deletions
diff --git a/admin/notes/bzr b/admin/notes/bzr
index 07a3c6dd09f..11f0af17a3b 100644
--- a/admin/notes/bzr
+++ b/admin/notes/bzr
@@ -134,3 +134,27 @@ right thing to do is merge everything else, resolve the conflict by
134choosing either the trunk or branch version, then run `make -C lisp 134choosing either the trunk or branch version, then run `make -C lisp
135autoloads' to update the md5sums to the correct trunk value before 135autoloads' to update the md5sums to the correct trunk value before
136committing. 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.