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

Re: BUG TRACKER: [svn export] please add options --exclude ITEM

From: James Hanley <jhanley_at_dgtlrift.com>
Date: Mon, 17 Jun 2013 13:32:11 -0400

I think this is a feature that could also benefit svn checkin, as many
times I'm working on multiple disjoint functions or there is a common
config file that is needed for checkout and may require some tweaks (such
as running on simulated hardware, etc) but usually shouldn't be checked in.

I would use this feature in both spots of checkin and export if available.

On Sun, Jun 16, 2013 at 3:31 AM, Jari Aalto <jari.aalto_at_cante.net> wrote:

>
> Hi,
>
> I'd like to open the following feature request in the
> <http://subversion.tigris.org/issue-tracker.html>. Please advice.
>
> DESCRITION
>
> Please add to "svn export" option:
>
> -x, --exclude ITEM
>
> which could be given multiple times. The option would exclude files and
> paths relative to the current repository root from the final output.
>
> The pattern could be:
>
> - String to match path
> - OR shell-like pattern to match path (allowing "*" and "[]")
> - OR regular expression (the best)
>
> MOTIVATION
>
> Many times the repository contains private development files that should
> not be included in PACKAGE-VERSION.tar.gz
>
> An example:
>
> ROOT
> | program.sh
> |
> | test.data
> | output.log
> |
> +- scripts/
> my-own.sh
> not-publishable.sh
>
> $ svn export -x ./test.data -x *.log -x scripts
> ../package-1.0+svn10.tar.gz
>
> Would make an archive content:
>
> ROOT
> |
> + - program.sh
>
> This is a snapshop from VCS tree. Different from if there would have been a
> Makefile to do official release in target "make dist".
>
> Jari
>
>
Received on 2013-06-17 19:33:06 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.