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

Re: Question about commit/udpate inside externals

From: Geoff Hoffman <ghoffman_at_cardinalpath.com>
Date: Tue, 26 Jul 2011 08:20:41 -0700

On Tue, Jul 26, 2011 at 8:08 AM, Thomas Clement <tclementdev_at_gmail.com>wrote:

> Hello list,
>
> I have a repository which contains an external to another repository with a
> fixed revision number.
> Something like: "-rxxx svn+ssh://..."
>
> I noticed I can make modifications inside this external and commit the
> modifications.
> At which point the external is actually above its fixed revision number
> (xxx+1 for example).
>
> "svn status" does not mention this particular state and "svn up" does not
> bring the external back to its fixed revision number.
>
> What bothers my is that doing a checkout of the repository will get me to a
> different state but doing "svn status" and "svn up" on my working copy does
> not alert me of that.
> How can I check if my externals are above their fixed revision number?
>
> Maybe it is just a bad idea to edit and commit inside externals?
>
>
> Regards,
> Thomas

Subversion will let you do this, because for others it may be desired. As
with most things, it depends on your use case. We had a similar one as
yours. You may want to set a tag for your externals, then yes, don't work on
it (don't commit to it). Have your external directory to also have trunk,
tags, branches. Work on the trunk in a separate area. Tag it. Set your
working copies to reference this tag. It's an easy thing to mess up. Most
IDE's will alert you upon commit that you are committing to multiple
branches...
Received on 2011-07-26 17:21:20 CEST

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.