Problem Setting up Subversion Copy Command

So I'm a little frustrated. I'm trying to have FinalBuilder create a tag in subversion at the end of a successful build. I have gotten other subversion commands to work commit, Cleanup, Update. But the Copy just won't work, and I've tried every variation of it Source /Destination syntax. Where the command appears to be falling apart is at the file browsing both the source and the destination need to places within the database i.e. (\trunk or \tags\version), but when you browse for the source and destination all you see is the conf, db, hooks, and locks folders.

In regards to the tools being used; all the developers are using TortoiseSVN as their local client, however I had to install VisualSVN on the server just to have a svn.exe for FinalBuilder to spew commands at, and I have the latest version of FinalBuilder.

 

I had more to this post but it just kept locking up.  I kept trying to include the error messages, but after 15 minutes it'd just barf. Maybe it was all the path links.   

Hi David,

If the error messages had angle-brackets in them, then the forum software is prone to munching these. Sorry.

There are ways to post such information, but by far the easiest solution is to click “add reply” and then attach a text file to the post, with the error content inside it.

Sorry for the annoyance. If you can post the errors (or, failing that, email them to support at finalbuilder dot com), then it would be a great help.

- Angus

When i try to add a text file.  It says my 2.56 kb .txt file is of a invalid type or greater than 300kb.

Does anyone have a screen shot of a working setup I'll try from there.

Hi David,

Sorry, there was a config problem with the web site. Attaching txt filse should be fine now.

If (for some unknown reason) the file still won’t upload, please email it to support at finalbuilder dot com and we’ll get back to you via email.

Regards,

Angus

error logs from trying 3 different variants of setting up the Subversion Copy Command.  I'd prefer to use the file browse method. 

tryingallsetups.txt (2.402 KB)

Hi David,

Looking at the log output, I think it's a bug with the action and the UNC \\server\share syntax.

To confirm this, can you try mapping the share \\Nwksubversion\subversion to a drive letter, and see if it fixes the problem? You can do this with the Map Network Drive action, and optionally use a try/finally block with Unmap Network Drive afterwards.

Regards,

Angus

I tried mapping a drive to \\nwksubversion\subversion, so ended up with X:\SocketProducts\trunk for the source, and I tried \\nwksubversion\subversion\SocketProducts, so that X:\trunk was the source but it just failed.  And with letter mapping it seems to think the folder is a work Folder so it searches for \.svn\entries which of course doesn't exist as part of the database. 

SVN Work Folder = K:\Builds
SVN Command = \\Nwksubversion\VisualSVN Server\bin\svn.exe copy --force-log --non-interactive --revision HEAD  X:\trunk X:\tags\test
svn: 'X:' is not a working copy
svn: Can't open file 'X:\.svn\entries': The system cannot find the path specified. 
Action Failed
\\Nwksubversion\VisualSVN Server\bin\svn.exe returned : 1
Subversion svn Error - Subversion application error : 1
Parms: copy --force-log --non-interactive --revision HEAD  X:\trunk X:\tags\test

 

Hi David,

Thanks for your patience with this. A lot of playing with the current SVN client, and some reference to this mailing list post:

http://svn.haxx.se/dev/archive-2007-06/0398.shtml

... got me to a working solution. It seems most of the available documentation about using UNC paths with SVN is out of date (at least for SVN 1.4.) I get the feeling it's really not a recommended configuration, or at the least not a very common one.

Anyhow, the working format is:

file://[hostname]\[sharename]/[directory]/[directory]/

Note the backslash before the sharename, and then forward slashes for everything else.

So, in your case the paths should be:

Source: file://Nwksubversion\subversion/SocketProducts/trunk
Destination: file://Nwksubversion\subversion/SocketProducts/tags/test


Please let me know how you go. I'll see what I can do about updating the path generator in the FinalBuilder actions so they supports UNC paths.

Regards,

Angus

Hi Angus,

That solution doesn't appear to work for me.  Final Builder switches the '\' back, regardless of how I put it in.   

 

SVN Work Folder = K:\Builds
SVN Command = \\Nwksubversion\VisualSVN Server\bin\svn.exe copy --force-log --non-interactive  \\Nwksubversion\subversion/SocketProducts/trunk \\Nwksubversion\subversion/SocketProducts/tags/test
svn: Path '\\Nwksubversion\subversion\SocketProducts\trunk' does not exist
Action Failed
\\Nwksubversion\VisualSVN Server\bin\svn.exe returned : 1
Subversion svn Error - Subversion application error : 1
Parms: copy --force-log --non-interactive  \\Nwksubversion\subversion/SocketProducts/trunk \\Nwksubversion\subversion/SocketProducts/tags/test

--David

 

Hi David,

Did you include the file: part of the URL? Any chance you could post a screenshot of your action's property page?

Regards,

Angus

Hi Angus,

The  file://[hostname]\[sharename]/[directory]/[directory]/  syntax works.  The problem from yesterday was that I needed to added a commit message, because of a forced property on the database.  Though wierdly enough when I had tried adding a commit message on some of the previously attempted syntax's final builder would spit back an error message "commit message not needed for this operation". 

 

Well thank you for your assistance.  I will say that the Copy method and the help documentation for the command need to be updated, along with the error message that the final builder gives for the command. 

 

 

-- David. 

Hi David,

The "commit message not needed" message was probably because SVN hadn't found the right database in the first place.

We should have a test build with a working repository builder dialog (for file:// UNC paths) out today. I'll also update the help topic for the Copy action.

The error messages are unfortunately coming directly from svn.exe, so there isn't much we can do about those. I'll see what I can do about tidying up the log output, though.

Please let us know if there's anything else we can help you with.

Regards,

Angus

... are using TortoiseSVN as their local client, however I had to install VisualSVN on the server just to have a svn.exe for FinalBuilder...


When installing TortoiseSVN, you have the option of installing command line tools, which include svn.exe.