You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jo...@kongsberg.com on 2015/01/05 11:46:25 UTC

svn copy WC URL fails silently

Hi

I am not subscribed to the mailing list. Please CC me on any replies to this mail.

I am having trouble with the svn copy command. I am running RedHat Enterprise Linux Workstation release 6.3 and svn version 1.6.1 (r934486).

I use the svn copy to create a tag based on a working copy, including any changes in externals.
(I know that there should not be any changes in the externals, but it is very important for me that the tag is an accurate copy of the working copy)

I create a list of the externals, and if they are not locked to a specific revision, I use svn copy to create a tag of the external.
This works fine for directory externals, but for file externals it fails silently.
Attempting the same command for a file which is not an external works fine.

Is this a known bug or feature in Subversion?

More details:
In my Sandbox I have got a number of files in a directory. One of these, SKernConstants_pck.vhd, is an external file.
The other files are not externals.

% svn info config/hdl/SKernConstants_pck.vhd
Path: config/hdl/SKernConstants_pck.vhd
Name: SKernConstants_pck.vhd
URL: svn://XXXX/SKern/branches/ft1/config/hdl/SKernConstants_pck.vhd
Repository Root: XXXX
Repository UUID: 5c878c7f-b7b8-46de-b0ce-59b764e9bf1b
Revision: 13028
Node Kind: file
Schedule: normal
Last Changed Author: johnaas
Last Changed Rev: 12480
Last Changed Date: 2014-11-10 10:31:46 +0100 (Mon, 10 Nov 2014)
Text Last Updated: 2014-11-30 14:45:56 +0100 (Sun, 30 Nov 2014)
Checksum: 0e9339b5000f26d70680927dda1d4d46

% svn info config/hdl/Sadm_pck.vhd
Path: config/hdl/Sadm_pck.vhd
Name: Sadm_pck.vhd
URL: svn://XXXX/Saft/branches/ft1/config/hdl/Sadm_pck.vhd
Repository Root: XXXX
Repository UUID: 5c878c7f-b7b8-46de-b0ce-59b764e9bf1b
Revision: 13028
Node Kind: file
Schedule: normal
Last Changed Author: johnaas
Last Changed Rev: 12542
Last Changed Date: 2014-11-11 14:52:28 +0100 (Tue, 11 Nov 2014)
Text Last Updated: 2014-11-30 14:45:29 +0100 (Sun, 30 Nov 2014)
Checksum: f950055c56d0e84eb42435239525db04

% ls -l config/hdl/
total 240
-rw-rw-r--. 1 johnaas games   1164 Nov 30 14:45 Sadm_pck.vhd
-rw-rw-r--. 1 johnaas games  10426 Nov 30 14:45 SKernConstants_pck.vhd

Local file: Copy OK
% svn copy config/hdl/Sadm_pck.vhd svn://XXXX/SKern/tags/Saft_01_0042/config/hdl/Sadm_pck.vhd -m "Debug tagBuild with single files as externals" --parents

Committed revision 13543.

External file: Copy fails silently
% svn copy config/hdl/SKernConstants_pck.vhd svn://XXXX/SKern/tags/Saft_01_0041/config/hdl/SKernConstants_pck.vhd -m "Debug tagBuild with single files as externals" --parents
% svn copy config/hdl/SKernConstants_pck.vhd svn://bkgl-fpga-vp01/JSM/SKern/tags/Saft_01_0041/config/hdl/ -m "Debug tagBuild with single files as externals" -parents


I have done some tests using strace and diffed these two. The attached images show that
Stracediff1: Sadm run prints a message before exiting
Stracediff2: SKernConstants run stops after the first two lstats.




________________________________

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.

RE: svn copy WC URL fails silently

Posted by Jo...@kongsberg.com.
Thanks for the help. Look like I need to see if it is possible to install svn version 1.8

John

-----Original Message-----
From: Nico Kadel-Garcia [mailto:nkadel@gmail.com]
Sent: 6. januar 2015 05:57
To: Philip Martin
Cc: Aasen, John; <us...@subversion.apache.org>
Subject: Re: svn copy WC URL fails silently

