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

Re: Problem with permissions using Asvn

From: Ross Mark <rossm_at_controllingedge.com.au>
Date: 2005-01-21 02:37:58 CET

I had sent this straight to Jeremy and forgot to cc the list.

Asvn can't operate on an exported working copy for the simple reason
there are not property files left after the export. asvn is a pre and
post processor. During a checking it does a preprocess comparing all the
files and their permissions against the file:permissions property and
updates the property when different. During an update/switch/co it does
a post process where the permissions are again checked but the file is
updated if there is a difference.

svn itself doesn't handle these properties so hence an export does
nothing. Instead of using export use the normal checkout. Personally
(and I wrote asvn) I would recommend a normal svn update then do an asvn
update. The only reason is asvn is a little verbose at the moment and I
think it is better to know that the wc is up todate before processing.

You should also be aware that asvn assumes that every file/directory in
the wc is under svn control. There will be error messages if you have
used svn:ignore to skip some. Its on the todo list to fix.

Ross Mark

Jeremy Cohoe wrote:

> Hello list!
>
> Iím trying to get permissions to be the same for all of my /etc/
> directory. Iíve been keeping an eye on /etc/sudoers because it was the
> first thing I noticed as having wrong permissions. Before the import
> (the regular mode) of the sudoers file is 0400 (owner and group read
> only, other nothing)
>
> Iíve been following the instructions from the ďin place importĒ. The
> url is http://subversion.tigris.org/project_faq.html#in-place-import
>
> This is what I do to import etc:
>
> rm -rf /subversion/
>
> svnadmin create /subversion
>
> svn mkdir file:///subversion/etc -m "Enable controlling of etc in
> version control "
>
> cd /etc/
>
> svn checkout file:///subversion/etc .
>
> svn add *
>
> asvn commit -m "Using asvn to do the commit"
>
> Then to test it I do:
>
> svn export file:///subversion/ /version_controlled_etc
>
> Before the import, an ďls Ėla /etc/sudoersĒ is:
>
> -r--r----- 1 root root 915 2004-02-14 11:45 /etc/sudoers
>
> And after the export:
>
> -rw-r--r-- 1 root root 915 2005-01-14 18:40
> /version_controlled_etc/sudoers
>
> Iím using Asvn to preserve the permissions. Iím sure Iím missing a
> step somewhere that will take care of the permissions. I know this
> isnít an ďasvnĒ list, but Iím hoping someone where will be familiar
> with asvn and be able to help me out.
>
> Thank you.
>
> - Jeremy Cohoe
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 21 02:40:05 2005

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