aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2010-06-01 02:37:49 -0700
committerDan Nicolaescu2010-06-01 02:37:49 -0700
commit5828f6cacc56d892cd34fe0c4e0e033de1002b3f (patch)
treecfea77c675e6218a94319a5fea2154ea98e8a11e
parentc4ce1145cbbaaab12e355648d1ccf6ce37b229b3 (diff)
downloademacs-5828f6cacc56d892cd34fe0c4e0e033de1002b3f.tar.gz
emacs-5828f6cacc56d892cd34fe0c4e0e033de1002b3f.zip
Improve state updating for VC tag commands.
* lisp/vc.el (vc-create-tag, vc-retrieve-tag): Call vc-resynch-buffer to update the state of all buffers in the directory.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc.el2
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 427d04c7ef4..d7b6bcd9cb2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12010-06-01 Dan Nicolaescu <dann@ics.uci.edu> 12010-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Improve state updating for VC tag commands.
4 * vc.el (vc-create-tag, vc-retrieve-tag): Call vc-resynch-buffer
5 to update the state of all buffers in the directory.
6
3 * vc-dir.el (vc-dir-update): Remove entries with a nil state (bug#5539). 7 * vc-dir.el (vc-dir-update): Remove entries with a nil state (bug#5539).
4 8
52010-06-01 Stefan Monnier <monnier@iro.umontreal.ca> 92010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/vc.el b/lisp/vc.el
index 01952de2025..3d991a21a61 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1903,6 +1903,7 @@ checked out in that new branch."
1903 (when (file-directory-p dir) (setq dir (file-name-as-directory dir))) 1903 (when (file-directory-p dir) (setq dir (file-name-as-directory dir)))
1904 (vc-call-backend (vc-responsible-backend dir) 1904 (vc-call-backend (vc-responsible-backend dir)
1905 'create-tag dir name branchp) 1905 'create-tag dir name branchp)
1906 (vc-resynch-buffer dir t t)
1906 (message "Making %s... done" (if branchp "branch" "tag"))) 1907 (message "Making %s... done" (if branchp "branch" "tag")))
1907 1908
1908;;;###autoload 1909;;;###autoload
@@ -1923,6 +1924,7 @@ allowed and simply skipped)."
1923 (message "%s" msg) 1924 (message "%s" msg)
1924 (vc-call-backend (vc-responsible-backend dir) 1925 (vc-call-backend (vc-responsible-backend dir)
1925 'retrieve-tag dir name update) 1926 'retrieve-tag dir name update)
1927 (vc-resynch-buffer dir t t)
1926 (message "%s" (concat msg "done")))) 1928 (message "%s" (concat msg "done"))))
1927 1929
1928;; Miscellaneous other entry points 1930;; Miscellaneous other entry points