aboutsummaryrefslogtreecommitdiffstats
path: root/admin/bzrmerge.el
diff options
context:
space:
mode:
authorJoakim Verona2012-01-23 15:10:06 +0100
committerJoakim Verona2012-01-23 15:10:06 +0100
commit0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch)
tree950c011783cc896d0450084cb5155e54548bfe5b /admin/bzrmerge.el
parentd5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff)
parentcb5850f27c1b4d26957d58e2da2314dd12498671 (diff)
downloademacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz
emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip
upstream
Diffstat (limited to 'admin/bzrmerge.el')
-rw-r--r--admin/bzrmerge.el20
1 files changed, 17 insertions, 3 deletions
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)))) 137Type `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)))