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

Re: Make patch with full files not diff

From: Jeroen Leenarts <leenarts-jeroen_at_tiscali.nl>
Date: 2004-10-25 02:34:33 CEST

Laurent CHASTEL wrote:

> Hello,
>
> I put a SQL database under svn (tables creations or modificatons
> scripts, stored procedures,...)
> I would like to create a patch to update my database from one version
> to another.
>
> I need to get only the full text version of modified files (not diff
> as svn diff allows).
> - Full text version, because only full scripts could be executed on
> database server.
> - Only modified files, because each scripts executed takes time, and
> execute unmodified scripts is a lost of time.
>
>
> Here is an example of what I would like to have.
> In version 3.0 (svn rev 45) of the repository, I have 10 files A, B,
> ... and J.
> I make modification on the repository :
> - Add 2 files K and L.
> - Modify the files B, C, F, H
> I create the version 4.0 (svn rev 57)
>
> I would like to get only modified objects to create the patch : B, C,
> F, H, K, L
>
> Best regards,
> Laurent
>
> _________________________________________________________________
> Hotmail : bientôt 250 Mo de stockage !
> http://www.imagine-msn.com/hotmail/fr-fr/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Couldn't find a svn command that does exactly what you ask. But how
about this:

$ svn update -r45
...
$svn update -r57 >> mychanges.log

Now you have a log file containing all changed files ready to be parsed.
On each line a letter: [A]dded, [D]eleted, [U]pdated. Followed by the
affected path. Be carefull with the deleted files, those probably
contain things you want to kick from you're SQL database as well.

Hope it helps...
Jeroen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 25 02:34:52 2004

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