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

Re: Dumb question, perhaps

From: Kevin Grover <kogrover_at_yahoo.com>
Date: 2006-06-28 21:38:35 CEST

You can import the trunk/tags/branches structure, or you can use a command line client to add them
 
For example, when creating a new respository (called 'foo'), I might do something like this
 
c:
cd \repos\svn
mkdir foo
svnadmin create foo
 
NOTE: You can do the same thing in TSVN by creating the directory foo, right-clicking on it, and then choosing the Create Repository option.
 
This sets up the empty repository that SVN uses.
 
To get the initial file structure, I used to create an empty directory (_t for example) with three subdirectories (trunk, tags, and branches -- all empty), and then import that into my repository
 
c:
cd \temp
mkdir _t
cd _t
mkdir trunk
mkdir tags
mkdir branches
svn import . file:///c:/repos/svn/foo -m "Initial Directory Structure"
 
NOTE: You can do the same thing in TSVN by creating the directories in Explorer, the right-clicking on the _t directory and using the TSVN menu to get to the Import option.
 
HOWEVER, I now use this command:
 
svn mkdir file:///c:/repos/svn/foo/trunk file:///c:/repos/svn/foo/tags file:///c:/repos/foo/branches -m "Initial Directory Structure"
 
Which makes the directories in the repository immediately without needed to import local files.
 
For Unix/Linux uses using a shell with brace expansion, it becomes even simpler:
 
svn mkdir file:///repos/svn/foo/{trunk,tags,branches} -m "Initial Directory Structure"
 
It would probably be nice to have this function built into TSVN because it is some common. However, there are many other things that could probably also be argued for inclusion that the TSVN client could turn into bloatware.
 
Perhaps TSVN could be agumented with a scripting language (Lua??) so that users could add such little short cuts?
 
Cavet Emptor: note that the above commands were typed in on the fly and not verified. I probably made some typographical mistakes.
 
- Kevin Grover

----- Original Message ----
From: Kevin Perese <kevin.perese@gmail.com>
To: users@tortoisesvn.tigris.org
Sent: Wednesday, June 28, 2006 11:13:03 AM
Subject: Dumb question, perhaps

Jason,

Thanks, things are a bit more clear now. So, I'm free to delete the original directory of the project that I imported, right? (Not that I'll actually do this, but if I wanted to zip it up and move it, it will have no effect on the interaction between the repository and my work space, right?).

I have been reading the documenation and followed the steps layed out in TortoiseSVN_en.pdf on pages 34-35. I think I just missed the detail on having to IMPORT the trunk/branches/tags structure into the repository.

Thanks again for the help. 'Tis much appreciated.

- Kevin
Received on Wed Jun 28 21:40:40 2006

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.