feature request: option to do checkout when creating a branch

26 views
Skip to first unread message

3rie...@gmail.com

unread,
Nov 13, 2019, 5:57:16 AM11/13/19
to TortoiseSVN
Hey, I use TortoiseSVN a lot. Both at work, but also at home for my personal stuff.
One thing I find myself doing a lot is :
* creating a branch ; typically via right-click on a existing trunk workarea
* start the repobrowser on that trunk-area
* navigate to the branches part
* click my just created branch to do checkout

I think it could be added as an optional (checkbox) to do that immediately from the 'create tag/branch' ?

would be nice !!

keep up the good work! love it !

thx, D.

Bruce C

unread,
Nov 13, 2019, 6:47:18 AM11/13/19
to TortoiseSVN
Hi. You may be aware of this already but, if not, it might be something to consider as an alternative to your suggestion.

I generally checkout to a local folder with a neutral name. For example, if I were to checkout trunk from the project_xyz repository I'd likely name the local folder "project_xyz". Specifically, I wouldn't name it "trunk". This is cosmetic but can avoid confusion for later in this suggestion.

When I want to create a branch, I'd normally use the TortoiseSVN "Branch/tag..." context menu option, from the checkout root folder. In the subsequent dialog, I select the new branch name. The important thing is to enable the "Switch working copy to new branch/tag" option, at the bottom of the dialog.

Using that approach, the existing local working copy is updated to a checkout of the newly created branch. It also has the benefit that local, uncommitted, changes are preserved so that they're ready to commit to the newly created branch or continue development. For a large repository, this approach is likely to be quicker as the existing working copy only needs to modified and avoids a full download of a new checkout.

At any point, the TortoiseSVN "Switch..." context menu item can be used to update the local checkout to a different repository location (e.g. back to trunk). You can use the Subversion tab of the folder properties dialog to keep track of the checkout repository location.

Now, this isn't the same as your suggested feature but it might be helpful if you haven't considered this workflow.

Hope this helps.

Stefan

unread,
Nov 13, 2019, 8:54:15 AM11/13/19
to TortoiseSVN


On Wednesday, November 13, 2019 at 11:57:16 AM UTC+1, (unknown) wrote:
Hey, I use TortoiseSVN a lot. Both at work, but also at home for my personal stuff.
One thing I find myself doing a lot is :
* creating a branch ; typically via right-click on a existing trunk workarea

there's a checkbox "Switch working copy to new branch" in the branch/tag dialog.
 
* start the repobrowser on that trunk-area
* navigate to the branches part
* click my just created branch to do checkout

the branch url is automatically copied to the clipboard when crating a new branch/tag.
So simply to a checkout and hit Ctrl+V to insert the checkout url
(even Ctrl+V shouldn't be necessary: the checkout dialog parses the clipboard and if it finds an URL it is used automatcally)

Stefan

DRI Riemens

unread,
Nov 18, 2019, 1:30:50 AM11/18/19
to TortoiseSVN
Hi Stefan, Bruce,

I am aware of the checkbox for switching the current workarea; however I (almost) always want to keep a checked out version
of the trunk local. Which means that for any 'bigger' changes, I choose to create a new workarea for the branch. Which I then
checkout as well. Only for huge repo's I typically use the switching... 
On the switching I have had several bad experiences with 'tree conflicts' that, to fix them, cost me more time (and headache) than 
doing a clean checkout.

I am even aware that the new branch URL is copied to the clipboard; this is great, but to me it feels like a natural thing to, after 
branch creation, do either switching the current workarea - which did get a checkbox -, or a new checkout - which did not get a checkbox-.
As said, it would help me saving quite some clicks during the day, so I still hope someone would see the benefit as well, and implement.
thx, D.

--
You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/hGv7BUfyeII/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/63fc95d7-7ee8-4906-b4c1-3de73d52d156%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages