aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/vc.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index c66a0921e45..c3088560c11 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2157,7 +2157,7 @@ checked out in that new branch."
2157NAME can name a branch, in which case this command will switch to the 2157NAME can name a branch, in which case this command will switch to the
2158named branch in the directory DIR. 2158named branch in the directory DIR.
2159Interactively, prompt for DIR only for VCS that works at file level; 2159Interactively, prompt for DIR only for VCS that works at file level;
2160otherwise use the default directory of the current buffer. 2160otherwise use the repository root of the current buffer.
2161If NAME is empty, it refers to the latest revisions of the current branch. 2161If NAME is empty, it refers to the latest revisions of the current branch.
2162If locking is used for the files in DIR, then there must not be any 2162If locking is used for the files in DIR, then there must not be any
2163locked files at or below DIR (but if NAME is empty, locked files are 2163locked files at or below DIR (but if NAME is empty, locked files are
@@ -2170,7 +2170,9 @@ allowed and simply skipped)."
2170 (if (eq granularity 'repository) 2170 (if (eq granularity 'repository)
2171 ;; For VC's that do not work at file level, it's pointless 2171 ;; For VC's that do not work at file level, it's pointless
2172 ;; to ask for a directory, branches are created at repository level. 2172 ;; to ask for a directory, branches are created at repository level.
2173 default-directory 2173 ;; XXX: Either we call expand-file-name here, or use
2174 ;; file-in-directory-p inside vc-resynch-buffers-in-directory.
2175 (expand-file-name (vc-root-dir))
2174 (read-directory-name "Directory: " default-directory default-directory t)) 2176 (read-directory-name "Directory: " default-directory default-directory t))
2175 (read-string "Tag name to retrieve (default latest revisions): ")))) 2177 (read-string "Tag name to retrieve (default latest revisions): "))))
2176 (let ((update (yes-or-no-p "Update any affected buffers? ")) 2178 (let ((update (yes-or-no-p "Update any affected buffers? "))