[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109807: * admin/bzrmerge.el (bzrmerg
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109807: * admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree. |
Date: |
Tue, 28 Aug 2012 15:26:41 -0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109807
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-28 15:26:41 -0400
message:
* admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.
modified:
admin/ChangeLog
admin/bzrmerge.el
=== modified file 'admin/ChangeLog'
--- a/admin/ChangeLog 2012-08-28 16:08:50 +0000
+++ b/admin/ChangeLog 2012-08-28 19:26:41 +0000
@@ -1,3 +1,7 @@
+2012-08-28 Glenn Morris <address@hidden>
+
+ * bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.
+
2012-08-28 Andreas Schwab <address@hidden>
* charsets/mule-charsets.el (header): Fix typo.
=== modified file 'admin/bzrmerge.el'
--- a/admin/bzrmerge.el 2012-08-11 02:12:12 +0000
+++ b/admin/bzrmerge.el 2012-08-28 19:26:41 +0000
@@ -45,16 +45,23 @@
(erase-buffer)
;; We generally want to make sure we start with a clean tree, but we also
;; want to allow restarts (i.e. with some part of FROM already merged but
- ;; not yet committed).
+ ;; not yet committed). Unversioned (unknown) files in the tree
+ ;; are also ok.
(call-process "bzr" nil t nil "status" "-v")
(goto-char (point-min))
(when (re-search-forward "^conflicts:\n" nil t)
(error "You still have unresolved conflicts"))
- (let ((merges ()))
+ (let ((merges ())
+ found)
(if (not (re-search-forward "^pending merges:\n" nil t))
(when (save-excursion
(goto-char (point-min))
- (re-search-forward "^[a-z ]*:\n" nil t))
+ (while (and
+ (re-search-forward "^\\([a-z ]*\\):\n" nil t)
+ (not
+ (setq found
+ (not (equal "unknown" (match-string 1)))))))
+ found)
(error "You still have uncommitted changes"))
;; This is really stupid, but it seems there's no easy way to figure
;; out which revisions have been merged already. The only info I can
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109807: * admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.,
Glenn Morris <=