You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Paulsen <ro...@paulsen.homeip.net> on 2005/06/12 00:21:23 UTC

File Permissions

Hi,

Using subversion 1.1 on Linux (SuSE 9.3).

How do I preserve file permissions when files are imported or checked in to an 
svn repository?

I have files that are

	-rw-r-----

But when exported from svn are

	-rw-r--r--

Thanks

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: File Permissions

Posted by James FitzGibbon <jf...@primustel.ca>.
On Jun-11-05, at 8:21 PM, Robert Paulsen wrote:

> How do I preserve file permissions when files are imported or  
> checked in to an
> svn repository?
>
> I have files that are
>
>     -rw-r-----
>
> But when exported from svn are
>
>     -rw-r--r--

You could use asvn (http://svn.collab.net/repos/svn/trunk/contrib/ 
client-side/asvn):

#----------------------------------------------------------------------- 
--
#    Author:        Ross Mark (rossm@controllingedge.com.au)
#    Date:        Tue Mar 11 10:02:57 EST 2003
#
#    Copyright (C) 2003-2004 Ross Mark
#
#----------------------------------------------------------------------- 
--
#
#    Description:
#    Archive SVN (asvn) will allow the recording of file types not
#    normally handled by svn. Currently this includes devices,
#    symlinks and file ownership/permissions.
#
#    Every file and directory has a 'file:permissions' property set and
#    every directory has a 'dir:devices' and 'dir:symlinks' for
#    recording the extra information.
#
#    Run this script instead of svn with the normal svn arguments.

Of course, svn now supports symlinks on *nix, so changes might be  
necessary to have asvn use the built-in support.  Not that using the  
pre-1.1.x technique would hurt I suppose.

HTH

-- 
j.

James FitzGibbon
Systems Developer, Primus Telecommunications Canada
416.644.6111




-- 
----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en fran�ais de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------