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

Re: Duda

From: Ben Johnson <ben_at_indietorrent.org>
Date: Wed, 22 Aug 2012 10:21:16 -0400

On 8/22/2012 9:47 AM, Lorenz wrote:
> Germán Rodríguez wrote:
>> Hola, soy un usario novato de TortoiseSVN y no he encontrado la forma
>> de hacer lo siguiente: ya he terminado de programar mi aplicación,
>> tengo 35 revisiones, ahora lo que quiero hacer es quedarme con solo
>> con la última revisión eliminando el resto, ¿hay manera de hacerlo?.
>
> please use english if possible.
>
> google translates your question as:
>> Hello, I am a novice user of TortoiseSVN and have not found the way
>> do the following: I have finished programming my application,
>> I have 35 revisions, now I want to do is stay with only
>> with the latest revision eliminating the rest, is there a way to do it?.
>
> If I understand your question correctly, you want to remove all but
> the last revision from the repository.

To be fair, this is a Subversion question (not a TortoiseSVN question),
but we're happy to indulge the inquiry.

> The answer to this is: yes, but not easily!
>
> As removing history goes against the express purpose of a version
> control system, subversion does not support this task on its own.

This is a valid point, but there are certain scenarios in which keeping
only the most recent revision is useful. I do this when creating certain
types of "repository templates", for which history is not important.

> you would need to use a combination of 'svnadmin dump', dumpfilter and
> 'svnadmin load'.
>

More specifically:

# svnadmin dump /path/to/repo YYY > /file/to/save

where YYY is the most recent revision number. Per the relevant
documentation at
http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html : "If
only LOWER is given, dump that one revision tree." So, providing only
the lower revision, and using the latest revision, will dump only the
latest revision.

To load just that one revision into another repository:

# svnadmin load /path/to/repo < /dump/file/from/earlier

-Ben

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3000208

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-08-22 16:21:37 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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