: I wonder: if we run an "svn commit . tags/lucene_2_4.../src" whether
: svn will do this as a single transaction?  Because "." (the trunk
: checkout) and tags/lucene_2_4... are two separate svn checkouts.  (I
: haven't tested).  If it does, then I think this approach is cleanest?

you can't have an atomic commit across independent checkouts -- the common 
root dir needs to be a valid svn working copy.

but you can have a common root dir that is a valid svn working copy 
(without checking out the entire svn hierarchy) by using non-recursive 
checkouts (-N).  you don't even need the full subdir hierarchy, just 
checkout and descendent directory into that initial working directory....


hoss...@coaster:~/svn-test$ svn ls https://my.work.svn/svn-demo/
branches/
tags/
trunk/
hoss...@coaster:~/svn-test$ svn co -N https://my.work.svn/svn-demo/ demo
Checked out revision 332746.
hoss...@coaster:~/svn-test$ cd demo 
hoss...@coaster:~/svn-test/demo$ svn co 
https://my.work.svn/svn-demo/trunk/a-direcory/ trunk-a
A    trunk-a/one_line_file.txt
Checked out revision 332746.
hoss...@coaster:~/svn-test/demo$ svn co 
https://my.work.svn/svn-demo/branches/BRANCH_DEMO_3/a-direcory 
branch-a
A    branch-a/one_line_file.txt
Checked out revision 332746.
hoss...@coaster:~/svn-test/demo$ svn status
?      trunk-a
?      branch-a
hoss...@coaster:~/svn-test/demo$ svn status trunk-a branch-a/
hoss...@coaster:~/svn-test/demo$ echo foo >> trunk-a/one_line_file.txt 
hoss...@coaster:~/svn-test/demo$ echo bar >> branch-a/one_line_file.txt 
hoss...@coaster:~/svn-test/demo$ svn commit -m "cross checkout commit" 
trunk-a branch-a
Sending        branch-a/one_line_file.txt
Sending        trunk-a/one_line_file.txt
Transmitting file data ..
Committed revision 332747.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to