You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Fraser Kirkpatrick <fr...@sigmaseven.co.uk> on 2008/02/27 11:51:08 UTC
svn:externals in svn 1.5
Hi,
We are looking at the new relative path svn:externals functionality in
Subversion 1.5 as it may enable us to redesign our repository and checkout
much smaller working copies, while still being able to branch/tag etc
without breaking the externals.
However one thing which would be nice from our point of view, is to be able
to commit from the top level working copy, and include modifications to
externals within this commit. At the moment this doesn't seem to be
supported as the externals area is treated as a separate working copy. Does
anyone know whether this will be possible with Subversion 1.5?
Curiously, we seem to have observed that an externals section of a working
copy where that externals section includes externals of its own will
actually manage this!
Ie something like this:
mydir1
|
- myfile1 (modified)
- myexternaltargetdir1
|
- myfile2 (modified)
- myexternaltargetdir2
|
- myfile3 (modified)
If I try to commit from "mydir1" the commit will fail as the modified files
myfile1, myfile2 & myfile3 are all in different working copies.
However if I try to commit from "myexternaltargetdir1", subversion will
happily commit changes to myfile2 and myfile3. Is this a bug?
Fraser.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:externals in svn 1.5
Posted by Kenneth Porter <sh...@sewingwitch.com>.
On Wednesday, February 27, 2008 11:51 AM +0000 Fraser Kirkpatrick
<fr...@sigmaseven.co.uk> wrote:
> However one thing which would be nice from our point of view, is to be
> able to commit from the top level working copy, and include modifications
> to externals within this commit. At the moment this doesn't seem to be
> supported as the externals area is treated as a separate working copy.
> Does anyone know whether this will be possible with Subversion 1.5?
Use explicit revisions (or tags) in your externals. Then commit the changes
to your externals. Because you use a revision in the property, no one else
gets affected by the commit. Then you change the property in the client of
the external to reflect the new revision, and commit that.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Re: svn:externals in svn 1.5
Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: Blair Zajac [mailto:blair@orcaware.com]
> Fraser Kirkpatrick wrote:
> > Hi,
> >
> > We are looking at the new relative path svn:externals
> functionality in
> > Subversion 1.5 as it may enable us to redesign our repository and
> > checkout much smaller working copies, while still being able to
> > branch/tag etc without breaking the externals.
> >
> > However one thing which would be nice from our point of
> view, is to be
> > able to commit from the top level working copy, and include
> > modifications to externals within this commit. At the moment this
> > doesn't seem to be supported as the externals area is treated as a
> > separate working copy. Does anyone know whether this will
> be possible with Subversion 1.5?
>
> No, it won't be. Having separate commits for externals was a
> deliberate design decision.
... And a good one.
>
> > Curiously, we seem to have observed that an externals section of a
> > working copy where that externals section includes externals of its
> > own will actually manage this!
> >
> > Ie something like this:
> >
> > mydir1
> > |
> > - myfile1 (modified)
> > - myexternaltargetdir1
> > |
> > - myfile2 (modified)
> > - myexternaltargetdir2
> > |
> > - myfile3 (modified)
> >
> > If I try to commit from "mydir1" the commit will fail as
> the modified
> > files myfile1, myfile2 & myfile3 are all in different
> working copies.
> >
> > However if I try to commit from "myexternaltargetdir1", subversion
> > will happily commit changes to myfile2 and myfile3. Is this a bug?
>
> It sounds like it.
>
> Can you make a shell script that reproduces this behavior?
Will the first one fail, or will myfile1 commit, leaving the others
uncommitted? I expect that behavior, not a full failure.
An important point to know is whether "myfile3" is in a different
repository from "myfile2". I found that when I commit a working copy
with external references that are located in the same repository that
everything will commit. Only when the target repository is external
will it demand a separate commit. The question is then "is that
behavior erroneous?"
--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:externals in svn 1.5
Posted by Blair Zajac <bl...@orcaware.com>.
Fraser Kirkpatrick wrote:
> Hi,
>
> We are looking at the new relative path svn:externals functionality in
> Subversion 1.5 as it may enable us to redesign our repository and checkout
> much smaller working copies, while still being able to branch/tag etc
> without breaking the externals.
>
> However one thing which would be nice from our point of view, is to be able
> to commit from the top level working copy, and include modifications to
> externals within this commit. At the moment this doesn't seem to be
> supported as the externals area is treated as a separate working copy. Does
> anyone know whether this will be possible with Subversion 1.5?
No, it won't be. Having separate commits for externals was a deliberate design
decision.
> Curiously, we seem to have observed that an externals section of a working
> copy where that externals section includes externals of its own will
> actually manage this!
>
> Ie something like this:
>
> mydir1
> |
> - myfile1 (modified)
> - myexternaltargetdir1
> |
> - myfile2 (modified)
> - myexternaltargetdir2
> |
> - myfile3 (modified)
>
> If I try to commit from "mydir1" the commit will fail as the modified files
> myfile1, myfile2 & myfile3 are all in different working copies.
>
> However if I try to commit from "myexternaltargetdir1", subversion will
> happily commit changes to myfile2 and myfile3. Is this a bug?
It sounds like it.
Can you make a shell script that reproduces this behavior?
Thanks,
Blair
--
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org