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

Re: How to delete all unmodified files between 2 revisions on a patch branch?

From: AfterShock <mikkey_at_gmail.com>
Date: Mon, 31 Aug 2009 12:50:40 -0700 (PDT)

Stefan Küng wrote:
> AfterShock wrote:
>> Hi Guys,
>> I'm releasing a patch to a freeware online game. Typically our release
>> process goes something like:
>> - Create a 'patch 2.2' branch from HEAD
>> - Checkout this branch to a new folder locally
>> - Checkout the tagged 'patch 2.1' branch to another new folder locally
>> - Use winmerge or similar to comapre which files have changed between the
>> two
>> - Manually SVN delete any files which haven't changed from the patch 2.2
>> branch
>> Now we're dealing with thousands of files, this becomes not only time
>> consuming and tedious, but also prone to error. There must be some
>> built-in
>> method of creating a branch that only contains the files modified between
>> 2
>> revisions - is there?
> * Repository browser
> * browse to "patch 2.1"
> * right-click on "patch 2.1", choose "mark for comparison"
> * browse to "patch 2.2"
> * right-click on "patch 2.2", choose "compare urls"
> --> this brings up the "changed files" dialog, showing all
> files/folders which have changed between those two urls
> * select all files (Ctrl-A), right-click, choose
> "export selection to..."
>> Alternatively, is there a method of SVN deleting all files that are
>> unmodified since revision X?
> No, such a feature does not exist.

For the record, we are now releasing patch 2.4 and have found a good
solution for this:

- Use stefan's recommended "export modified files" process to create a
folder with all files modified between revision X and HEAD, called
- Create a branch from HEAD called patch 2.4
- Checkout this branch to a new folder /patch24/
- Delete everything inside /patch24/ except the .svn folders and their
- Copy /patch24changedfiles/ contents into /patch24/
- Commit all the missing files as deletes

You now have all the file history and changelogs for the files that exist,
along with an error-free method of deleting everything that is unchanged
between 2 revisions.

Deleting files that belong to unfinished features must still be deleted

What we haven't found is a tool to delete everything except .svn files, but
i'm sure one exists.

View this message in context: http://www.nabble.com/How-to-delete-all-unmodified-files-between-2-revisions-on-a-patch-branch--tp21184310p25229420.html
Sent from the tortoisesvn - users mailing list archive at Nabble.com.
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-08-31 21:53:00 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.