aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-02-05 14:46:34 -0800
committerGlenn Morris2011-02-05 14:46:34 -0800
commit4d881c83419fbdbcfc4ba8cc8b0ef88eb9c45ccd (patch)
tree24fb2b255d752532167cb2a0d0bcf58c7b1daf0d
parent233ba4d924933cb56129bd7511e6137b7c0b8e3e (diff)
downloademacs-4d881c83419fbdbcfc4ba8cc8b0ef88eb9c45ccd.tar.gz
emacs-4d881c83419fbdbcfc4ba8cc8b0ef88eb9c45ccd.zip
bzrmerge.el trivia.
* admin/bzrmerge.el (bzrmerge-warning-buffer): New constant. (bzrmerge-apply): Use it. (bzrmerge): Kill any old warning buffer first.
-rw-r--r--admin/ChangeLog6
-rw-r--r--admin/bzrmerge.el10
2 files changed, 15 insertions, 1 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 46dbaa0da26..0ca88ee84d5 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,9 @@
12011-02-05 Glenn Morris <rgm@gnu.org>
2
3 * bzrmerge.el (bzrmerge-warning-buffer): New constant.
4 (bzrmerge-apply): Use it.
5 (bzrmerge): Kill any old warning buffer first.
6
12011-02-03 Glenn Morris <rgm@gnu.org> 72011-02-03 Glenn Morris <rgm@gnu.org>
2 8
3 * bzrmerge.el (bzrmerge-buffer): New constant. 9 * bzrmerge.el (bzrmerge-buffer): New constant.
diff --git a/admin/bzrmerge.el b/admin/bzrmerge.el
index 350f3795c52..061af80b6cf 100644
--- a/admin/bzrmerge.el
+++ b/admin/bzrmerge.el
@@ -35,6 +35,9 @@
35(defconst bzrmerge-buffer "*bzrmerge*" 35(defconst bzrmerge-buffer "*bzrmerge*"
36 "Working buffer for bzrmerge.") 36 "Working buffer for bzrmerge.")
37 37
38(defconst bzrmerge-warning-buffer "*bzrmerge warnings*"
39 "Buffer where bzrmerge will display any warnings.")
40
38(defun bzrmerge-merges () 41(defun bzrmerge-merges ()
39 "Return the list of already merged (not yet committed) revisions. 42 "Return the list of already merged (not yet committed) revisions.
40The list returned is sorted by oldest-first." 43The list returned is sorted by oldest-first."
@@ -290,7 +293,8 @@ Does not make other difference."
290 ;; are conflicts. 293 ;; are conflicts.
291 (display-warning 'bzrmerge "Resolve conflicts manually. 294 (display-warning 'bzrmerge "Resolve conflicts manually.
292ĦBEWARE! Important metadata is kept in this Emacs session! 295ĦBEWARE! Important metadata is kept in this Emacs session!
293Do not commit without re-running `M-x bzrmerge' first!")) 296Do not commit without re-running `M-x bzrmerge' first!"
297 :warning bzrmerge-warning-buffer))
294 (error "Resolve conflicts manually"))))) 298 (error "Resolve conflicts manually")))))
295 (cons merge skip))))) 299 (cons merge skip)))))
296 300
@@ -305,6 +309,10 @@ Do not commit without re-running `M-x bzrmerge' first!"))
305 (when (re-search-forward "submit branch: *" nil t) 309 (when (re-search-forward "submit branch: *" nil t)
306 (buffer-substring (point) (line-end-position)))))) 310 (buffer-substring (point) (line-end-position))))))
307 (read-file-name "From branch: " nil nil nil def)))) 311 (read-file-name "From branch: " nil nil nil def))))
312 ;; Eg we ran bzrmerge once, it stopped with conflicts, we fixed them
313 ;; and are running it again.
314 (if (get-buffer bzrmerge-warning-buffer)
315 (kill-buffer bzrmerge-warning-buffer))
308 (message "Merging from %s..." from) 316 (message "Merging from %s..." from)
309 (require 'vc-bzr) 317 (require 'vc-bzr)
310 (let ((default-directory (or (vc-bzr-root default-directory) 318 (let ((default-directory (or (vc-bzr-root default-directory)