On Mon, Jan 5, 2015 at 12:54 PM, Philip Martin <ph...@wandisco.com> wrote:
> Nico Kadel-Garcia <nk...@gmail.com> writes:
>
>>> I am having trouble with the svn copy command. I am running RedHat
>>> Enterprise Linux Workstation release 6.3 and svn version 1.6.1
>>> (r934486).
>>
>> Do you have a test environment you'd be willing to test 1.7 or 1.8 on?
>> 1.6.11 is no longer supported.
>
> svnadmin create repo --compatible-version 1.6 svn import -mm
> repo/format file://`pwd`/repo/f svnmucc -mm propset svn:externals '^/f
> x' file://`pwd`/repo svn co file://`pwd`/repo wc echo xx > wc/x svn cp
> -mm wc/x ^/copy
>
> Using 1.6 the copy does nothing and fails to create a revision. Using
> 1.7 the copy causes the client to abort with an assert.  Using 1.8 the
> copy creates a new revision.

Sorry about the blank mesage! So in general, perhaps file externals are simply not working up to your requirements before Subversoin 1.8?

________________________________

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.

Re: svn copy WC URL fails silently

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, Jan 5, 2015 at 12:54 PM, Philip Martin
<ph...@wandisco.com> wrote:
> Nico Kadel-Garcia <nk...@gmail.com> writes:
>
>>> I am having trouble with the svn copy command. I am running RedHat
>>> Enterprise Linux Workstation release 6.3 and svn version 1.6.1
>>> (r934486).
>>
>> Do you have a test environment you'd be willing to test 1.7 or 1.8 on?
>> 1.6.11 is no longer supported.
>
> svnadmin create repo --compatible-version 1.6
> svn import -mm repo/format file://`pwd`/repo/f
> svnmucc -mm propset svn:externals '^/f x' file://`pwd`/repo
> svn co file://`pwd`/repo wc
> echo xx > wc/x
> svn cp -mm wc/x ^/copy
>
> Using 1.6 the copy does nothing and fails to create a revision. Using
> 1.7 the copy causes the client to abort with an assert.  Using 1.8 the
> copy creates a new revision.

Sorry about the blank mesage! So in general, perhaps file externals
are simply not working up to your requirements before Subversoin 1.8?

Re: svn copy WC URL fails silently

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, Jan 5, 2015 at 12:54 PM, Philip Martin
<ph...@wandisco.com> wrote:
> Nico Kadel-Garcia <nk...@gmail.com> writes:
>
>>> I am having trouble with the svn copy command. I am running RedHat
>>> Enterprise Linux Workstation release 6.3 and svn version 1.6.1
>>> (r934486).
>>
>> Do you have a test environment you'd be willing to test 1.7 or 1.8 on?
>> 1.6.11 is no longer supported.
>
> svnadmin create repo --compatible-version 1.6
> svn import -mm repo/format file://`pwd`/repo/f
> svnmucc -mm propset svn:externals '^/f x' file://`pwd`/repo
> svn co file://`pwd`/repo wc
> echo xx > wc/x
> svn cp -mm wc/x ^/copy
>
> Using 1.6 the copy does nothing and fails to create a revision. Using
> 1.7 the copy causes the client to abort with an assert.  Using 1.8 the
> copy creates a new revision.
>
> --
> Philip Martin | Subversion Committer
> WANdisco // *Non-Stop Data*

Re: svn copy WC URL fails silently

Posted by Philip Martin <ph...@wandisco.com>.
Nico Kadel-Garcia <nk...@gmail.com> writes:

>> I am having trouble with the svn copy command. I am running RedHat
>> Enterprise Linux Workstation release 6.3 and svn version 1.6.1
>> (r934486).
>
> Do you have a test environment you'd be willing to test 1.7 or 1.8 on?
> 1.6.11 is no longer supported.

svnadmin create repo --compatible-version 1.6
svn import -mm repo/format file://`pwd`/repo/f
svnmucc -mm propset svn:externals '^/f x' file://`pwd`/repo
svn co file://`pwd`/repo wc
echo xx > wc/x
svn cp -mm wc/x ^/copy

Using 1.6 the copy does nothing and fails to create a revision. Using
1.7 the copy causes the client to abort with an assert.  Using 1.8 the
copy creates a new revision.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Re: svn copy WC URL fails silently

Posted by Nico Kadel-Garcia <nk...@gmail.com>.

