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

RE: Export a single different file?

From: Dassi, Nasser <NDassi_at_141xm.com>
Date: 2005-01-19 17:50:09 CET

Thx Max.

[snip]
What's wrong with exporting and then deleting?
Anything else is going to be significantly more complicated.
[/snip]

There are many ways of responding to this. Simply, only necessary files
should get exported/accessed when an [automated] process is executed;
with that said, an automated process should not go on a deletion spree
(nor should it have such permissions).

My objective is quite simple: have a repo of a WWW site, and have a
dynamic export script. Depending on destination (dev/test/prod) any
given set of files would get *excluded* from exportation. This would
allow platform-specific configuration files to get equally versioned,
but would not get exported to the incorrect platform. Of course, with
least-privileges, we can prevent any possible "hacking" or exposure to
information by limiting what is accessible to begin with.

The principle of "the file should not exist [somewhere] to begin with"
is actually a fair reasoning to the ".svn folders" thread: instead of
limiting access to the .svn folder, the folder should not exist to begin
with :o)

- nasser

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com
=========================================

-----Original Message-----
From: Max Bowsher [mailto:maxb@ukf.net]
Sent: Wednesday, January 19, 2005 11:21 AM
To: Dassi, Nasser; users@subversion.tigris.org
Subject: Re: Export a single different file?

Dassi, Nasser wrote:
> Good morning (or afternoon) folks, here are 3 curious questions:
>
> 1. Are there other hooks than the 5-or-so documented (e.g.
> "post-update" or "post-export")?

No.

> 2. Is it readily possible -- or are several lines of pl/py/bat/exe
> script required -- to export the HEAD revision to a given path... with

> the exception of a single file (a single application-config file)
> being exported depending on destination?
>
> ... In other words, an svn:export-ignore command that would allow a
> 2nd line to just export a specific file :o)

What's wrong with exporting and then deleting?
Anything else is going to be significantly more complicated.

> 3. Can an export statement automatically rename a file (1 file
> exported
> + renamed in 1 line of code), or does the renaming have to happen only
> *after* the export command is accomplished via OS-level renaming?

svn cat url://to/file > newname
(or, from svn 1.2 and later: svn export url://to/file newname)

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 19 17:53:58 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.