diff options
| author | Paul Eggert | 2011-02-14 21:41:07 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-14 21:41:07 -0800 |
| commit | fae95934b8edae3f538063e756ac799ed94313b2 (patch) | |
| tree | 3bb814c43cd50db54591bf685e5cb72b863b5833 /admin/notes | |
| parent | 6d302144c218f12bd380344ae2d3ed87a6ea9327 (diff) | |
| parent | bb55f713d2e4ea089a861a257d7d000432642ce9 (diff) | |
| download | emacs-fae95934b8edae3f538063e756ac799ed94313b2.tar.gz emacs-fae95934b8edae3f538063e756ac799ed94313b2.zip | |
Merge from mainline.
Diffstat (limited to 'admin/notes')
| -rw-r--r-- | admin/notes/bzr | 39 |
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. | |||
| 65 | The following description uses bound branches, presumably it works in | 65 | The following description uses bound branches, presumably it works in |
| 66 | a similar way with unbound ones. | 66 | a similar way with unbound ones. |
| 67 | 67 | ||
| 68 | 0) (First time only) Get the bzr changelog_merge plugin: | ||
| 69 | |||
| 70 | cd ~/.bazaar/plugins | ||
| 71 | bzr branch lp:bzr-changelog-merge | ||
| 72 | mv bzr-changelog-merge changelog_merge | ||
| 73 | |||
| 74 | This will make merging ChangeLogs a lot smoother. It merges new | ||
| 75 | entries to the top of the file, rather than trying to fit them in | ||
| 76 | mid-way through. | ||
| 77 | |||
| 68 | 1) Get clean, up-to-date copies of the emacs-23 and trunk branches. | 78 | 1) Get clean, up-to-date copies of the emacs-23 and trunk branches. |
| 69 | Check for any uncommitted changes with bzr status. | 79 | Check for any uncommitted changes with bzr status. |
| 70 | 80 | ||
| 71 | 2) M-x cd /path/to/trunk | 81 | 2) M-x cd /path/to/trunk |
| 72 | 82 | ||
| 83 | The first time only, do this: | ||
| 84 | cd .bzr/branch | ||
| 85 | Add the following line to branch.conf: | ||
| 86 | changelog_merge_files = ChangeLog | ||
| 87 | |||
| 73 | 3) load admin/bzrmerge.el | 88 | 3) load admin/bzrmerge.el |
| 74 | 89 | ||
| 75 | 4) M-x bzrmerge RET /path/to/emacs-23 RET | 90 | 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 | |||
| 119 | 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 |
| 120 | autoloads' to update the md5sums to the correct trunk value before | 135 | autoloads' to update the md5sums to the correct trunk value before |
| 121 | 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. | ||