aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorGlenn Morris2012-08-28 15:26:41 -0400
committerGlenn Morris2012-08-28 15:26:41 -0400
commita3f90bea8edc75b7543a06170e5a7521163bbf4e (patch)
tree6456dc3be07a34abc57832eb161b33d180166ac3 /admin
parent01e0f0f5d7fd9143d561826ec54afef2a19d80d8 (diff)
downloademacs-a3f90bea8edc75b7543a06170e5a7521163bbf4e.tar.gz
emacs-a3f90bea8edc75b7543a06170e5a7521163bbf4e.zip
* admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog4
-rw-r--r--admin/bzrmerge.el13
2 files changed, 14 insertions, 3 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 1bbce2ea87a..145028ec815 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,7 @@
12012-08-28 Glenn Morris <rgm@gnu.org>
2
3 * bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.
4
12012-08-28 Andreas Schwab <schwab@linux-m68k.org> 52012-08-28 Andreas Schwab <schwab@linux-m68k.org>
2 6
3 * charsets/mule-charsets.el (header): Fix typo. 7 * charsets/mule-charsets.el (header): Fix typo.
diff --git a/admin/bzrmerge.el b/admin/bzrmerge.el
index e174312143d..8d64dd9edbf 100644
--- a/admin/bzrmerge.el
+++ b/admin/bzrmerge.el
@@ -45,16 +45,23 @@ The list returned is sorted by oldest-first."
45 (erase-buffer) 45 (erase-buffer)
46 ;; We generally want to make sure we start with a clean tree, but we also 46 ;; We generally want to make sure we start with a clean tree, but we also
47 ;; want to allow restarts (i.e. with some part of FROM already merged but 47 ;; want to allow restarts (i.e. with some part of FROM already merged but
48 ;; not yet committed). 48 ;; not yet committed). Unversioned (unknown) files in the tree
49 ;; are also ok.
49 (call-process "bzr" nil t nil "status" "-v") 50 (call-process "bzr" nil t nil "status" "-v")
50 (goto-char (point-min)) 51 (goto-char (point-min))
51 (when (re-search-forward "^conflicts:\n" nil t) 52 (when (re-search-forward "^conflicts:\n" nil t)
52 (error "You still have unresolved conflicts")) 53 (error "You still have unresolved conflicts"))
53 (let ((merges ())) 54 (let ((merges ())
55 found)
54 (if (not (re-search-forward "^pending merges:\n" nil t)) 56 (if (not (re-search-forward "^pending merges:\n" nil t))
55 (when (save-excursion 57 (when (save-excursion
56 (goto-char (point-min)) 58 (goto-char (point-min))
57 (re-search-forward "^[a-z ]*:\n" nil t)) 59 (while (and
60 (re-search-forward "^\\([a-z ]*\\):\n" nil t)
61 (not
62 (setq found
63 (not (equal "unknown" (match-string 1)))))))
64 found)
58 (error "You still have uncommitted changes")) 65 (error "You still have uncommitted changes"))
59 ;; This is really stupid, but it seems there's no easy way to figure 66 ;; This is really stupid, but it seems there's no easy way to figure
60 ;; out which revisions have been merged already. The only info I can 67 ;; out which revisions have been merged already. The only info I can