You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Thomas Clement <tc...@gmail.com> on 2011/07/26 17:08:52 UTC

Question about commit/udpate inside externals

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

Re: Question about commit/udpate inside externals

Posted by Geoff Hoffman <gh...@cardinalpath.com>.
On Tue, Jul 26, 2011 at 8:08 AM, Thomas Clement <tc...@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...

Re: Question about commit/udpate inside externals

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Jul 26, 2011 at 05:08:52PM +0200, Thomas Clement 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

See this issue:
http://subversion.tigris.org/issues/show_bug.cgi?id=3401
and the discussion thread linked from it:
http://svn.haxx.se/dev/archive-2009-04/0366.shtml