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

Re: early reflections on subversion methodology

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-07-29 20:01:41 CEST

On Fri, 2005-07-29 at 13:14 -0400, David Weintraub wrote:
<snip>
> Here's an example, I create a branch called "new_features" where I am
> doing work that is taking place off the main line development. In most
> advanced CM software, creating that branch is fairly straight forward.
> In Subversion, I am making a copy:
>
> $ svn cp http://myproject/trunk http//myproject/branches/new_features
> -m "Creating branch"
>
> Okay, not too bad, but what if I did this:
>
> $svn cp http://myproject/trunk/mydirectory/mysubdir/foo_stuff
> http://myproject/branches/new_features -m "New Branch"
>
> in order to save some typing later on.
>
> There is nothing in Subversion that lets me know that the new_features
> branch is only a copy of the "foo_stuff" directory. That's something
> I have to manually track. Not only that, but what if I suddenly
> realize that the
> http://myprojects/trunk/mydirectory/mysubdir/bar_stuff also needs to
> be on this branch? In this case in Subversion, I'm in trouble.
> However, in most other CM packages, a branch type is availible to all
> files in the repository.

FYI: This was a `svn mv` command I did. Which is a copy followed by a
delete. Notice the revision number in the "from" section of the add.

The --stop-on-copy flag to `svn log` will show you where a branch was
copied from.

[nesscg@summer sniffDB-scripts]$ svn log -v -r187 .
------------------------------------------------------------------------
r187 | nesscg | 2005-07-26 13:38:37 -0400 (Tue, 26 Jul 2005) | 1 line
Changed paths:
   D /branches/nesscg/sniffDB
   A /branches/sniffDB-scripts/db/layout
(from /branches/nesscg/sniffDB:186)

Moving layout diagram files to the main branch
------------------------------------------------------------------------

Cheers,
Chris

-- 
Wireless Group
McMaster University
summer
13:52:41 up 7 days, 23:45, 1 user, load average: 0.45, 0.33, 0.24
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 29 20:04:19 2005

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