> On Jan 5, 2015, at 5:46, <Jo...@kongsberg.com> wrote:
> 
> Hi
>  
> I am not subscribed to the mailing list. Please CC me on any replies to this mail.
>  
> I am having trouble with the svn copy command. I am running RedHat Enterprise Linux Workstation release 6.3 and svn version 1.6.1 (r934486).

Do you have a test environment you'd be willing to test 1.7 or 1.8 on? 1.6.11 is no longer supported. I've been trying to get 1.7 or 1.8 major releases into Repoforge for a while, but that repo seems to be moribund.


> I use the svn copy to create a tag based on a working copy, including any changes in externals.
> (I know that there should not be any changes in the externals, but it is very important for me that the tag is an accurate copy of the working copy)
>  
> I create a list of the externals, and if they are not locked to a specific revision, I use svn copy to create a tag of the external.
> This works fine for directory externals, but for file externals it fails silently.
> Attempting the same command for a file which is not an external works fine.
>  
> Is this a known bug or feature in Subversion?
>  
> More details:
> In my Sandbox I have got a number of files in a directory. One of these, SKernConstants_pck.vhd, is an external file.
> The other files are not externals.
>  
> % svn info config/hdl/SKernConstants_pck.vhd
> Path: config/hdl/SKernConstants_pck.vhd
> Name: SKernConstants_pck.vhd
> URL: svn://XXXX/SKern/branches/ft1/config/hdl/SKernConstants_pck.vhd
> Repository Root: XXXX
> Repository UUID: 5c878c7f-b7b8-46de-b0ce-59b764e9bf1b
> Revision: 13028
> Node Kind: file
> Schedule: normal
> Last Changed Author: johnaas
> Last Changed Rev: 12480
> Last Changed Date: 2014-11-10 10:31:46 +0100 (Mon, 10 Nov 2014)
> Text Last Updated: 2014-11-30 14:45:56 +0100 (Sun, 30 Nov 2014)
> Checksum: 0e9339b5000f26d70680927dda1d4d46
>  
> % svn info config/hdl/Sadm_pck.vhd
> Path: config/hdl/Sadm_pck.vhd
> Name: Sadm_pck.vhd
> URL: svn://XXXX/Saft/branches/ft1/config/hdl/Sadm_pck.vhd
> Repository Root: XXXX
> Repository UUID: 5c878c7f-b7b8-46de-b0ce-59b764e9bf1b
> Revision: 13028
> Node Kind: file
> Schedule: normal
> Last Changed Author: johnaas
> Last Changed Rev: 12542
> Last Changed Date: 2014-11-11 14:52:28 +0100 (Tue, 11 Nov 2014)
> Text Last Updated: 2014-11-30 14:45:29 +0100 (Sun, 30 Nov 2014)
> Checksum: f950055c56d0e84eb42435239525db04
>  
> % ls -l config/hdl/
> total 240
> -rw-rw-r--. 1 johnaas games   1164 Nov 30 14:45 Sadm_pck.vhd
> -rw-rw-r--. 1 johnaas games  10426 Nov 30 14:45 SKernConstants_pck.vhd
>  
> Local file: Copy OK
> % svn copy config/hdl/Sadm_pck.vhd svn://XXXX/SKern/tags/Saft_01_0042/config/hdl/Sadm_pck.vhd -m "Debug tagBuild with single files as externals" --parents
>  
> Committed revision 13543.
>  
> External file: Copy fails silently
> % svn copy config/hdl/SKernConstants_pck.vhd svn://XXXX/SKern/tags/Saft_01_0041/config/hdl/SKernConstants_pck.vhd -m "Debug tagBuild with single files as externals" --parents
> % svn copy config/hdl/SKernConstants_pck.vhd svn://bkgl-fpga-vp01/JSM/SKern/tags/Saft_01_0041/config/hdl/ -m "Debug tagBuild with single files as externals" –parents
>  
>  
> I have done some tests using strace and diffed these two. The attached images show that
> Stracediff1: Sadm run prints a message before exiting
> Stracediff2: SKernConstants run stops after the first two lstats.
>  
>  
>  
> 
> 
> CONFIDENTIALITY
> This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.
> <stracediff2.PNG>
> <stracediff1.PNG>