]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix VC documentation related to switching branches.
authorEli Zaretskii <eliz@gnu.org>
Wed, 19 Nov 2014 18:33:17 +0000 (20:33 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 19 Nov 2014 18:35:17 +0000 (20:35 +0200)
 lisp/vc/vc.el (vc-retrieve-tag): Doc fix.

 doc/emacs/maintaining.texi (Switching Branches): Mention "C-x v r".
 Correct commands for switching branches in various VCSs.

doc/emacs/ChangeLog
doc/emacs/maintaining.texi
lisp/ChangeLog
lisp/vc/vc.el

index 84722b2d45f887349e3bae4175cec902fdb5376e..a72c2a8915c47a281ad526cfd34bd5cfe1320450 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * maintaining.texi (Switching Branches): Mention "C-x v r".
+       Correct commands for switching branches in various VCSs.
+
 2014-11-16  Tassilo Horn  <tsdh@gnu.org>
 
        * misc.texi (DocView Slicing): Describe how to slice with the
index e066c491ac5a97f3163ce1bf4f68c5c6bfeeb26c..fef3cdea5291336e8fbdeb8c2bf226b87d5caca0 100644 (file)
@@ -1317,11 +1317,18 @@ implemented, and these differences cannot be entirely concealed by VC.
   On some decentralized version control systems, including Bazaar and
 Mercurial in its normal mode of operation, each branch has its own
 working directory tree, so switching between branches just involves
-switching directories.  On Git, switching between branches is done
-using the @command{git branch} command, which changes the contents of
-the working tree itself.
-
-  On centralized version control systems, you can switch between
+switching directories.  On Git, branches are normally @dfn{co-located}
+in the same directory, and switching between branches is done using
+the @command{git checkout} command, which changes the contents of the
+working tree to match the branch you switch to.  Bazaar also supports
+co-located branches, in which case the @command{bzr switch} command
+will switch branches in the current directory.  With Subversion, you
+switch to another branch using the @command{svn switch} command.
+
+  The VC command to switch to another branch in the current directory
+is @kbd{C-x v r @var{branch-name} @key{RET}} (@code{vc-retrieve-tag}).
+
+  On centralized version control systems, you can also switch between
 branches by typing @kbd{C-u C-x v v} in an up-to-date work file
 (@pxref{Advanced C-x v v}), and entering the revision ID for a
 revision on another branch.  On CVS, for instance, revisions on the
index 54df183c92a4d5d69657b95636862a9f73f96576..306882eaca9697fbd29bcee19d096d212a863e23 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * vc/vc.el (vc-retrieve-tag): Doc fix.
+
 2014-11-17  Eli Zaretskii  <eliz@gnu.org>
 
        * vc/vc-bzr.el (vc-bzr-print-log, vc-bzr-expanded-log-entry):
index 4a536900eb3967e9a5cb03ca645fb853da7c3047..0f4d7893b5ff78d35f98faa4dfd3b0b7626e83c5 100644 (file)
@@ -2135,8 +2135,12 @@ checked out in that new branch."
 
 ;;;###autoload
 (defun vc-retrieve-tag (dir name)
-  "Descending recursively from DIR, retrieve the tag called NAME.
-If NAME is empty, it refers to the latest revisions.
+  "For each file in or below DIR, retrieve their tagged version NAME.
+NAME can name a branch, in which case this command will switch to the
+named branch in the directory DIR.
+Interactively, prompt for DIR only for VCS that works at file level;
+otherwise use the default directory of the current buffer.
+If NAME is empty, it refers to the latest revisions of the current branch.
 If locking is used for the files in DIR, then there must not be any
 locked files at or below DIR (but if NAME is empty, locked files are
 allowed and simply skipped)."