I keep branching to the same url

45 views
Skip to first unread message

Melanie Sage

unread,
Jun 14, 2019, 4:24:49 PM6/14/19
to TortoiseSVN
Hi all,

In the right click menu, the option Tortoise SVN > Branch/Tag, brings up the "Copy (Branch / Tag)" window.

Here, we are able to set the "To path" where we want our new branch to be.
By default, it's the path that you are copying from, so it is almost certain that you don't want it to be this value.

If you change it, then it creates the folder at the path specified. Unless that path already exists, in which case you get an error.
If you do not change it, then it creates the folder inside the folder at the path specified. It does not give you an error stating the path already exists.
My company's workflow has us make a new dev branch every iteration, so I make this mistake extremely frequently.

Is there a way for the default path to not be this way, or else how can I stop accidentally committing massive folders into trunk?
Please save me from my stupidity.

Thanks,
Melanie

Stefan

unread,
Jun 15, 2019, 8:45:43 AM6/15/19
to TortoiseSVN
Currently there is no option to change the url in the branch/tag dialog. It's filled in automatically with the url of the working copy so that you can just change it instead of having to enter a full url.

Melanie Sage

unread,
Jun 16, 2019, 10:02:20 PM6/16/19
to torto...@googlegroups.com
Hi Stefan,

Thanks for the reply, and my apologies for not understanding. Can you confirm that this workflow is the expected behavior?

Branch "trunk/src/myfolder" to "dev/src/myfolder" -> creates dev/src/myfolder
Branch "trunk/src/myfolder" to "dev/src/myfolder" again -> receive error stating folder exists
Switch to "dev/src/myfolder"
Branch "dev/src/myfolder" to "dev/src/myfolder" -> creates dev/src/myfolder/myfolder

Thanks,
Melanie

Stefan

unread,
Jun 17, 2019, 1:40:21 PM6/17/19
to TortoiseSVN


On Monday, June 17, 2019 at 4:02:20 AM UTC+2, Melanie Sage wrote:
Hi Stefan,

Thanks for the reply, and my apologies for not understanding. Can you confirm that this workflow is the expected behavior?

Branch "trunk/src/myfolder" to "dev/src/myfolder" -> creates dev/src/myfolder
Branch "trunk/src/myfolder" to "dev/src/myfolder" again -> receive error stating folder exists

Are you sure you get an error? Because the svn docs state that:

if DST is an existing directory, the sources will be added as children of DST.

Stefan

Melanie Sage

unread,
Jun 17, 2019, 2:34:05 PM6/17/19
to TortoiseSVN
Hmm. I could have sworn I did this workflow just before posting. Unable to reproduce error with the steps I outlined. I guess I was mistaken... we can consider the matter closed. 
I appreciate your responses and clarification!

Thanks,
Melanie
Reply all
Reply to author
Forward
0 new messages