annotate doc/emacs/vc1-xtra.texi @ 97312:aa4551463556

(VC Directory Mode): Talk about multiple VC systems.
author Dan Nicolaescu <dann@ics.uci.edu>
date Wed, 06 Aug 2008 03:45:04 +0000
parents 2f673abd5eb7
children dbc2d4ac9902
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 @c This is part of the Emacs manual.
87903
5d58981e6690 Merge from emacs--rel--22
Miles Bader <miles@gnu.org>
parents: 85136
diff changeset
2 @c Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3 @c See file emacs.texi for copying conditions.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 @c
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 @c This file is included either in vc-xtra.texi (when producing the
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 @c printed version) or in the main Emacs manual (for the on-line version).
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
7 @node VC Directory Mode
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
8 @subsection VC Directory Mode
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
10 @cindex PCL-CVS
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
11 @pindex cvs
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
12 @cindex CVS directory mode
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
13 The VC directory mode described here works with all the version control
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 systems that VC supports. Another more powerful facility, designed
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 specifically for CVS, is called PCL-CVS. @xref{Top, , About PCL-CVS,
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 pcl-cvs, PCL-CVS --- The Emacs Front-End to CVS}.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 @kindex C-x v d
97109
20a9ca33d937 (VC Directory Mode): Update the display format and fix
Dan Nicolaescu <dann@ics.uci.edu>
parents: 95054
diff changeset
19 @findex vc-dir
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
20 When you are working on a large program, it is often useful to find
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21 out which files have changed within an entire directory tree, or to view
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 the status of all files under version control at once, and to perform
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 version control operations on collections of files. You can use the
97109
20a9ca33d937 (VC Directory Mode): Update the display format and fix
Dan Nicolaescu <dann@ics.uci.edu>
parents: 95054
diff changeset
24 command @kbd{C-x v d} (@code{vc-dir}) to make a directory listing
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25 that includes only files relevant for version control.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
27 @kbd{C-x v d} creates a buffer which uses VC directory mode. This
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
28 buffer will contain a listing of version-controlled files below the
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
29 current directory, and their containing directories. Files which are
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
30 up-to-date (have no local differences from the repository copy) will be
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
31 omitted; if all files in a directory are up-to-date, the directory will
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
32 be omitted as well. (However, the directory in which @code{vc-dir} was
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
33 run will always be shown as @file{./}.) There is an exception to this
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
34 rule: if VC mode detects that a file changed to up-to-date state since
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
35 you last looked at it, that state will be shown.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36
97312
aa4551463556 (VC Directory Mode): Talk about multiple VC systems.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97284
diff changeset
37 If a directory uses more that one VC systems, the VC system to use for
aa4551463556 (VC Directory Mode): Talk about multiple VC systems.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97284
diff changeset
38 the vc-dir command can be chosen with a prefix argument,
aa4551463556 (VC Directory Mode): Talk about multiple VC systems.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97284
diff changeset
39 i.e. @kbd{C-u C-x v d}.
aa4551463556 (VC Directory Mode): Talk about multiple VC systems.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97284
diff changeset
40
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
41 The line for an individual file will show the version control state of
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
42 the file. Under RCS and SCCS, the name of the user locking the file
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 is shown; under CVS, an abbreviated version of the @samp{cvs status}
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44 output is used. Here is an example using RCS:
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 Here is an example using CVS:
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 @smallexample
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 @group
97109
20a9ca33d937 (VC Directory Mode): Update the display format and fix
Dan Nicolaescu <dann@ics.uci.edu>
parents: 95054
diff changeset
50 ./
20a9ca33d937 (VC Directory Mode): Update the display format and fix
Dan Nicolaescu <dann@ics.uci.edu>
parents: 95054
diff changeset
51 modified file1.c
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
52 needs-update file2.c
97284
2f673abd5eb7 (VC Directory Mode): Fix typo.
Nick Roberts <nickrob@snap.net.nz>
parents: 97238
diff changeset
53 needs-merge file3.c
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54 @end group
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 @end smallexample
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 Here @samp{file1.c} is modified with respect to the repository, and
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 @samp{file2.c} is not. @samp{file3.c} is modified, but other changes
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 have also been checked in to the repository---you need to merge them
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 with the work file before you can check it in.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 @vindex vc-stay-local
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 @vindex vc-cvs-stay-local
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 In the above, if the repository were on a remote machine, VC would
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 only contact it when the variable @code{vc-stay-local} (or
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 @code{vc-cvs-stay-local}) is nil (@pxref{CVS Options}). This is
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 because access to the repository may be slow, or you may be working
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68 offline and not have access to the repository at all. As a
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 consequence, VC would not be able to tell you that @samp{file3.c} is
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 in the ``merge'' state; you would learn that only when you try to
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 check-in your modified copy of the file, or use a command such as
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 @kbd{C-x v m}.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 In practice, this is not a problem because CVS handles this case
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 consistently whenever it arises. In VC, you'll simply get prompted to
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 merge the remote changes into your work file first. The benefits of
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 less network communication usually outweigh the disadvantage of not
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 seeing remote changes immediately.
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 @vindex vc-directory-exclusion-list
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
81 When a VC directory displays subdirectories it omits some that
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
82 should never contain any files under version control. By default,
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
83 this includes Version Control subdirectories such as @samp{RCS} and
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
84 @samp{CVS}; you can customize this by setting the variable
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
85 @code{vc-directory-exclusion-list}.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
87 @node VC Directory Commands
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
88 @subsection VC Directory Commands
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
89
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
90 VC Directory mode has a full set of navigation and marking commands
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
91 for picking out filesets. Some of these are also available in a
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
92 context menu invoked by the @kbd{mouse-2} button.
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
93
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
94 Up- and down-arrow keys move in the buffer; @kbd{n} and @kbd{p} also
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
95 move vertically as in other list-browsing modes. @key{SPC} and
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
96 @key{TAB} behave like down-arrow, and @key{BackTab} behaves like
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
97 up-arrow.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
99 Both @kbd{C-m} and @kbd{f} visit the file on the current
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
100 line. @kbd{o} visits that file in another window. @kbd{q} dismisses
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
101 the directory buffer.
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
102
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
103 @kbd{x} toggles hiding of up-to-date files.
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
104
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
105 @kbd{m} marks the file or directory on the current line. If the
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
106 region is active, @kbd{m} marks all the files in the region. There
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
107 are some restrictions when marking: a file cannot be marked if any of
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
108 its parent directories are marked, and a directory cannot be marked if
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
109 any files in it or in its child directories are marked.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
111 @kbd{M} marks all the files with the same VC state as the current
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
112 file if the cursor is on a file. If the cursor is on a directory, it
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
113 marks all child files. With a prefix argument: marks all files and
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
114 directories.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
115
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
116 @kbd{u} unmarks the file or directory on the current line. If the
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
117 region is active, it unmarks all the files in the region.
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
118
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
119 @kbd{U} marks all the files with the same VC state as the current file
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
120 if the cursor is on a file. If the cursor is on a directory, it
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
121 unmarks all child files. With a prefix argument: unmarks all marked
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
122 files and directories.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
124 It is possible to do search, search and replace, incremental search,
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
125 and incremental regexp search on multiple files. These commands will
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
126 work on all the marked files or the current file if nothing is marked.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
127 If a directory is marked, the files in that directory shown in the VC
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
128 directory buffer will be used.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
129
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
130 @kbd{S} searches the marked files.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
131
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
132 @kbd{Q} does a query replace on the marked files.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
133
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
134 @kbd{M-s a C-s} does an incremental search on the marked files.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
135
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
136 @kbd{M-s a C-M-s} does an incremental search on the marked files.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
137
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
138 Commands are also accessible from the VC-dir menu. Note that some VC
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
139 backends use the VC-dir menu to make available extra backend specific
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
140 commands.
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
141
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
142 Normal VC commands with the @kbd{C-x v} prefix work in VC directory
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
143 buffers. Some single-key shortcuts are available as well; @kbd{=},
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
144 @kbd{+}, @kbd{l}, @kbd{i}, and @kbd{v} behave as through prefixed with
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
145 @kbd{C-x v}.
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
146
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
147 The command @kbd{C-x v v} (@code{vc-next-action}) operates on all the
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
148 marked files, so that you can check in several files at once.
85136
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
149 If the underlying VC supports atomic commits of multiple-file
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
150 changesets, @kbd{C-x v v} with a selected set of modified but not
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
151 committed files will commit all of them at once as a single changeset.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
153 When @kbd{C-x v v} (@code{vc-next-action}) operates on a set of files,
97238
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
154 it requires that all of those files must be either in the same state or
d690bee90711 (VC Directory Mode, VC Directory Commands): Fix English and wording.
Eli Zaretskii <eliz@gnu.org>
parents: 97220
diff changeset
155 in compatible states; otherwise it will throw an error (added,
97220
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
156 modified and removed states are considered compatible). Note that this
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
157 differs from the behavior of older versions of VC, which did not have
605f76f600ae (VC Directory Mode): Fix and improve the info about
Dan Nicolaescu <dann@ics.uci.edu>
parents: 97109
diff changeset
158 fileset operations and simply did @code{vc-next-action} on each file
85136
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
159 individually.
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
160
94818
8eb267268480 Document the new VC directory mode.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 87903
diff changeset
161 If any files are in a state that calls for commit, @kbd{C-x v v} reads a
85136
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
162 single log entry and uses it for the changeset as a whole. If the
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
163 underling VCS is file- rather than changeset-oriented, the log entry
25d7083373cc Updates for new VC.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 84271
diff changeset
164 will be replicated into the history of each file.
84271
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 @ignore
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 arch-tag: 8e8c2a01-ad41-4e61-a89a-60131ad67263
ceb51f666c2a Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 @end ignore