Not sure if you wanted this level of detail, but just in case you are
wondering how to commit multiple files, or across multiple sections
of the file system, you can specify any number of folders and
anything that needs committing under it will be added.
So, for example (using a command line svn client):
+-foo/
+-bar/
+-baz/
Given the above directory, too see changes under foo/
$ cd foo/
$ svn status
The result may show (for a better explanation type "$ svn help status"):
X - for any directories that are brought in via svn:externals
(please let me know if you don't know what that is, I can explain
further)
? - for any files that are not under svn, and not being ignored via
svn:ignore
M - for any files that you've modified
A - for any files that you have either added with "svn add" or
moved with "svn mv"
D - for any files that you have removed with either "svn rm" or
moved with "svn mv"
C - for any conflicts, where you may have made a modification, then
updated ("svn up") and someone else made a modification that has
conflicts with your local version (same concept in cvs)
Now that the status of the files are listed, you can see the actual
differences with "svn diff". I usually pipe it to the "less" command
so that I can page back and forth to review my pending changes.
$ svn diff | less
So, let's say that in reviewing you're local changes, you've got 5
modified files in foo/bar, but you only want to commit 3 of them, and
you have changes under foo/baz/ and you want them *all* of it to be
committed:
$ svn commit -m "fixing some code" foo/bar/file1.txt foo/bar/
file2.txt foo/bar/file3.txt foo/baz/
If you create a system property for SVN_EDITOR, you can omit the
commit message (-m "") and you'll be prompted with the editor you
specify.
I use SVN_EDITOR=vi
HTH
--
James Mitchell
678.910.8017
On Aug 27, 2006, at 12:59 AM, Paul Benedict wrote:
Wendy Smoak wrote:
Also, remember to refer to the issue number in the commit message so
it will automatically show up on the 'Subversion Commits' tab in JIRA
Do you have an example commit message? If there's a special format,
please let me know.
PS: When this is all done, I should probably collect all these tips
and add them to our home page. Unless I missed all these guidelines
(it is quite possible!), it's worth documenting.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]