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

Properties on added files lost by rename.

From: Rob Hubbard <rob.hubbard_at_softel.co.uk>
Date: Thu, 12 Feb 2009 17:18:39 -0000

Hello,
 
I don't know if this is a bug or a "feature", but it's not the behaviour
I was expecting. When a property is set on an added file, and then the
file is renamed, the property is lost.
 
Here's an example (this is the Windows version of SVN, although I'm
running it in a Cygwin Bash shell, which should make no difference).
 
    $ svn --version -q
    1.5.3
 
    $ ### just to show the starting state of the working copy
    $ svn st -v ; svn proplist . -vR
                   11 11 robh .
                   12 12 robh keywords.xml
    ? file.txt
    Properties on 'keywords.xml':
      svn:keywords : Rev Date URL
 
    $ ### add a file and a property
    $ svn add file.txt ; svn propset svn:mime-type 'text/plain' file.txt
    A file.txt
    property 'svn:mime-type' set on 'file.txt'
 
    $ ### show the state of the working copy again
    $ svn st ; svn proplist . -vR
    A file.txt
    Properties on 'keywords.xml':
      svn:keywords : Rev Date URL
    Properties on 'file.txt':
      svn:mime-type : text/plain
 
    $ ### rename the added and an existing file
    $ svn mv file.txt file-mv.txt ; svn mv keywords.xml kw.xml
    A file-mv.txt
    D file.txt
    A kw.xml
    D keywords.xml
 
    $ ### show the state of the working copy again
    $ stn st ; svn proplist . -vR
    A + kw.xml
    D keywords.xml
    A file-mv.txt
    Properties on 'kw.xml':
      svn:keywords : Rev Date URL
      svn:mergeinfo :
    Properties on 'file-mv.txt':
      svn:mergeinfo :
 
    $ ### notice that the mime-type property has been lost from
file-mv.txt

 
Thanks,
Rob.

________________________________________________________________
This message has been independently scanned for the Softel Group and cleared of containing viruses and other malicious data.

Powering Television Beyond the Video (TM)

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1146220

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-13 01:07:41 CET

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.