You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2011/07/01 23:28:05 UTC

'svn up -r0' doesn't.

Philip mentioned 'svn up -r0' in another thread.

I did:

[[[
% $svn checkout --depth=empty https://svn.eu.apache.org/repos/infra/infrastructure infra-freshwc
% cd infra-freshwc
% $svn up --set-depth=immediates . subdir1 subdir2
% $svn up --set-depth=infinity subdir3 trunk
% cd trunk
% $svn up -r0 m
Updating 'm':
   C m

Fetching external item into 'm/f/m/e/rc.local':
A    m/f/m/e/rc.local
Updated external to revision 792004.
...
At revision 0.
Summary of conflicts:
  Tree conflicts: 1
% $svn pl m/f/m/e/
Properties on 'm/f/m/e':
  svn:ignore
  svn:externals
% find m | wc -l > 1
% sqlite3 ../.svn/wc.db "SELECT DISTINCT local_relpath FROM nodes WHERE local_relpath LIKE 'trunk/m%'" > 2
% danielsh "Are ./1 and ./2 identical except for 40 lines belonging to a directory external?"
yes
% 
]]]


So... it didn't really do 'svn up -r 0'; instead, it updated the whole
tree (including files which aren't externals).

The svn:externals properties that define the file externals are located
on their immediate parents --- eg, on trunk/m/f/m/e/.


Hope this helps.  Let me know if I can provide additional information.

RE: 'svn up -r0' doesn't.

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Philip Martin [mailto:philip.martin@wandisco.com]
> Sent: maandag 4 juli 2011 13:07
> To: Daniel Shahaf
> Cc: dev@subversion.apache.org
> Subject: Re: 'svn up -r0' doesn't.
> 
> Daniel Shahaf <d....@daniel.shahaf.name> writes:
> 
> > Philip Martin wrote on Mon, Jul 04, 2011 at 10:18:49 +0100:
> >> Philip Martin <ph...@wandisco.com> writes:
> >>
> >> > I really follow what you are doing, what you expect to happen or what
> >> > did happen.  Can you produce a simple recipe?
> >>
> >> That should be "I didn't really follow".  When I run 'svn up -r0 m' the
> >> target m doesn't appear to exist (because the earlier update failed?)
> >> and I get no conflict, just "At revision 0.".
> >
> > What I do:
> >
> > svn up -r 0 $SUBDIR
> >
> > What happens:
> >
> > after the update, the whole $SUBDIR/** hierarchy is present
> >
> > What I expect to happen:
> >
> > after the update, as I understand your earlier emails,
> > [ `find $SUBDIR | wc -l` -le 2 ]
> >
> >
> > What I did: in the email I wrote 'svn up -r 0 m' (rather than the actual
> > name of that directory) because the infra repository is not public.  On
> > my shell session, m/f/h/e/ really was m*/f*/h*/e*/.
> 
> Still not clear.  A simple recipe that didn't rely on infra would be
> better.
> 
> $ svn up -r0 m
> D    m
> Removed external 'm/j/.../e/a'
> Updated to revision 0.

Util my patch in r1142211, I think you would have seen m as tree conflicted
and no removed external as the local edited, remote deleted would have
caused 'm' to have been copied to WORKING.

	Bert 


Re: 'svn up -r0' doesn't.

Posted by Philip Martin <ph...@wandisco.com>.
Daniel Shahaf <d....@daniel.shahaf.name> writes:

> Philip Martin wrote on Mon, Jul 04, 2011 at 10:18:49 +0100:
>> Philip Martin <ph...@wandisco.com> writes:
>> 
>> > I really follow what you are doing, what you expect to happen or what
>> > did happen.  Can you produce a simple recipe?
>> 
>> That should be "I didn't really follow".  When I run 'svn up -r0 m' the
>> target m doesn't appear to exist (because the earlier update failed?)
>> and I get no conflict, just "At revision 0.".
>
> What I do:
>
> svn up -r 0 $SUBDIR
>
> What happens:
>
> after the update, the whole $SUBDIR/** hierarchy is present
>
> What I expect to happen:
>
> after the update, as I understand your earlier emails, 
> [ `find $SUBDIR | wc -l` -le 2 ]
>
>
> What I did: in the email I wrote 'svn up -r 0 m' (rather than the actual
> name of that directory) because the infra repository is not public.  On
> my shell session, m/f/h/e/ really was m*/f*/h*/e*/.

Still not clear.  A simple recipe that didn't rely on infra would be
better.

$ svn up -r0 m
D    m
Removed external 'm/j/.../e/a'
Updated to revision 0.

The only NODES row that is "local_relpath LIKE 'trunk/m'" is
not-present so the update has removed all the metadata.

I see is the 'm/j/.../e' is still present on disk but unversioned.  I
suppose that's a bug in externals handling, it has not removed the
intervening subdirs.

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Re: 'svn up -r0' doesn't.

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Philip Martin wrote on Mon, Jul 04, 2011 at 10:18:49 +0100:
> Philip Martin <ph...@wandisco.com> writes:
> 
> > I really follow what you are doing, what you expect to happen or what
> > did happen.  Can you produce a simple recipe?
> 
> That should be "I didn't really follow".  When I run 'svn up -r0 m' the
> target m doesn't appear to exist (because the earlier update failed?)
> and I get no conflict, just "At revision 0.".

What I do:

svn up -r 0 $SUBDIR

What happens:

after the update, the whole $SUBDIR/** hierarchy is present

What I expect to happen:

after the update, as I understand your earlier emails, 
[ `find $SUBDIR | wc -l` -le 2 ]


What I did: in the email I wrote 'svn up -r 0 m' (rather than the actual
name of that directory) because the infra repository is not public.  On
my shell session, m/f/h/e/ really was m*/f*/h*/e*/.

Re: 'svn up -r0' doesn't.

Posted by Philip Martin <ph...@wandisco.com>.
Philip Martin <ph...@wandisco.com> writes:

> I really follow what you are doing, what you expect to happen or what
> did happen.  Can you produce a simple recipe?

That should be "I didn't really follow".  When I run 'svn up -r0 m' the
target m doesn't appear to exist (because the earlier update failed?)
and I get no conflict, just "At revision 0.".

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Re: 'svn up -r0' doesn't.

Posted by Philip Martin <ph...@wandisco.com>.
Daniel Shahaf <d....@daniel.shahaf.name> writes:

> Philip mentioned 'svn up -r0' in another thread.
>
> I did:
>
> [[[
> % $svn checkout --depth=empty https://svn.eu.apache.org/repos/infra/infrastructure infra-freshwc
> % cd infra-freshwc
> % $svn up --set-depth=immediates . subdir1 subdir2
> % $svn up --set-depth=infinity subdir3 trunk

svn: warning: W200000: Error handling externals definition for 'trunk/machines/freebsd/harmonia.apache.org/etc/rc.local':
svn: warning: W175002: Unable to connect to a repository at URL 'https://svn-master.apache.org/repos/infra/infrastructure/trunk/ipfw/svn/rc.local'

> % cd trunk
> % $svn up -r0 m
> Updating 'm':
>    C m
>
> Fetching external item into 'm/f/m/e/rc.local':
> A    m/f/m/e/rc.local
> Updated external to revision 792004.
> ...
> At revision 0.
> Summary of conflicts:
>   Tree conflicts: 1
> % $svn pl m/f/m/e/
> Properties on 'm/f/m/e':
>   svn:ignore
>   svn:externals
> % find m | wc -l > 1
> % sqlite3 ../.svn/wc.db "SELECT DISTINCT local_relpath FROM nodes WHERE local_relpath LIKE 'trunk/m%'" > 2
> % danielsh "Are ./1 and ./2 identical except for 40 lines belonging to a directory external?"
> yes
> % 
> ]]]
>
>
> So... it didn't really do 'svn up -r 0'; instead, it updated the whole
> tree (including files which aren't externals).
>
> The svn:externals properties that define the file externals are located
> on their immediate parents --- eg, on trunk/m/f/m/e/.
>
>
> Hope this helps.  Let me know if I can provide additional information.

I really follow what you are doing, what you expect to happen or what
did happen.  Can you produce a simple recipe?

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com