[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Svn rename doesn't copy custom properties

From: Branko Čibej <brane_at_wandisco.com>
Date: Thu, 30 Apr 2015 19:50:09 +0200

On 30.04.2015 01:23, Dan Ellis wrote:
> OK, so it gets stranger...
>
> I admit I changed the property names a bit to simplify them. When I
> ran the simplified names, it does work.
>
> Here's the exact example that does not work:
>
> c:\Project_files\sandbox_v2>svn pl -v AAAAA.txt
> Properties on 'AAAAA.txt':
> pebls:plcm
> Test_at_4575
> pebls:sha1
> 8cd8818d6b4f5edcb8b6e25cdf471af62bca403c
>
> c:\Project_files\sandbox_v2>svn rename AAAAA.txt AAAAAA.txt
> A AAAAAA.txt
> D AAAAA.txt
>
> c:\Project_files\sandbox_v2>svn pl -v AAAAAA.txt
>
> c:\Project_files\sandbox_v2>svn pl -v REN.txt

There's no REN.txt in your example.

Anyway, please tell us which version of the client you're using (svn
--version) and where it came from.

-- Brane

> On Wed, Apr 29, 2015 at 4:13 PM, Dan Ellis <danellis10_at_gmail.com
> <mailto:danellis10_at_gmail.com>> wrote:
>
>
> On Wed, Apr 29, 2015 at 4:01 PM, Daniel Shahaf
> <d.s_at_daniel.shahaf.name <mailto:d.s_at_daniel.shahaf.name>> wrote:
>
> Dan Ellis wrote on Wed, Apr 29, 2015 at 15:43:00 -0700:
> > Hi,
> >
> > We use some custom properties for tracking (e.g.
> my_prop:trace_to
> > req_12345) and have noticed that svn renames do not copy
> these across the
> > delete/add operation. I've tried searching the archives to
> see if I could
> > find a rationale as to why, but haven't come across any.
> >
>
> 'svn cp' and 'svn mv' do copy properties across. How exactly
> are you
> invoking those operations? Are you perhaps using a wrapper
> that does
> 'svn rm && svn add'? Can you show us a transcript?
>
> On my system I see it working:
>
> [[[
> % svn pl -v baz
> Properties on 'baz':
> k
> v
> % svn mv baz foo
> A foo
> D baz
> % svn ci -q -mm
> % svn pl -v foo
> Properties on 'foo':
> k
> v
> ]]]
>
> > I'm guessing this could be legitimately viewed as a feature
> or a problem,
> > depending on your point of view.
> >
> > Is there a viable option to try and get svn renames to copy
> these over?
> >
>
> Including properties in mv/cp is the default behaviour and
> cannot be
> turned off (except by doing 'svn propdel' after the cp/mv and
> before
> committing).
>
> What version of the client are you using?
>
> > Thanks,
> > Dan
>
>
>
> This is specific to the rename operation (svn 1.8.9, win7):
>
> c:\Project_files\sandbox>svn pl -v BBBB.txt
> Properties on 'BBBB.txt':
> myprop:trace_to
> req12345
>
> c:\Project_files\sandbox>svn rename BBBB.txt TTTT.txt
> A TTTT.txt
> D BBBB.txt
>
> c:\Project_files\sandbox>svn pl -v TTTT.txt
>
> c:\Project_files\sandbox>
>
>
Received on 2015-04-30 19:50:47 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.