# Problem Setting up Subversion Copy Command

**URL:** https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959
**Category:** Bugs
**Created:** [March 14, 2008, 9:23am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959 "2008-03-14T09:23:17Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 14, 2008, 9:23am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/1 "2008-03-14T09:23:17Z")

</div>

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.

&nbsp;

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

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 17, 2008, 12:34pm UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/2 "2008-03-17T12:34:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 17, 2008, 9:58am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/3 "2008-03-17T09:58:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 17, 2008, 9:59am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/4 "2008-03-17T09:59:35Z")

</div>

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

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 18, 2008, 1:00am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/5 "2008-03-18T01:00:50Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 18, 2008, 1:30am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/6 "2008-03-18T01:30:18Z")

</div>

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

[tryingallsetups.txt](https://www.finalbuilder.com/forums/uploads/default/original/2X/d/d86e49a5fe96ec3bf845847b1a77c93880401e6c.txt) (2.402 KB)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 18, 2008, 6:13am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/7 "2008-03-18T06:13:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 18, 2008, 10:04am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/8 "2008-03-18T10:04:42Z")

</div>

I tried mapping a drive to \\nwksubversion\subversion, so&nbsp;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.&nbsp; 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.&nbsp;

SVN Work Folder = K:\Builds  
SVN Command = \\Nwksubversion\VisualSVN Server\bin\svn.exe copy --force-log --non-interactive --revision HEAD&nbsp; 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.&nbsp;   
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&nbsp; X:\trunk X:\tags\test

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 19, 2008, 2:43am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/9 "2008-03-19T02:43:17Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 19, 2008, 7:41am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/10 "2008-03-19T07:41:35Z")

</div>

Hi Angus,

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

&nbsp;

SVN Work Folder = K:\Builds  
SVN Command = \\Nwksubversion\VisualSVN Server\bin\svn.exe copy --force-log --non-interactive&nbsp; \\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&nbsp; \\Nwksubversion\subversion/SocketProducts/trunk \\Nwksubversion\subversion/SocketProducts/tags/test

--David

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 20, 2008, 1:04am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/11 "2008-03-20T01:04:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 20, 2008, 9:22am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/12 "2008-03-20T09:22:19Z")

</div>

Hi Angus,

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

&nbsp;

Well thank you&nbsp;for your assistance.&nbsp; 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.&nbsp;

&nbsp;

&nbsp;

-- David.&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 25, 2008, 1:00am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/13 "2008-03-25T01:00:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![bent\_tranberg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@bent\_tranberg](https://www.finalbuilder.com/forums/u/bent_tranberg)
#### Post date: [December 19, 2012, 10:40am UTC](https://www.finalbuilder.com/forums/t/problem-setting-up-subversion-copy-command/2959/14 "2012-12-19T10:40:09Z")

</div>

> ... 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.
