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

Re: File Permissions

From: James FitzGibbon <jfitzgibbon_at_primustel.ca>
Date: 2005-06-12 06:09:52 CEST

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
----------------------------------------------------------------------------
Received on Sun Jun 12 06:11:30 2005

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.