comparison man/files.texi @ 36728:4906c8088ad5

Clarify C-u C-x v v cvs RET. Clarify the purpose of C-x v b.
author Richard M. Stallman <rms@gnu.org>
date Mon, 12 Mar 2001 03:35:40 +0000
parents 4dff107cf2a1
children c4072454eee4
comparison
equal deleted inserted replaced
36727:d184144845bc 36728:4906c8088ad5
1984 1984
1985 If you do not use locking under CVS (the default), locking is also 1985 If you do not use locking under CVS (the default), locking is also
1986 disabled for RCS, so that editing under RCS works exactly as under 1986 disabled for RCS, so that editing under RCS works exactly as under
1987 CVS. 1987 CVS.
1988 1988
1989 When you are done with your edits, you can commit the final version 1989 When you are done with local editing, you can commit the final version
1990 back to the CVS repository, typing @kbd{C-u C-x v v cvs @key{RET}}. Emacs 1990 back to the CVS repository by typing @kbd{C-u C-x v v cvs @key{RET}}.
1991 will initialize the log entry buffer (@pxref{Log Buffer}) to contain 1991 This initializes the log entry buffer (@pxref{Log Buffer}) to contain
1992 all the log entries you have recorded in the RCS master; you can make 1992 all the log entries you have recorded in the RCS master; you can edit
1993 changes to these comments as needed, and then commit in CVS by typing 1993 them as you wish, and then commit in CVS by typing @kbd{C-c C-c}. If
1994 @kbd{C-c C-c}. If the commit is successful, VC removes the RCS 1994 the commit is successful, VC removes the RCS master, so that the file
1995 master, so that the file is once again registered under CVS only. 1995 is once again registered under CVS only. (The RCS master is not
1996 (The RCS master is not actually deleted, just renamed by appending 1996 actually deleted, just renamed by appending @samp{~} to the name, so
1997 @samp{~} to the name, so that you can refer to it later if you wish.) 1997 that you can refer to it later if you wish.)
1998 1998
1999 While you are working with a local RCS master, you may still want to 1999 While using local RCS, you can pick up recent changes from the CVS
2000 pick up recent changes from the CVS repository into your local file, 2000 repository into your local file, or commit some of your changes back
2001 or you might want to commit some of your changes back to CVS, without 2001 to CVS, without terminating local RCS version control. To do this,
2002 actually switching back to CVS completely. You can do this by 2002 switch to the CVS backend temporarily, with the @kbd{C-x v b} command:
2003 switching to another backend temporarily.
2004 2003
2005 @table @kbd 2004 @table @kbd
2006 @item C-x v b 2005 @item C-x v b
2007 Switch to another back end that the current file is registered 2006 Switch to another back end that the current file is registered
2008 under (@code{vc-switch-backend}). 2007 under (@code{vc-switch-backend}).
2020 2019
2021 If the current file is registered in more than one back end, typing 2020 If the current file is registered in more than one back end, typing
2022 @kbd{C-x v b} ``cycles'' through all of these back ends. With a 2021 @kbd{C-x v b} ``cycles'' through all of these back ends. With a
2023 prefix argument, it asks for the back end to use in the minibuffer. 2022 prefix argument, it asks for the back end to use in the minibuffer.
2024 2023
2025 Thus, if you have a file under local RCS, and you want to pick up some 2024 Thus, if you are using local RCS, and you want to pick up some recent
2026 recent changes from CVS, type @kbd{C-x v b} to switch to CVS, and then 2025 changes in the file from remote CVS, first visit the file, then type
2027 @kbd{C-x v m @key{RET}} to merge the news (@pxref{Merging}). You can 2026 @kbd{C-x v b} to switch to CVS, and finally use @kbd{C-x v m
2028 then switch back to RCS by typing @kbd{C-x v b} again, and continue to 2027 @key{RET}} to merge the news (@pxref{Merging}). You can then switch
2029 edit locally. 2028 back to RCS by typing @kbd{C-x v b} again, and continue to edit
2030 2029 locally.
2031 Note though, that if you do this, the revision numbers in the RCS 2030
2032 master no longer correspond to those of CVS in a meaningful way. 2031 But if you do this, the revision numbers in the RCS master no longer
2033 Technically, this is not a problem, but it might be more difficult for 2032 correspond to those of CVS. Technically, this is not a problem, but
2034 you to keep track of what is in the repository and what is not. So we 2033 it can become difficult to keep track of what is in the CVS repository
2035 suggest that, frequently, you commit your changes back to CVS 2034 and what is not. So we suggest that you return from time to time to
2036 completely using @kbd{C-u C-x v v cvs @key{RET}}. 2035 CVS-only operation, using @kbd{C-u C-x v v cvs @key{RET}}.
2037 2036
2038 @node Snapshots 2037 @node Snapshots
2039 @subsection Snapshots 2038 @subsection Snapshots
2040 @cindex snapshots and version control 2039 @cindex snapshots and version control
2041 2040