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

Re: Adding changeset-like functionality to subversion

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-10-10 00:24:34 CEST

"LOWE,DAVID (HP-Vancouver,ex1)" <dave.lowe@hp.com> writes:

> On Thursday Jack decides he needs Jill's Wednesday changeset and applies it
> to his file. My "order independent changeset" would give Jack these file
> contents.
>
> main()
> {
> Func1();
> Func2();
> Func3();
> WednesdaysFunc(); /* Wednesday's changeset */
> Func4();
> JacksFunc(); /* Jack's changeset */
> Func5();
> }
>
> Can I get that from subversion?

Sure. Jack reads the commit logs, and sees that Jane's Wednesday
change created revision 53 when she committed. Revision 53 is not
only the 53rd state of the repository, but it also represents a unique
patch applied to the repository.

Jack simply applies her change to his working copy using 'svn merge':

    svn merge -r52:53 path/to/project my/working/copy/path

This means, "take the differences between revision 52 and 53 of
path/to/project, and apply these differences as local modifications to
my/working/copy/path."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 10 00:26:48 2002

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

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