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

RE: Problems with externals

From: Frodak <frodak17_at_yahoo.com>
Date: 2007-02-05 21:38:13 CET

--- "Finley, Stephen" <stephen.finley@fmr.com> wrote:

> I do see this as an error if for some reason I am
> telling my project to
> link to a specific location in the other project
> that the directory I am
> linking it to should also retain that info. Why
> would I want my project
> to link an specific set of file but then when I go
> to that directory and
> maybe accidentally do an update I now have the
> incorrect of file for
> this project.
>

I'm guessing my work pattern is different from yours,
let say in proja has an external definition to sub1.

When I need to make updates to the contents of sub1, I
edit the files in sub1 as normal. Then at the command
prompt I type svn stat, to see if sub1 is out of date.
 

I'll get an output like:
$ svn stat
X sub1

Performing status on external item at 'v1'
M sub1/file1.c

Then I'll need to perform an update command to update
sub1 to the HEAD revision. That is:
$ svn up sub1
M sub1/file1.c
Updated to revision 24.

Then I can commit my changes. Note, then I'll have to
update proja to choose the correct revision of sub1
that I want. Unfortunately the problems I run with
using externals is that changes in proja are not
atomic with changes in sub1.

In this case the svn update command is working
consistently both on the proja directory and on sub1
directory. In the case of proja,its contents are
brought up to the HEAD revision (which is proja items
are at HEAD revision and sub1 is to the defined
external revision). In the case of sub1 it is brought
up to HEAD revision.

I guess I don't see this as an error because the svn
book states that when using the update command without
a specific revision it brings the working copy up to
the head revision. Besides it saves me from typing
svn up -rHEAD sub1.

As for the concern of accidentally updating the sub1
directory, and least the output of subversion will
tell you what you are updating to.

BTW, I seen some suggestions of not using externals in
these kinds of cases, but using the switch command
instead. I, personally, haven't tried this approach.

:-)
Frodak

 
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 5 21:38:31 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.