You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Hipp <Mi...@Hipp.com> on 2005/06/08 14:03:27 UTC

Multi-location commit - allowed?

Is this syntax allowed?

svn commit c:\wc1 c:\wc2 -m "Testing multi-location commit"

I'm trying to do a commit on two different working copy locations at once. Is 
this allowed? In the book, I don't see an explanation for whether the syntax 
item "[PATH...]" refers to only one or can be multiple.

Thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Multi-location commit - allowed?

Posted by Ben Collins-Sussman <su...@collab.net>.
On Jun 8, 2005, at 12:02 PM, Scott Palmer wrote:

>
> On Jun 8, 2005, at 2:34 PM, Dale Worley wrote:
>
>
>>> From: Michael Hipp [mailto:Michael@Hipp.com]
>>>
>>> Yes, it says something like "C: is not a working copy" which  
>>> seems an
>>> odd error message.
>>>
>>>
>>
>> When Svn does a check-in, it abstracts from the list of files  
>> mentioned
>> their nearest common ancestor.  That ancestor tells the repository  
>> into
>> which the checkin will be done.  In your case, the nearest common  
>> ancestor
>> was C:, and evidently it wasn't the root of a WC.
>>
>
> Nor should it need to be.  Why can't svn just check the "Repository  
> UUID" from the WC metadata, see that they match,
> and proceed with the commit?
>

We used to have this behavior, but had to regress it to fix some  
other bug.  I think it may be a filed issue.

(In other words, 'svn commit target1 target2 ... targetN' used to  
group all changes by repos UUID, and then make one atomic commit to  
each repository involved.)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Multi-location commit - allowed?

Posted by Scott Palmer <sc...@2connected.org>.
On Jun 8, 2005, at 2:34 PM, Dale Worley wrote:

>> From: Michael Hipp [mailto:Michael@Hipp.com]
>>
>> Yes, it says something like "C: is not a working copy" which seems an
>> odd error message.
>>
>
> When Svn does a check-in, it abstracts from the list of files  
> mentioned
> their nearest common ancestor.  That ancestor tells the repository  
> into
> which the checkin will be done.  In your case, the nearest common  
> ancestor
> was C:, and evidently it wasn't the root of a WC.

Nor should it need to be.  Why can't svn just check the "Repository  
UUID" from the WC metadata, see that they match,
and proceed with the commit?

Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Multi-location commit - allowed?

Posted by Dale Worley <dw...@pingtel.com>.
> From: Michael Hipp [mailto:Michael@Hipp.com]
>
> Yes, it says something like "C: is not a working copy" which seems an
> odd error message.

When Svn does a check-in, it abstracts from the list of files mentioned
their nearest common ancestor.  That ancestor tells the repository into
which the checkin will be done.  In your case, the nearest common ancestor
was C:, and evidently it wasn't the root of a WC.

Dale



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Multi-location commit - allowed?

Posted by Michael Hipp <Mi...@Hipp.com>.
Ryan Schmidt wrote:
> On 08.06.2005, at 16:03, Michael Hipp wrote:
> 
>> Is this syntax allowed?
>>
>> svn commit c:\wc1 c:\wc2 -m "Testing multi-location commit"
>>
>> I'm trying to do a commit on two different working copy locations at 
>> once. Is this allowed? In the book, I don't see an explanation for 
>> whether the syntax item "[PATH...]" refers to only one or can be 
>> multiple.
> 
> 
> Have you tried it? (I have.)

Yes, it says something like "C: is not a working copy" which seems an 
odd error message. Are you saying it works for you?

I can't try it right now because my repo is not accessible from here.

Thanks,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Multi-location commit - allowed?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On 08.06.2005, at 16:03, Michael Hipp wrote:

> Is this syntax allowed?
>
> svn commit c:\wc1 c:\wc2 -m "Testing multi-location commit"
>
> I'm trying to do a commit on two different working copy locations at 
> once. Is this allowed? In the book, I don't see an explanation for 
> whether the syntax item "[PATH...]" refers to only one or can be 
> multiple.

Have you tried it? (I have.)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org