summaryrefslogtreecommitdiff
path: root/lisp/vc-mtn.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-03-22 17:09:33 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-03-22 17:09:33 +0000
commit3281a821f771b2c74fe880f24cc38ce0d25e4d58 (patch)
tree0f97b0e38c1c9d06549679d0d28fcf5dae1dfc74 /lisp/vc-mtn.el
parentb07103dc2b17933e30e1500bce6f9a1471752cc7 (diff)
downloademacs-3281a821f771b2c74fe880f24cc38ce0d25e4d58.tar.gz
(vc-mtn-state): Support the added state.
Diffstat (limited to 'lisp/vc-mtn.el')
-rw-r--r--lisp/vc-mtn.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el
index 6a7f72db44b..fd3f48f9105 100644
--- a/lisp/vc-mtn.el
+++ b/lisp/vc-mtn.el
@@ -76,10 +76,11 @@
(with-temp-buffer
(vc-mtn-command t 0 file "status")
(goto-char (point-min))
- (re-search-forward "^ \\(?:patched \\(.*\\)\\|no changes$\\)")
- (if (match-end 1)
- 'edited
- 'up-to-date))))
+ (re-search-forward
+ "^ \\(?:\\(patched\\)\\|\\(added\\) \\(?:.*\\)\\)\\|no changes$")
+ (cond ((match-end 1) 'edited)
+ ((match-end 2) 'added)
+ (t 'up-to-date)))))
(defun vc-mtn-working-revision (file)
;; If `mtn' fails or returns status>0, or if the search fails, just