You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Konstantin Kolinko <kn...@gmail.com> on 2017/09/01 09:10:37 UTC

Re: [OT] Moving files between projects in svn

2017-09-01 0:42 GMT+03:00 Christopher Schultz <ch...@christopherschultz.net>:
>
> Mark,
>
> On 8/31/17 5:38 PM, Mark Thomas wrote:
>> On 31/08/17 22:13, Christopher Schultz wrote:
>>> All,
>>>
>>> I've got a subversion repository with multiple "projects" similar
>>> to how ASF has their set up: each project gets a top-level
>>> directory, then /trunk, /tags, and /branches below each of those
>>> top-levels.
>>>
>>> I'd like to merge two of my projects together, and I can only
>>> see three options:
>>>
>>> 1. Check out the entire repository and "svn mv" individual
>>> files/directories between the projects in the working copy, then
>>> do a single commit.
>>>
>>> 2. Do an "svn mv project-url-A project-url-b/temp" and then move
>>> the files around within the working copy of project-url-b to get
>>> them where I want them.
>>>
>>> This will create at least two commits, where the first commit
>>> creates a bit of a not-sane state with regard to project-b, but
>>> isn't the worst thing that could happen.
>>>
>>> 3. Do individual "svn mv" operations on each of the files and
>>> directories I want to move as URLs (i.e. not using the
>>> working-copy). This will create many commits where the state of
>>> project-B is potentially broken.
>>>
>>> Are there any other ways of doing this that I haven't thought of?
>>> I'd really like to have a single commit that goes from these
>>> projects being separate to them being unified without breaking
>>> any builds or doing any "temp" funny business like I have in
>>> option 2 above.
>>
>> 1. but with a sparse checkout so you only checkout the projects you
>> want to merge?
>
> Sounds perfect. Thanks for the pointer. :)

+1

For sake of completeness, there is also a tool called "svnmucc",
which nowadays is included with standard svn distribution.

http://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html

It can perform several move operations in the same commit.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: [OT] Moving files between projects in svn

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Konstantin,

On 9/1/17 5:10 AM, Konstantin Kolinko wrote:
> 2017-09-01 0:42 GMT+03:00 Christopher Schultz
> <ch...@christopherschultz.net>:
>> 
>> Mark,
>> 
>> On 8/31/17 5:38 PM, Mark Thomas wrote:
>>> On 31/08/17 22:13, Christopher Schultz wrote:
>>>> All,
>>>> 
>>>> I've got a subversion repository with multiple "projects"
>>>> similar to how ASF has their set up: each project gets a
>>>> top-level directory, then /trunk, /tags, and /branches below
>>>> each of those top-levels.
>>>> 
>>>> I'd like to merge two of my projects together, and I can
>>>> only see three options:
>>>> 
>>>> 1. Check out the entire repository and "svn mv" individual 
>>>> files/directories between the projects in the working copy,
>>>> then do a single commit.
>>>> 
>>>> 2. Do an "svn mv project-url-A project-url-b/temp" and then
>>>> move the files around within the working copy of
>>>> project-url-b to get them where I want them.
>>>> 
>>>> This will create at least two commits, where the first
>>>> commit creates a bit of a not-sane state with regard to
>>>> project-b, but isn't the worst thing that could happen.
>>>> 
>>>> 3. Do individual "svn mv" operations on each of the files
>>>> and directories I want to move as URLs (i.e. not using the 
>>>> working-copy). This will create many commits where the state
>>>> of project-B is potentially broken.
>>>> 
>>>> Are there any other ways of doing this that I haven't thought
>>>> of? I'd really like to have a single commit that goes from
>>>> these projects being separate to them being unified without
>>>> breaking any builds or doing any "temp" funny business like I
>>>> have in option 2 above.
>>> 
>>> 1. but with a sparse checkout so you only checkout the projects
>>> you want to merge?
>> 
>> Sounds perfect. Thanks for the pointer. :)
> 
> +1
> 
> For sake of completeness, there is also a tool called "svnmucc", 
> which nowadays is included with standard svn distribution.
> 
> http://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html
> 
> It can perform several move operations in the same commit.

Thanks for the additional reference. In my case, the sparse-checkout
made a lot more sense, because I needed to do things like run our test
suite on the resulting working copy before I committed anything.

But next time I need to "archive" a whole bunch of RCs or really old
tags or something, I'll definitely keep svnmucc in mind.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZqW4rAAoJEBzwKT+lPKRY+R0P/1P2i3X4DcWEzPf7Fq5xwty1
KG4zMJ8Tmc8Ko4bnYneng85o1c5iCU4Yu4WdWEbsSdjHUJVOb292Y4MxzSWDECPB
ZC/Z5jIVR551IojasuIdBxsvYoZiThhCWtQYMy/SGoFWlu9k7uIKwvUvjDm2i7F8
TaBjb9stdbQamFqKgjEKRKMImOsV1JgjQH9hpIPOKqobJxPjNn3l+mjLp1BubS50
fT7Vw0XrEmbNOFXHIFSWQsbG6hgp/8E0ERq52srpRlsh1tTsrNdDtWyrDGOvpnyG
R52c1DRX5znfMhfl0ms7fAmsNPCdcPCh137zb4ciJkx4s6JjTAuXM386nOvsoATf
afPrhGfJXNtjthRV3GsEyUlhTQBKNuFuubXSkyw+yHzvurdWLfqrOQj/3hQgvTxt
jDnwvk4MCaB4FAaA4eDs/9vOBRCX+spF9JDhfXr7mvh5UvU9RPsio51ITfP+lWtw
ThO1d6gf9RNfCGPc3vQOuph52mXeK2lVxTb6CT1iiTwKWglUM9gxsxlzqepAb52N
El82S0/MgSU56KPJKVl7vrc0hwrRoLIuRGQt087li2DwlJ5C1OHRvEmyu54tN1+t
2Lo1Z3lSPlrhSD3BIktMmp0at7cuxAdsx7QMNAIw1N0iPkIpSFkyqtPrwj4Yu8ms
yoRz1fktJa8JJaAZ21J6
=K9w9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org