On Sat, Apr 23, 2011 at 1:02 PM, C. Michael Pilato <cmpilato_at_collab.net>wrote:
> On 04/22/2011 05:15 PM, Daniel Becroft wrote:
> > Hi,
> >
> > I've just updated to trunk_at_1096029, and have noticed the following
> change in
> > behavior.
> >
> > Previously, any reproduction script I write has the following pattern:
> >
> > svn checkout <url> workingcopy
> >> pushd workingcopy
> >> svn mkdir trunk
> >> svn commit
> >> svn switch <url>/trunk .
> >>
> >
> > This used to work fine. But now I'm getting the following error messages:
> >
> > subversion/svn/switch-cmd.c:184: (apr_err=195012)
> >> svn: E195012: Path '.' does not share common version control ancestry
> with
> >> the requested switch location. Use --ignore-ancestry to disable this
> check.
> >> subversion/libsvn_client/switch.c:201: (apr_err=195012)
> >> svn: E195012: 'file:///home/djcbecroft/dev/sandpit/repository/trunk'
> shares
> >> no common ancestry with '/home/djcbecroft/dev/sandpit/workingcopy'
> >>
> >
> > As the error message suggests, using --ignore-ancestry works fine. I
> don't
> > think this is required, though, as the paths share a common ancestry
> > already.
>
> Ummm... not if I'm following your recipe correctly. You just created trunk
> as a new directory -- it shares ancestry with *nothing*.
Created trunk *and* committed it (sorry if that wasn't clear from the
example).
> But then you're
> asking to switch a working copy which reflects trunk's *parent directory*
> to
> trunk's URL.
>
Once trunk is committed, shouldn't trunk share ancestry with it's parent? (I
know I certainly share ancestry with my father).
This process worked under 1.6.x (and 1.7.x prior to the last svn update -
couldn't tell you the revision prior to that).
$ svn switch file:////home/djcbecroft/dev/sandpit/repository//trunk .
> D trunk
> Updated to revision 1.
>
Cheers,
Daniel B.
Received on 2011-04-23 05:41:22 CEST