Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: questions about "unversion" and "ignore"

fsvs
Discussion topic

Back to topic list

Re: questions about "unversion" and "ignore"

Author Sheldon Hearn <sheldonh at starjuice dot net>
Full name Sheldon Hearn <sheldonh at starjuice dot net>
Date 2008-07-23 07:19:55 PDT
Message -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 23 July 2008 13:01:16 MMM MMM wrote:
> case 1: I commit file XYZ; then I unversion and ignore file XYZ.
> -> How to completely remove file XYZ from svn repository and save
> disk space?

cp -a /path/to/repo /path/to/repo.backup
svnadmin dump /path/to/repo | \
    svndumpfilter exclude relative/path/to/xyz > filtered.dump
rm -rf /path/to/repo
svnadmin create /path/to/repo
svnadmin load /path/to/repo < filtered.dump
cp -a /path/to/repo.backup/hooks/* /path/to/repo/hooks/.

Had to do this recently myself. Note that the relative path to xyz is
the path you'd use to reach it from the root checkout directory for the
repo.

Ciao,
Sheldon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFIhz4LpGJX8XSg​as0RAq9SAKCDa/VTQkiq​ik9j5+9iQu7RO3dEEwCg​owiY
fohupMzXM5m1xsk/nyYQUWc=
=UrAa
-----END PGP SIGNATURE-----

« Previous message in topic | 11 of 11 | Next message in topic »

Messages

Show all messages in topic

questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-23 04:01:16 PDT
     Re: questions about "unversion" and "ignore" pmarek P.Marek 2008-07-23 06:07:08 PDT
         Re: questions about "unversion" and "ignore" Thomas Harold <tgh at tgharold dot com> Thomas Harold <tgh at tgharold dot com> 2008-07-23 07:24:18 PDT
             Re: questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-23 14:35:30 PDT
         Re: questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-23 14:21:49 PDT
             Re: questions about "unversion" and "ignore" pmarek P.Marek 2008-07-26 05:36:13 PDT
             Re: questions about "unversion" and "ignore" pmarek P.Marek 2008-08-23 10:56:12 PDT
         Re: questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-24 01:54:46 PDT
         Re: questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-24 02:55:34 PDT
         Re: questions about "unversion" and "ignore" mmm4m5m Mmm Mmm 2008-07-23 23:15:29 PDT
     Re: questions about "unversion" and "ignore" Sheldon Hearn <sheldonh at starjuice dot net> Sheldon Hearn <sheldonh at starjuice dot net> 2008-07-23 07:19:55 PDT
Messages per page: