[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Add existing code to version control

From: Nicholas Albion <nalbion_at_yahoo.com>
Date: 2007-03-14 17:36:11 CET

I've been using TortoiseSVN for over a year now, but every time I go to add a new project to version control I end up spending hours trying remember how to do it. The process doesn't need to be as complicated as it currently is I think that the developers of TSVN have overlooked the fact that there are different classes of users of TSVN:

1) SVN server administrators who want to create a new repository on a server, and import (or export?!) a tarball into the repo.

2) networked developers who want to download a project from an existing SVN repo.

3) developers who want to add source code for a new project to version control

I'm a type 3) user, and suspect that my use case has been overlooked in the design of the TSVN gui.

What I'd like to see are new items for the explorer right-click menu designed specifically for each use case. Use case 3) might be labeled "Add to version control". The menu item would give a dialog as shown:

    SVN url: [ file://c:\svn ]

    Repository name: [ MyProject ]
    Source location [ c:\swdev\projects\MyProject ] (browse...)

                                                                        [ OK ] [ Cancel ]

- The SVN url would typically remain unchanged once initially defined by during TSVN install. The default URL should be presented so the user has one less thing to remember. Very rarely would this change, perhaps it's not required at all for this use case.
- The repository name would be appended to SVN url and the wizard would do "md c:\svn\MyProject; right-click( c:\svn\MyProject )->"Create repository here"
- Source location would be used to import the existing code into the repo and then the repo would be checked out into this folder. This field would be automatically filled out as the folder selected for "Add to version control"

...Possibly not the clearest explanation, but basically, all the user would have to do would be to :
1) right click on an existing code base,
2) select "Add to version control"
3) give the project a name (and this might even be defaulted to the name of the current directory)
4) press OK.

...as opposed to:
1) navigate to c:\svn
2) create new folder "MyProject"
3) right click on folder
4) select "Create repository here"
5) navigate back to project
6) right click on folder
7) select "check out"
8) right click on folder
9) select "repo browser"
10) drag existing code into repo

To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed Mar 14 17:50:23 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.