Quote from: Soshite at Aug 06, 2008, 08:50 PM
So I would create C:\Subversion\projects\WebLoginPE, and then click Create Repository here... with TortoiseSVN, right?
Then do I run the commands, get things set up, then upload the WLPE files?
Right. But it’s a little more complicated than that.
Before doing anything else, it’s important to first set the eol property in TSVN to "native" so the files will always have the proper end-of-line characters no matter what system the user is on
.
Go to TSVN menu | Settings | General | Edit
That will pop up the config file for editing.
Make sure this line is *not* commented out:
enable-auto-props = yes
Then add this at the end of the file:
*.php = svn:eol-style=native
*.txt = svn:eol-style=native
etc. for other file types of files in the collection
Also add (or uncomment if it’s there)
svn:keywords Date Author Revision
In case we want to use them later.
Now you’re done with the config file. Save it and exit TSVN.
Then go to an empty folder and create the repository ("create repository here").
Then create a temporary folder to hold the files. Make three subdirectories: trunk, tags, branches.
Put your wlpe files in the trunk subdirectory.
Go up one level to the temp directory.
Right click there and select "import" from the TSVN menu. Enter the path to the *repository* you created above (not where the files are). You should see the files being imported. BTW, this step failed for me because the wlpe php files have inconsistent line endings. I loaded them into my editor, PhpEd, which normalizes the eol characters and and is set to give Unix line endings (kind of a MODx standard). and saved them. That fixed it.
Now the files are in the repository. If you select "repo browser" and give the path to the repository, you should be able to see them.
You can go to another temp directory (empty) and select "checkout" to get version-controlled versions of the files back out of the repository. This isn’t necessary but it’s a comfort to see them. Select the trunk directory in the repository when you do this. Note that neither of these directories will be the official working directory you use in the future. To get that, you’ll go to the directory, click "checkout" and give the URL of the Google code repository (after you get the files there). If you right click on the files and select "properties" on the TSVN menu (not the windows menu if you’re on windows) you should see the properties you set earlier.
You can delete or empty this dir. now since you don’t need it.
Now, you want to do the dump of the repository using the directions here:
http://www.shokhirev.com/nikolai/programs/SVN/backup_load.html
This creates the file you’ll upload to Google Code after setting the rev number to 0 at the bottom of the page.
Hope this all makes sense.
Bob