diff options
| author | Stefan Monnier | 2011-01-17 16:18:00 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-01-17 16:18:00 -0500 |
| commit | 41f44310b35b8246475d707b3417e42a03b1ca05 (patch) | |
| tree | 45eb63415cc44032cc52d572ca2a553c451a8d84 /admin | |
| parent | 61f74651c4d5d7502069263ce763cb8685b81ad8 (diff) | |
| download | emacs-41f44310b35b8246475d707b3417e42a03b1ca05.tar.gz emacs-41f44310b35b8246475d707b3417e42a03b1ca05.zip | |
* admin/bzrmerge.el (bzrmerge-apply): Warn the user when the tree might be in
an inconsistent state.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/bzrmerge.el | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index ca310c1b8f1..6a698728b6c 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-01-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * bzrmerge.el (bzrmerge-apply): Warn the user when the tree might be in | ||
| 4 | an inconsistent state. | ||
| 5 | |||
| 1 | 2011-01-17 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-01-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Update copyright notes to match recent gnulib-related changes. | 8 | Update copyright notes to match recent gnulib-related changes. |
diff --git a/admin/bzrmerge.el b/admin/bzrmerge.el index 6764cbf853a..68b107be65e 100644 --- a/admin/bzrmerge.el +++ b/admin/bzrmerge.el | |||
| @@ -218,6 +218,7 @@ Does not make other difference." | |||
| 218 | (setq bzrmerge-already-done nil) | 218 | (setq bzrmerge-already-done nil) |
| 219 | (let ((merge (car missing)) | 219 | (let ((merge (car missing)) |
| 220 | (skip (cdr missing)) | 220 | (skip (cdr missing)) |
| 221 | (unsafe nil) | ||
| 221 | beg end) | 222 | beg end) |
| 222 | (when (or merge skip) | 223 | (when (or merge skip) |
| 223 | (cond | 224 | (cond |
| @@ -249,6 +250,7 @@ Does not make other difference." | |||
| 249 | "--force" "-r" (format "%s..%s" beg end) from) | 250 | "--force" "-r" (format "%s..%s" beg end) from) |
| 250 | ;; The merge did not update the metadata, so force the next time | 251 | ;; The merge did not update the metadata, so force the next time |
| 251 | ;; around to update it (as a "skip"). | 252 | ;; around to update it (as a "skip"). |
| 253 | (setq unsafe t) | ||
| 252 | (push end skip)) | 254 | (push end skip)) |
| 253 | (pop-to-buffer (current-buffer)) | 255 | (pop-to-buffer (current-buffer)) |
| 254 | (sit-for 1) | 256 | (sit-for 1) |
| @@ -271,6 +273,15 @@ Does not make other difference." | |||
| 271 | (when conflicted | 273 | (when conflicted |
| 272 | (setq bzrmerge-already-done | 274 | (setq bzrmerge-already-done |
| 273 | (list (cons merge skip) from missing)) | 275 | (list (cons merge skip) from missing)) |
| 276 | (if unsafe | ||
| 277 | ;; FIXME: Obviously, we'd rather make it right rather | ||
| 278 | ;; than output such a warning. But I don't know how to add | ||
| 279 | ;; the metadata to bzr's since the technique used in | ||
| 280 | ;; bzrmerge-add-metadata does not work when there | ||
| 281 | ;; are conflicts. | ||
| 282 | (display-warning 'bzrmerge "Resolve conflicts manually. | ||
| 283 | ¡BEWARE! Important metadata is kept in this Emacs session! | ||
| 284 | Do not commit without re-running `M-x bzrmerge' first!"))) | ||
| 274 | (error "Resolve conflicts manually"))))) | 285 | (error "Resolve conflicts manually"))))) |
| 275 | (cons merge skip))))) | 286 | (cons merge skip))))) |
| 276 | 287 | ||