You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2012/12/19 17:32:42 UTC
Relocate and inherited props
$ svnadmin create repo
$ svn mkdir -mm --parents file://`pwd`/repo/A/B/C
$ svnmucc -mm -U file://`pwd`/repo propset svn:inheritable:ppp vv1 A propset svn:inheritable:ppp vv2 A/B
$ svn co file://`pwd`/repo/A/B/C wc
$ mv repo repo2
$ svn relocate file://`pwd`/repo file://`pwd`/repo2 wc
The inherited props store a full URL:
$ sqlite3 wc/.svn/wc.db "select inherited_props from nodes where inherited_props is not null"
(file:///home/pm/sw/subversion/obj/repo/A (svn:inheritable:ppp vv1) file:///home/pm/sw/subversion/obj/repo/A/B (svn:inheritable:ppp vv2))
Why do we store a full URL and not a relative URL to the root?
If we do have to store the full URL should it be rewritten by relocate?
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Relocate and inherited props
Posted by Paul Burba <pt...@gmail.com>.
On Wed, Dec 19, 2012 at 1:31 PM, Philip Martin
<ph...@wandisco.com> wrote:
> Paul Burba <pt...@gmail.com> writes:
>
>> On Wed, Dec 19, 2012 at 11:32 AM, Philip Martin
>> <ph...@wandisco.com> wrote:
>>> $ svnadmin create repo
>>> $ svn mkdir -mm --parents file://`pwd`/repo/A/B/C
>>> $ svnmucc -mm -U file://`pwd`/repo propset svn:inheritable:ppp vv1 A propset svn:inheritable:ppp vv2 A/B
>>> $ svn co file://`pwd`/repo/A/B/C wc
>>> $ mv repo repo2
>>> $ svn relocate file://`pwd`/repo file://`pwd`/repo2 wc
>>>
>>> The inherited props store a full URL:
>>>
>>> $ sqlite3 wc/.svn/wc.db "select inherited_props from nodes where inherited_props is not null"
>>> (file:///home/pm/sw/subversion/obj/repo/A (svn:inheritable:ppp vv1) file:///home/pm/sw/subversion/obj/repo/A/B (svn:inheritable:ppp vv2))
>>>
>>> Why do we store a full URL and not a relative URL to the root?
>>
>> We probably don't need to...investigating now.
>
> Another small thing:
>
> $ svn co file://`pwd`/repo wc
> $ sqlite3 wc/.svn/wc.db "select local_relpath, inherited_props from nodes where inherited_props is not null"
> |()
> $ svn up wc
> $ sqlite3 wc/.svn/wc.db "select local_relpath, inherited_props from nodes where inherited_props is not null"
> $
>
> Checkout creates some sort of empty cache that disappears on update.
Thanks for spotting that Philip. Fixed in r1424759
--
Paul T. Burba
CollabNet, Inc. -- www.collab.net -- Enterprise Cloud Development
Skype: ptburba
Re: Relocate and inherited props
Posted by Philip Martin <ph...@wandisco.com>.
Paul Burba <pt...@gmail.com> writes:
> On Wed, Dec 19, 2012 at 11:32 AM, Philip Martin
> <ph...@wandisco.com> wrote:
>> $ svnadmin create repo
>> $ svn mkdir -mm --parents file://`pwd`/repo/A/B/C
>> $ svnmucc -mm -U file://`pwd`/repo propset svn:inheritable:ppp vv1 A propset svn:inheritable:ppp vv2 A/B
>> $ svn co file://`pwd`/repo/A/B/C wc
>> $ mv repo repo2
>> $ svn relocate file://`pwd`/repo file://`pwd`/repo2 wc
>>
>> The inherited props store a full URL:
>>
>> $ sqlite3 wc/.svn/wc.db "select inherited_props from nodes where inherited_props is not null"
>> (file:///home/pm/sw/subversion/obj/repo/A (svn:inheritable:ppp vv1) file:///home/pm/sw/subversion/obj/repo/A/B (svn:inheritable:ppp vv2))
>>
>> Why do we store a full URL and not a relative URL to the root?
>
> We probably don't need to...investigating now.
Another small thing:
$ svn co file://`pwd`/repo wc
$ sqlite3 wc/.svn/wc.db "select local_relpath, inherited_props from nodes where inherited_props is not null"
|()
$ svn up wc
$ sqlite3 wc/.svn/wc.db "select local_relpath, inherited_props from nodes where inherited_props is not null"
$
Checkout creates some sort of empty cache that disappears on update.
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Re: Relocate and inherited props
Posted by Paul Burba <pt...@gmail.com>.
On Wed, Dec 19, 2012 at 11:32 AM, Philip Martin
<ph...@wandisco.com> wrote:
> $ svnadmin create repo
> $ svn mkdir -mm --parents file://`pwd`/repo/A/B/C
> $ svnmucc -mm -U file://`pwd`/repo propset svn:inheritable:ppp vv1 A propset svn:inheritable:ppp vv2 A/B
> $ svn co file://`pwd`/repo/A/B/C wc
> $ mv repo repo2
> $ svn relocate file://`pwd`/repo file://`pwd`/repo2 wc
>
> The inherited props store a full URL:
>
> $ sqlite3 wc/.svn/wc.db "select inherited_props from nodes where inherited_props is not null"
> (file:///home/pm/sw/subversion/obj/repo/A (svn:inheritable:ppp vv1) file:///home/pm/sw/subversion/obj/repo/A/B (svn:inheritable:ppp vv2))
>
> Why do we store a full URL and not a relative URL to the root?
We probably don't need to...investigating now.
> If we do have to store the full URL should it be rewritten by relocate?
>
> --
> Certified & Supported Apache Subversion Downloads:
> http://www.wandisco.com/subversion/download
--
Paul T. Burba
CollabNet, Inc. -- www.collab.net -- Enterprise Cloud Development
Skype: ptburba