diff options
| author | Eli Zaretskii | 2014-11-19 20:33:17 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-11-19 20:35:17 +0200 |
| commit | 2fa082c00315801f0215685aa6032179615d2b55 (patch) | |
| tree | 46cab03b8a6a767c56afcc7f276499b6cfa0dfc3 | |
| parent | f773d35aa218d25ff8d933fce21643971ec713e5 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/maintaining.texi | 17 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 8 |
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 @@ | |||
| 1 | 2014-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 | |||
| 1 | 2014-11-16 Tassilo Horn <tsdh@gnu.org> | 6 | 2014-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 |
| 1318 | Mercurial in its normal mode of operation, each branch has its own | 1318 | Mercurial in its normal mode of operation, each branch has its own |
| 1319 | working directory tree, so switching between branches just involves | 1319 | working directory tree, so switching between branches just involves |
| 1320 | switching directories. On Git, switching between branches is done | 1320 | switching directories. On Git, branches are normally @dfn{co-located} |
| 1321 | using the @command{git branch} command, which changes the contents of | 1321 | in the same directory, and switching between branches is done using |
| 1322 | the working tree itself. | 1322 | the @command{git checkout} command, which changes the contents of the |
| 1323 | 1323 | working tree to match the branch you switch to. Bazaar also supports | |
| 1324 | On centralized version control systems, you can switch between | 1324 | co-located branches, in which case the @command{bzr switch} command |
| 1325 | will switch branches in the current directory. With Subversion, you | ||
| 1326 | switch to another branch using the @command{svn switch} command. | ||
| 1327 | |||
| 1328 | The VC command to switch to another branch in the current directory | ||
| 1329 | is @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 | ||
| 1325 | branches by typing @kbd{C-u C-x v v} in an up-to-date work file | 1332 | branches 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 |
| 1327 | revision on another branch. On CVS, for instance, revisions on the | 1334 | revision 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 @@ | |||
| 1 | 2014-11-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * vc/vc.el (vc-retrieve-tag): Doc fix. | ||
| 4 | |||
| 1 | 2014-11-17 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-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. |
| 2139 | If NAME is empty, it refers to the latest revisions. | 2139 | NAME can name a branch, in which case this command will switch to the |
| 2140 | named branch in the directory DIR. | ||
| 2141 | Interactively, prompt for DIR only for VCS that works at file level; | ||
| 2142 | otherwise use the default directory of the current buffer. | ||
| 2143 | If NAME is empty, it refers to the latest revisions of the current branch. | ||
| 2140 | If locking is used for the files in DIR, then there must not be any | 2144 | If locking is used for the files in DIR, then there must not be any |
| 2141 | locked files at or below DIR (but if NAME is empty, locked files are | 2145 | locked files at or below DIR (but if NAME is empty, locked files are |
| 2142 | allowed and simply skipped)." | 2146 | allowed and simply skipped)." |