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

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

From: Jari Aalto <jari.aalto_at_cante.net>
Date: Sun, 16 Jun 2013 10:31:27 +0300

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-16 09:32:23 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.