aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-11-19 20:33:17 +0200
committerEli Zaretskii2014-11-19 20:35:17 +0200
commit2fa082c00315801f0215685aa6032179615d2b55 (patch)
tree46cab03b8a6a767c56afcc7f276499b6cfa0dfc3
parentf773d35aa218d25ff8d933fce21643971ec713e5 (diff)
downloademacs-2fa082c00315801f0215685aa6032179615d2b55.tar.gz
emacs-2fa082c00315801f0215685aa6032179615d2b55.zip
Fix VC documentation related to switching branches.
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.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/maintaining.texi17
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc/vc.el8
4 files changed, 27 insertions, 7 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 84722b2d45f..a72c2a8915c 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12014-11-19 Eli Zaretskii <eliz@gnu.org>
2
3 * maintaining.texi (Switching Branches): Mention "C-x v r".
4 Correct commands for switching branches in various VCSs.
5
12014-11-16 Tassilo Horn <tsdh@gnu.org> 62014-11-16 Tassilo Horn <tsdh@gnu.org>
2 7
3 * misc.texi (DocView Slicing): Describe how to slice with the 8 * misc.texi (DocView Slicing): Describe how to slice with the
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index e066c491ac5..fef3cdea529 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -1317,11 +1317,18 @@ implemented, and these differences cannot be entirely concealed by VC.
1317 On some decentralized version control systems, including Bazaar and 1317 On some decentralized version control systems, including Bazaar and
1318Mercurial in its normal mode of operation, each branch has its own 1318Mercurial in its normal mode of operation, each branch has its own
1319working directory tree, so switching between branches just involves 1319working directory tree, so switching between branches just involves
1320switching directories. On Git, switching between branches is done 1320switching directories. On Git, branches are normally @dfn{co-located}
1321using the @command{git branch} command, which changes the contents of 1321in the same directory, and switching between branches is done using
1322the working tree itself. 1322the @command{git checkout} command, which changes the contents of the
1323 1323working tree to match the branch you switch to. Bazaar also supports
1324 On centralized version control systems, you can switch between 1324co-located branches, in which case the @command{bzr switch} command
1325will switch branches in the current directory. With Subversion, you
1326switch to another branch using the @command{svn switch} command.
1327
1328 The VC command to switch to another branch in the current directory
1329is @kbd{C-x v r @var{branch-name} @key{RET}} (@code{vc-retrieve-tag}).
1330
1331 On centralized version control systems, you can also switch between
1325branches by typing @kbd{C-u C-x v v} in an up-to-date work file 1332branches by typing @kbd{C-u C-x v v} in an up-to-date work file
1326(@pxref{Advanced C-x v v}), and entering the revision ID for a 1333(@pxref{Advanced C-x v v}), and entering the revision ID for a
1327revision on another branch. On CVS, for instance, revisions on the 1334revision on another branch. On CVS, for instance, revisions on the
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 54df183c92a..306882eaca9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-11-19 Eli Zaretskii <eliz@gnu.org>
2
3 * vc/vc.el (vc-retrieve-tag): Doc fix.
4
12014-11-17 Eli Zaretskii <eliz@gnu.org> 52014-11-17 Eli Zaretskii <eliz@gnu.org>
2 6
3 * vc/vc-bzr.el (vc-bzr-print-log, vc-bzr-expanded-log-entry): 7 * vc/vc-bzr.el (vc-bzr-print-log, vc-bzr-expanded-log-entry):
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 4a536900eb3..0f4d7893b5f 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2135,8 +2135,12 @@ checked out in that new branch."
2135 2135
2136;;;###autoload 2136;;;###autoload
2137(defun vc-retrieve-tag (dir name) 2137(defun vc-retrieve-tag (dir name)
2138 "Descending recursively from DIR, retrieve the tag called NAME. 2138 "For each file in or below DIR, retrieve their tagged version NAME.
2139If NAME is empty, it refers to the latest revisions. 2139NAME can name a branch, in which case this command will switch to the
2140named branch in the directory DIR.
2141Interactively, prompt for DIR only for VCS that works at file level;
2142otherwise use the default directory of the current buffer.
2143If NAME is empty, it refers to the latest revisions of the current branch.
2140If locking is used for the files in DIR, then there must not be any 2144If locking is used for the files in DIR, then there must not be any
2141locked files at or below DIR (but if NAME is empty, locked files are 2145locked files at or below DIR (but if NAME is empty, locked files are
2142allowed and simply skipped)." 2146allowed and simply skipped)."