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

RE: svn switch question

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-11-01 22:22:23 CET

> Steve Bakke wrote:
>
> This is the perfect scenario for tags which are 'labels' rather than
> cheap copies. It really illustrates how cheap copies really are
> different from labeling an arbitrary set of revisions. A lot of
> people would be happy if labels existed such that acrobatics such as
> decribed above would not be necessary.

Playing along here...

A simple example using labels:
  svn label TAG1 path
    <edit path/A, commit>
  svn label TAG2 path
  svn up -r TAG1 path/C
  svn up -r TAG2 path/A
  svn label TAG3 path
    <in another working copy: trunk/delete path/C, trunk/delete path/A>
  svn up -r HEAD path/C

Quite intuitive and compact.

Currently we would do:
  svn cp path <TAG1 url>
    <edit path/A, commit>
  svn cp path <TAG2 url>
  svn sw <TAG1 url> path/C
  svn sw <TAG2 url> path/A
  svn cp path <TAG3 url>
    <in another working copy: delete trunk/path/C, delete trunk/path/A>
  svn sw <TRUNK URL> path/C <= So far I don't think this is possible

Slinging around URLS is cumbersome and this fails to cover the use case
to boot.

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 1 22:23:05 2007

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

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