diff options
| author | Glenn Morris | 2012-01-18 22:42:57 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-01-18 22:42:57 -0800 |
| commit | 54de86ac6216fc2eece477308dde090381d6b6c7 (patch) | |
| tree | 81ec4c77d0121a27eb6e26f1edf4b8ad42fd18a4 /admin | |
| parent | 606c44c4cfea818143b9007754331dcf4fa06561 (diff) | |
| download | emacs-54de86ac6216fc2eece477308dde090381d6b6c7.tar.gz emacs-54de86ac6216fc2eece477308dde090381d6b6c7.zip | |
Small bzrmerge.el change.
* admin/bzrmerge.el (bzrmerge-missing): Allow a definitive "no" answer
to the "skip?" question, since there can be multiple such for any revision.
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 5 | ||||
| -rw-r--r-- | admin/bzrmerge.el | 20 |
2 files changed, 22 insertions, 3 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 597beb60ce2..2178df6caf0 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-01-19 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * bzrmerge.el (bzrmerge-missing): Allow a definitive "no" answer to the | ||
| 4 | "skip?" question, since there can be multiple such for any revision. | ||
| 5 | |||
| 1 | 2012-01-14 Eli Zaretskii <eliz@gnu.org> | 6 | 2012-01-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * FOR-RELEASE (Check the Emacs Tutorial): Mark TUTORIAL.he as | 8 | * FOR-RELEASE (Check the Emacs Tutorial): Mark TUTORIAL.he as |
diff --git a/admin/bzrmerge.el b/admin/bzrmerge.el index 2efb17603cd..cb63d5b16ba 100644 --- a/admin/bzrmerge.el +++ b/admin/bzrmerge.el | |||
| @@ -133,9 +133,23 @@ are both lists of revnos, in oldest-first order." | |||
| 133 | (setq str (substring str (match-end 0)))) | 133 | (setq str (substring str (match-end 0)))) |
| 134 | (when (string-match "[.!;, ]+\\'" str) | 134 | (when (string-match "[.!;, ]+\\'" str) |
| 135 | (setq str (substring str 0 (match-beginning 0)))) | 135 | (setq str (substring str 0 (match-beginning 0)))) |
| 136 | (if (save-excursion (y-or-n-p (concat str ": Skip? "))) | 136 | (let ((help-form "\ |
| 137 | (setq skip t)))) | 137 | Type `y' to skip this revision, |
| 138 | (if skip | 138 | `N' to include it and go on to the next revision, |
| 139 | `n' to not skip, but continue to search this log entry for skip regexps, | ||
| 140 | `q' to quit merging.")) | ||
| 141 | (case (save-excursion | ||
| 142 | (read-char-choice | ||
| 143 | (format "%s: Skip (y/n/N/q/%s)? " str | ||
| 144 | (key-description (vector help-char))) | ||
| 145 | '(?y ?n ?N ?q))) | ||
| 146 | (?y (setq skip t)) | ||
| 147 | (?q (keyboard-quit)) | ||
| 148 | ;; A single log entry can match skip-regexp multiple | ||
| 149 | ;; times. If you are sure you don't want to skip it, | ||
| 150 | ;; you don't want to be asked multiple times. | ||
| 151 | (?N (setq skip 'no)))))) | ||
| 152 | (if (eq skip t) | ||
| 139 | (push revno skipped) | 153 | (push revno skipped) |
| 140 | (push revno revnos))))) | 154 | (push revno revnos))))) |
| 141 | (delete-region (point) (point-max))) | 155 | (delete-region (point) (point-max))) |