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

Request: Easier project import

From: Flex <flex_at_datecs.bg>
Date: 2007-04-02 15:44:25 CEST

Hey guys, since I'm responsible in my company for helping others to
(slowly) move to tsvn, I found it hard to do/explain to others how to
import projects at first:

1st way: like in the docs - right-click on the folder->Import. Then
delete the project and checkout in the folder. Drawbacks: completely no
control on the files, if there are global ignores on, you risk loosing
some files that valuable for the project, helper executables for
example, if they are off - then suddenly on 500k project you get 50mb
precompiled headers in.

2nd way: right-click on the folder->Import. It gets imported but not
versioned, no control at all what gets inside, global ignores sometimes
kill valuable files or if they are not on - a tons of precompiled
headers and stuff gets in. Project needs to be renamed/put somewhere
else, checked out, files from the old copied over, the ones that global
ignore killed - added manually. Drawbacks - complicated, lot of manual work.

3rd way: rename project folder to something else, create new folder with
the project name, import it, checkout, copy all files from the old
project to the new project directory, do "Add", then you have full
control over the files, global ignores still work but you can manually
select additional files and be sure everything is in. Drawbacks - lots
of manual work

I prefer the third way, it has no functional drawbacks at all, but still
requires lot of manual work, especially with tons of small projects. Can
there be more... automated import command that makes it possible in a
single step to import+version the project while keeping the control of
the added files. Basically to auto execute the steps in the "3rd way":
1. Fire a dialog to select directory for the project in the repository,
named %REP_PROJECT%
2. Rename %PROJECT% to %PROJECT%_TempString (because %PROJECT% and
%REP_PROJECT% will mostly be the same name)
3. Create a directory %REP_PROJECT% in the repository
4. Checkouts that directory to %PROJECT% path
5. Moves all files from inside %PROJECT%_TempString to the %PROJECT%
directory
6. Does "Add Files" command and it can stop there, the user will review
if there are additional files to be added, then ok and commit.
Alternative, it can do the Add files silently, as if the user clicked ok
with the defaults, then fire the Commit dialog, where additional files
can be checked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Apr 2 15:45:05 2007

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

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