4

I am using Versions (Mac OS X SVN software) and have created a branch labeled 3.0

I would like to take everything that is up to revision 144 from our Trunk and basically make that into the branch 3.0.

I have no clue how I am supposed to do that.

kylex
  • 14,178
  • 33
  • 114
  • 175
  • 1
    Answer using GUI here: http://stackoverflow.com/questions/9753601/create-branch-in-versions-mac-subversion-client I can't believe it's so hard to find. :/ – radsdau Jan 07 '13 at 22:40

2 Answers2

5

You'll have to use the svn copy command.

svn copy my_repo/trunk -r 144 my_repo/branches/3.0

or

svn copy ^/trunk -r 144 ^/branches/3.0

where ^/ is a shortcut for the remote URL.

check the documentation here

Cédric Julien
  • 78,516
  • 15
  • 127
  • 132
  • Is there a way to do this using the Versions client? – kylex May 13 '11 at 19:37
  • One think I noticed about this command is the actual folder "trunk" is copied into branch 3.0, is there a way just to get the content inside trunk and not the actual folder copied over? – kylex May 18 '11 at 16:17
  • try this `svn copy my_repo/trunk/ -r 144 my_repo/branches/3.0` – Cédric Julien May 18 '11 at 17:18
  • With that command you also get local changes. Use ^/ instead to get only files from the server, but no local changes. See documentation. I would therefore say this answer is wrong. – Ini Jul 29 '19 at 13:11
  • 1
    @Ini : in the answer, the `my_repo` refers to the remote URL, so it will not take the local changes ^_^ , but you're right, using `^/` is the same (and a good shortcut) – Cédric Julien Jul 29 '19 at 14:54
  • True, I revert my statement, sry. Thank you for incorporating my suggestion in your answer. – Ini Jul 29 '19 at 18:23
3

Try this...

 $ svn copy -r 144 URL/trunk URL/branches/Rev3.0
Andrew
  • 2,530
  • 16
  • 9