diff options
| author | Glenn Morris | 2011-02-13 18:52:02 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-13 18:52:02 -0800 |
| commit | a241b7c067132a073c29dc924846952fd7a7391b (patch) | |
| tree | 0b5981bdddd689d79c4bde5d36d5dc48144bc144 /admin/notes | |
| parent | 33f6cf7b4c003932ae6fd86597351610b037fd29 (diff) | |
| download | emacs-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/bzr | 24 |
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 | |||
| 134 | choosing either the trunk or branch version, then run `make -C lisp | 134 | choosing either the trunk or branch version, then run `make -C lisp |
| 135 | autoloads' to update the md5sums to the correct trunk value before | 135 | autoloads' to update the md5sums to the correct trunk value before |
| 136 | committing. | 136 | committing. |
| 137 | |||
| 138 | * Re-adding a file that has been removed from the repository | ||
| 139 | |||
| 140 | It's easy to get this wrong. Let's suppose you've done: | ||
| 141 | |||
| 142 | bzr remove file; bzr commit | ||
| 143 | |||
| 144 | and now, sometime later, you realize this was a mistake and file needs | ||
| 145 | to be brought back. DON'T just do: | ||
| 146 | |||
| 147 | bzr add file; bzr commit | ||
| 148 | |||
| 149 | This restores file, but without its history (`bzr log file' will be | ||
| 150 | very short). This is because file gets re-added with a new file-id | ||
| 151 | (use `bzr file-id file' to see the id). | ||
| 152 | |||
| 153 | Insteading of adding the file, try: | ||
| 154 | |||
| 155 | bzr revert -rN file; bzr commit | ||
| 156 | |||
| 157 | where revision N+1 is the one where file was removed. | ||
| 158 | |||
| 159 | You could also try `bzr add --file-ids-from', if you have a copy of | ||
| 160 | another branch where file still exists. | ||