[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: Dan Ellis <danellis10_at_gmail.com>
Date: Wed, 29 Apr 2015 16:13:36 -0700

On Wed, Apr 29, 2015 at 4:01 PM, Daniel Shahaf <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 01:14:09 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.