Creating a New SVN Repository

This will not apply to all SVN users and admins. This documents the process I had to use.

Software Details:
Microsoft Windows Server 2003 R2 Standard Edition Service Pack 2
VisualSVN Server Standard Edition version 2.5.1
TortoiseSVN 1.7.1

Instructions:

  1. RDP to dev.myserver.net (Dev/SVN server)
  2. In VisualSVN Server, right-click on Repositories and select Create New Repository.
  3. Enter repository name (usually project name) and check Create Default Structure and click OK
  4. Temporarily change SVN authentication
    1. Right click on the new repository > All Tasks > Manage Security.
    2. Make sure that Everyone has No Access.
    3. Click Add and under Groups, highlight MyserverDev and click OK
    4. Click Add again and under Users, highlight SVNService and click OK
    5. Ensure the new additions have Read/Write permissions.
    6. Click OK
  5. Don't worry about hooks.
  6. Change Authentication temporarily
    1. In the left pane at the top of the tree, highlight VisualSVN Server (local)
    2. In the right pane click Configure authentication options...
    3. Check the radio button for Use Windows authentication.
    4. Click OK and let service auto restart.
  7. The files you will be importing into SVN should be in C:\SVNRepoStorage\\trunk
  8. Do the import
    1. In Windows Explorer, navigate to the above location and highlight the trunk directory
    2. Right click select TortoiseSVN > Import...
    3. For the URL of repository, use your newly created repository: https://svn.myserver.net/svn//trunk
    4. Click OK and watch the import process.
  9. Go back and reset authentication options back to Use Subversion authentication. See #4 above.
  10. You may now add the Repository location to Subversion and check out files.

SVN Post-Commit Hook Failed (exit code 1) with output

post-commit hook failed (exit code 1) with output:
Conflict discovered in
'C:/filestorage/directory/yada/yada/screwed-up-file.cfc'.
Select: (p) postpone, (df) diff-full, (e) edit,
(mc) mine-conflict, (tc) theirs-conflict,
(s) show all options: svn:E00714: Can't read stdin: End of file found

Using SVN through CFEclipse and SubVersion the above error occurred when trying to commit a new template. A newer user pushed up the 'screwed-up-file.cfc', though I am unsure what caused this.

What did NOT work

  1. Deleting the local project from the workspace and rechecking out the project.
  2. Google - could not find any help.

What DID work

Deleting the offending file from the local project. Committing the deletion to the SVN repository and then creating the offending file again. In my case I made a copy in Notepad (or someother IDE outside of CFEclipse) before deleting and just recopied the file back. Then I committed the new (same) file back up.

Hopefully this will help you, if you are Googling all over the place for some advice!

Context validation error for tag cffunction

Either the end tag </cffunction> encountered on line 12 at column 11 requires a matching start tag or tag cffunction does not support end tag.

Working with ColdFusion 9 and ORM, checking out and loading an application from a SVN repository resulted in the Context validation error for tag cffunction error.

It turns out that ORM cannot process the functions in MXUnit folders. It is necessary to remove the MXUnit folder from the web root path.

SVN Source Control, Mura and Subclipse

Using: Windows, CFEclipse, Subclipse, Mura

Problem with SVN overwriting Mura changes, especially in Assets folder.

Create a new SVN repository in the actual Repository. I had to RDP (Remote Desktop into the SVN server and create using VisualSVN Server. Checked the make subdirectories box for trunk, branches etc.

Next I went into CFEclipse and the SVN Repository Exploring perspective and added the newly created repository to the SVN Repositories View. Right click in the SVN Repositories View window. Mouseover New > Repository Location and click finish.

We don't have a sub folder under trunk for our files. Right click Trunk in you new repository and mouseover to New > Remote Folder to create your sub folder.

Back to CFEclipse and right click in the Project Explorer window, choosing New > Project. In the Select a Wizard box, highlight SVN > Checkout Projects from SVN and click Next.
Using your existing repository locations, highlight your new repository and click Next.
Open up the folders down to the new folder under Trunk and highlight it and click Next.
Now check out the repository as you would normally. I created a new project name, workspace and workspace location.

Unbelievably I didn't have Subversion installed. That would have been handy. I had to RDP into a networked computer and SVN Export all my Mura site files into the new workspace.

While I was in my workspace folder (Windows Explorer) I deleted the contents of the "assets" folder under my Mura site. Not under the default site but under my site.

Back to CFEclipse, where I could have deleted the contents of the "assets" folder.

I wanted to see if the site would run before I committed the files, so I had to go into IIS and change the home directory of my site to view it in a browser. And it does work without the viewable items in the assets folder.

statSVN - How Many Lines of Code

How many lines of code do we have? Someone wants to do some security testing on web applications and wishes to determine the scope of the project. Can you tell us how many lines of code there are?

If you use Subversion (SVN) you are in luck. Download and open statSVN (http://www.statsvn.org/downloads.html). This will give you all kinds of information surrounding your code. It really is overkill but can be extremely impressive for the higher ups.

Here's what you need to do:

  1. download the latest zip file
  2. Expand the zip file into some directory, e.g c:\statsvn
  3. Check out a working copy of the desired SVN module into a directory, e.g. c:\mysvnproject.
  4. Open a DOS window
  5. cd into your project directory and create the log file
  6. cd back to the c:\statsvn directory
  7. start statsvn generating the reports
  8. go to your project folder and open index.html in a browser
  9. Enjoy your reports!

The commands are here in order:

view plain print about
1cd \mysvnproject
2svn log --xml -v >
svn.log
3cd \statsvn
4java -jar statsvn.jar c:\mysvnproject\svn.log c:\mysvnproject

Once the the reports finished generating, all in .HTML, I pushed them to a site where others could view.

Oh yeah, I also looked at the graph for the number of lines of code in the application.

BlogCFC was created by Raymond Camden. This blog is running version 5.9.7. Contact Blog Owner