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 Mühlebach <mi...@anduin.ch> on 2004/09/03 21:41:00 UTC
"Move" a tag/branch forward
Hello,
Is it possible to merge two URL's without a wc?
It is needed to "move" a branch to a newer revision.
greets
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "Move" a tag/branch forward
Posted by Ben Collins-Sussman <su...@collab.net>.
Please don't reply to me personally. Re-sending to users@
On Tue, 2004-09-07 at 08:02, Michael Mühlebach wrote:
> Ok I did not explain so clear what my purpose is:
>
> If I have a repository liek this:
> -Project
> |-Trunk
> |-Branches
> |-Tags
> |-NewestSnapshot
>
> I would like to have a cronjob which moves the current development state
> (trunk) into the Tag "NewestSnapshot".
> A copy does not work because after the first copy the Tag already exists.
> A merge is not that good because the script would need a wc. (this means
> a checkout&delete each time or a persistent wc which needs too much disk
> space)
> The only way to "overwrite" an existing tag without a local workingcopy
> is to delete and copy. But that would be two revisions and so also
> unusable.....
>
> So what I need is a merge which operate directly in the repository or a
> copy which allows overwriting. Do such things exist or are in development?
No, there's no way to do a 'overwriting copy' with the svn commandline
client. You are correct: the best way to do it is 'svn rm URL-newest;
svn cp URL-trunk URL-newest'. Yes, that's two revisions. Does it
matter?
You could write a program (in C, python, perl, whatever) that uses the
SVN API to do the delete and copy in a single commit transaction. It
wouldn't be very hard. But again, is it worth it?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "Move" a tag/branch forward
Posted by Michael Mühlebach <mi...@anduin.ch>.
Sorry missed my reply-to-all button :-(
Two revisions are bad because one of them has no purpose. It is not that
bad but I try to avoid revisions without a purpose. Of couse the effort
to avoid this unelegancy is way too much but I hoped for a nice solution
someone maybe have :-)
Is something like I want planned for the future?
Ben Collins-Sussman wrote:
>Please don't reply to me personally. Re-sending to users@
>
>On Tue, 2004-09-07 at 08:02, Michael Mühlebach wrote:
>
>
>>Ok I did not explain so clear what my purpose is:
>>
>>If I have a repository liek this:
>>-Project
>> |-Trunk
>> |-Branches
>> |-Tags
>> |-NewestSnapshot
>>
>>I would like to have a cronjob which moves the current development state
>>(trunk) into the Tag "NewestSnapshot".
>>A copy does not work because after the first copy the Tag already exists.
>>A merge is not that good because the script would need a wc. (this means
>>a checkout&delete each time or a persistent wc which needs too much disk
>>space)
>>The only way to "overwrite" an existing tag without a local workingcopy
>>is to delete and copy. But that would be two revisions and so also
>>unusable.....
>>
>>So what I need is a merge which operate directly in the repository or a
>>copy which allows overwriting. Do such things exist or are in development?
>>
>>
>
>No, there's no way to do a 'overwriting copy' with the svn commandline
>client. You are correct: the best way to do it is 'svn rm URL-newest;
>svn cp URL-trunk URL-newest'. Yes, that's two revisions. Does it
>matter?
>
>You could write a program (in C, python, perl, whatever) that uses the
>SVN API to do the delete and copy in a single commit transaction. It
>wouldn't be very hard. But again, is it worth it?
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "Move" a tag/branch forward
Posted by Ben Collins-Sussman <su...@collab.net>.
Please don't reply to me personally. Re-sending to users@
On Tue, 2004-09-07 at 08:02, Michael Mühlebach wrote:
> Ok I did not explain so clear what my purpose is:
>
> If I have a repository liek this:
> -Project
> |-Trunk
> |-Branches
> |-Tags
> |-NewestSnapshot
>
> I would like to have a cronjob which moves the current development state
> (trunk) into the Tag "NewestSnapshot".
> A copy does not work because after the first copy the Tag already exists.
> A merge is not that good because the script would need a wc. (this means
> a checkout&delete each time or a persistent wc which needs too much disk
> space)
> The only way to "overwrite" an existing tag without a local workingcopy
> is to delete and copy. But that would be two revisions and so also
> unusable.....
>
> So what I need is a merge which operate directly in the repository or a
> copy which allows overwriting. Do such things exist or are in development?
No, there's no way to do a 'overwriting copy' with the svn commandline
client. You are correct: the best way to do it is 'svn rm URL-newest;
svn cp URL-trunk URL-newest'. Yes, that's two revisions. Does it
matter?
You could write a program (in C, python, perl, whatever) that uses the
SVN API to do the delete and copy in a single commit transaction. It
wouldn't be very hard. But again, is it worth it?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: "Move" a tag/branch forward
Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-09-03 at 16:41, Michael Mühlebach wrote:
> Hello,
>
> Is it possible to merge two URL's without a wc?
> It is needed to "move" a branch to a newer revision.
It's not clear what you're asking for. Try explaining what you want to
happen in more detail.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org