diff options
| author | Richard Levitte | 2010-11-08 13:42:24 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-11-08 13:42:24 -0500 |
| commit | 05539fb32aabb9bf531b70b0ea549314e2446370 (patch) | |
| tree | d4890bdbf868fedbe98172950a1cbbe59b0cdf25 | |
| parent | cc4d2366a733e88a13e85e796a127931266816e4 (diff) | |
| download | emacs-05539fb32aabb9bf531b70b0ea549314e2446370.tar.gz emacs-05539fb32aabb9bf531b70b0ea549314e2446370.zip | |
* lisp/vc-mtn.el (vc-mtn-working-revision, vc-mtn-after-dir-status)
(vc-mtn-workfile-branch): Adjust to new output format.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-mtn.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f90ebef6972..45066263c5e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-11-08 Richard Levitte <richard@levitte.org> (tiny patch) | ||
| 2 | |||
| 3 | * vc-mtn.el (vc-mtn-working-revision, vc-mtn-after-dir-status) | ||
| 4 | (vc-mtn-workfile-branch): Adjust to new output format. | ||
| 5 | |||
| 1 | 2010-11-08 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-11-08 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * international/mule-cmds.el (princ-list): Mark as obsolete. | 8 | * international/mule-cmds.el (princ-list): Mark as obsolete. |
diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el index aa90fdabc87..f89b6a34d21 100644 --- a/lisp/vc-mtn.el +++ b/lisp/vc-mtn.el | |||
| @@ -109,7 +109,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 109 | (defun vc-mtn-after-dir-status (update-function) | 109 | (defun vc-mtn-after-dir-status (update-function) |
| 110 | (let (result) | 110 | (let (result) |
| 111 | (goto-char (point-min)) | 111 | (goto-char (point-min)) |
| 112 | (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)" nil t) | 112 | (re-search-forward "\\(?:Current b\\|B\\)ranch: *\\(.*\\)\n?\nChanges against parent \\(.*\\)" nil t) |
| 113 | (while (re-search-forward | 113 | (while (re-search-forward |
| 114 | "^ \\(?:\\(patched \\)\\|\\(added \\)\\)\\(.*\\)$" nil t) | 114 | "^ \\(?:\\(patched \\)\\|\\(added \\)\\)\\(.*\\)$" nil t) |
| 115 | (cond ((match-end 1) (push (list (match-string 3) 'edited) result)) | 115 | (cond ((match-end 1) (push (list (match-string 3) 'edited) result)) |
| @@ -128,7 +128,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 128 | (with-temp-buffer | 128 | (with-temp-buffer |
| 129 | (vc-mtn-command t 0 file "status") | 129 | (vc-mtn-command t 0 file "status") |
| 130 | (goto-char (point-min)) | 130 | (goto-char (point-min)) |
| 131 | (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)") | 131 | (re-search-forward "\\(?:Current b\\|B\\)ranch: *\\(.*\\)\n?\nChanges against parent \\(.*\\)") |
| 132 | (match-string 2)))) | 132 | (match-string 2)))) |
| 133 | 133 | ||
| 134 | (defun vc-mtn-workfile-branch (file) | 134 | (defun vc-mtn-workfile-branch (file) |
| @@ -138,7 +138,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 138 | (with-temp-buffer | 138 | (with-temp-buffer |
| 139 | (vc-mtn-command t 0 file "status") | 139 | (vc-mtn-command t 0 file "status") |
| 140 | (goto-char (point-min)) | 140 | (goto-char (point-min)) |
| 141 | (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)") | 141 | (re-search-forward "\\(?:Current b\\|B\\)ranch: *\\(.*\\)\n?\nChanges against parent \\(.*\\)") |
| 142 | (match-string 1)))) | 142 | (match-string 1)))) |
| 143 | 143 | ||
| 144 | (defun vc-mtn-workfile-unchanged-p (file) | 144 | (defun vc-mtn-workfile-unchanged-p (file) |