You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Kenneth P. Turvey" <kt...@squeakydolphin.com> on 2006/03/27 02:34:24 UTC

Cleaning cruft

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been working on getting setup to track the Linux sources in my
repository.  I now have a directory, $SVN/Linux, that contains all the
patches and vendor sources I want to track.  Unfortunately, there is a lot
of cruft from getting this all working the way I want it to.  I would like
to delete any sources that are not currently referenced in this directory
of the repository.  

Unfortunately, the way I did things complicates this a bit.  There are
some names that are used more than once.  For example:

$SVN/Linux/vendor/kernel.org-linux@575 

is different than 

$SVN/Linux/vendor/kernel.org-linux@HEAD

I realize that I will have to dump the repository to a file and then
reload it.  Is there an easy way to filter it to get rid of file revisions
not referenced in this directory, and _only_ in this directory?

Thanks in advance.  Any suggestions are appreciated. 

- -- 
Kenneth P. Turvey <kt...@squeakydolphin.com>

XMPP  IM: kpturvey@jabber.org
Yahoo IM: kpturvey2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEJ08mi2ZgbrTULjoRAg+7AJ9HoaF2GKXDtzEkp5NzTSfXLUFQbwCgggAj
IKFC7BYHDBxkW3x0OpVv+9U=
=QC6p
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Cleaning cruft

Posted by "Kenneth P. Turvey" <kt...@squeakydolphin.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 27 Mar 2006 10:21:27 -0600, Kenneth P. Turvey wrote:

> Maybe this is a solution.  I could export the Linux directory.  Dump
> everything to a file, filter out the Linux directory completely, create a
> new repository, and import the Linux directory.

I thought about this a bit more and realized that this won't work.  I have
various tags and branches setup and these would not survive the export
import process, but would become independent files.  

Is there a way to do this and maintain the internal links between
revisions?

- -- 
Kenneth P. Turvey <kt...@squeakydolphin.com>

XMPP  IM: kpturvey@jabber.org
Yahoo IM: kpturvey2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEKBpBi2ZgbrTULjoRAncuAKDQbpRriw3XKBFoWsy9lsVkL7tiGQCfd1yL
4/9vHu6UcRz3zTn+2PyTWuQ=
=U1Gd
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Cleaning cruft

Posted by "Kenneth P. Turvey" <kt...@squeakydolphin.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 27 Mar 2006 10:01:23 -0600, Patrick Burleson wrote:

> On 3/26/06, Kenneth P. Turvey <kt...@squeakydolphin.com> wrote:
>> I realize that I will have to dump the repository to a file and then
>> reload it.  Is there an easy way to filter it to get rid of file
>> revisions not referenced in this directory, and _only_ in this
>> directory?
> 
> Is everything laid out the way you want @ HEAD? If so, and you don't care
> about the history of how you got everything laid out, you might just do an
> export, delete the repository, create it, re-import from your export. Then
> you'd be all setup.

That's a good suggestion, but I think there is a complication.  I have
other project directories in the subversion repository and I don't want to
modify them at all.  They have files that don't exist in the HEAD revision
that are still important to me.  

Under the $SVN/Linux directory I only want to retain revisions that exist
in the HEAD revision.  I would like other project directories to remain
untouched.  

Thanks for your suggestion.  

Maybe this is a solution.  I could export the Linux directory.  Dump
everything to a file, filter out the Linux directory completely, create a
new repository, and import the Linux directory.

Would this do what I'm looking want?

It sounds right.   

- -- 
Kenneth P. Turvey <kt...@squeakydolphin.com>

XMPP  IM: kpturvey@jabber.org
Yahoo IM: kpturvey2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEKBD1i2ZgbrTULjoRAquAAJwPGHNZGa7ChOuGkmKij8LxZkdd9wCgpCIA
/Yq8VprmohPgxpiGzBp6XiY=
=CMn2
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Cleaning cruft

Posted by Patrick Burleson <pb...@gmail.com>.
On 3/26/06, Kenneth P. Turvey <kt...@squeakydolphin.com> wrote:
> I realize that I will have to dump the repository to a file and then
> reload it.  Is there an easy way to filter it to get rid of file revisions
> not referenced in this directory, and _only_ in this directory?

Is everything laid out the way you want @ HEAD? If so, and you don't
care about the history of how you got everything laid out, you might
just do an export, delete the repository, create it, re-import from
your export. Then you'd be all setup.

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org