[DUG] Source Control - ToritoiseSVN - Importing without Deletion

Moretti, Giovanni G.Moretti at massey.ac.nz
Wed Sep 26 17:00:57 NZST 2007


Hi John

	I have just started using it (Subversion) as a single developer,

	 
	I am bemused by a couple of things:
	 
	1 - Is there any way to put a folder structure under source 
          control other than select the folder, Import (into 
          Tortoise repository), rename or delete the original 
          folder and check out from the repository again?  
          a tad roundabout (and I hate deleting or renaming the 
          working source folder!)

Me too - deleting existing files is really hard!

Try this (using TortoiseSVN):

  1. using the RepositoryBrowser, Create a new folder directly 
     in the repository- name it something appropriate (myProject)

  2. right-click on the existing folder you wish to put under 
     version control and select **CheckOut**

  3. Select the empty folder you created in step 1

  4. TortoiseSVN will ask for confirmation that you wish to 
     check-out into a non-empty folder (say YES/OK)
 
This will create the .svn folder but won't change any existing files as
the folder you've just checked-out is empty.
 
  5. You can then commit in the usual way and all the pre-existing 
     files will be detected as new and will be added when you commit.
 
Not exactly obvious but simple enough. Saw it ages ago on the
TortoiseSVN mailing list - just tried it and it works as expected.

Cheers
Giovanni
 
PS: as usual, this is just an educational suggestion - Use at your own
risk :-)
=====================================================================
Giovanni Moretti  |  Institute of Information Sciences and Technology
Senior Lecturer   |  Massey University, Palmerston North, New Zealand
Computer Science  |  Ph 64-6-3505799x2474 =Fax 64-6-3502259 == ZL2BOI 
=====================================================================
http://www-ist.massey.ac.nz/moretti     mailto:G.Moretti at massey.ac.nz


________________________________

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of John Bird
Sent: Wednesday, 26 September 2007 2:26 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Source Control - ToritoiseSVN


I have just started using it as a single developer, 
 
I am bemused by a couple of things:
 
1 - Is there any way to put a folder structure under source control
other than select the folder, Import (into Tortoise repository), rename
or delete the original folder and check out from the repository again?
a tad roundabout (and I hate deleting or renaming the working source
folder!)
 
2 - Having done that above, now having a copy of the original folder
renamed and the new checked out folder, I am wondering why a few files
were missed in the import and checkout and as a result are not in the
working folder, eg a couple of .txt files (these were not in the global
ignore pattern), and a couple of folders with some pretty old stuff that
I still expected would have been picked up.  I have added them, but it
makes ya wonder....

John 





More information about the Delphi mailing list