You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johan Corveleyn <jc...@gmail.com> on 2010/04/02 14:51:35 UTC

Re: Returning problem: Some folders/files in working don't get updated anymore.

On Fri, Apr 2, 2010 at 11:47 AM, Valentijn Scholten
<Va...@isaac.nl> wrote:
> Hello,
>
>
>
> Regularly we’re having issues with working copies that don’t get all updated
> files/folders from the repository.
>
>
>
> Most of the time everything works fine.
>
>
>
> But sometimes when user A commits some new/changed files to the repository,
> other users (say user B), do not get these changes when updating their
> working copy.
>
> Other changes are pulled in from the repository and applied to the working
> copy, but specific files/folders aren’t.
>
> The repository itself does show the up-to-date content, and also a fresh
> checkout contains the up-to-date data.
>
>
>
> So there seems to be a problem with the working copy in this case. The
> problem occurs when using the commandline client, subclipse and tortoisesvn.
>
>
>
> Both the server and the working copy are on windows, the server runs behind
> apache.

You should check if you don't have a "sparse working copy" by accident
(see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
To see whether this is the case, check "svn info" for some of the
parent dirs, and see if they have a "Depth: empty" or "Depth:
immediates" on them or something like that (if there is no depth shown
in "svn info", it's the default which is "infinity", which is usually
what you want).

In IntelliJ IDEA there's a bug that, if you create a new package, and
you answer "yes" in the dialog which asks you if you want to add it to
version control immediately, it's added with depth empty (so as a
workaround, you should answer no, and add it afterwards). See
http://youtrack.jetbrains.net/issue/IDEA-26607.

But since you talk about subclipse, I assume you're using Eclipse, so
that's probably not it ...

-- 
Johan

Re: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Johan Corveleyn <jc...@gmail.com>.
On Fri, Apr 2, 2010 at 4:56 PM, Mark Phippard <ma...@gmail.com> wrote:
> On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com> wrote:
>>
>> In IntelliJ IDEA there's a bug that, if you create a new package, and
>> you answer "yes" in the dialog which asks you if you want to add it to
>> version control immediately, it's added with depth empty (so as a
>> workaround, you should answer no, and add it afterwards). See
>> http://youtrack.jetbrains.net/issue/IDEA-26607.
>>
>> But since you talk about subclipse, I assume you're using Eclipse, so
>> that's probably not it ...
>
> That is not an IntelliJ bug, it is a Subversion bug and was fixed in
> SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
> impacted by it.

Ah yes, I see. I must have missed that.

Just to confirm: IntelliJ IDEA 8.1.4 and up to the latest 9.x versions
all use svnkit 1.3.0, which is based on svn 1.6.2. Maybe IDEA users
(and others) can resolve this by replacing the included svnkit (in the
svn4idea plugin) with the latest stable svnkit version, 1.3.2, which
is based on svn 1.6.6.

-- 
Johan

Re: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Mark Phippard <ma...@gmail.com>.
On Fri, Apr 2, 2010 at 11:23 AM, Valentijn Scholten
<Va...@isaac.nl> wrote:
>>On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com>> wrote:
>>> You should check if you don't have a "sparse working copy" by accident
>>> (see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
>>> To see whether this is the case, check "svn info" for some of the
>>> parent dirs, and see if they have a "Depth: empty" or "Depth:
>>> immediates" on them or something like that (if there is no depth shown
>>> in "svn info", it's the default which is "infinity", which is usually
>>> what you want).
>>>
>>> In IntelliJ IDEA there's a bug that, if you create a new package, and
>>> you answer "yes" in the dialog which asks you if you want to add it to
>>> version control immediately, it's added with depth empty (so as a
>>> workaround, you should answer no, and add it afterwards). See
>>> http://youtrack.jetbrains.net/issue/IDEA-26607.
>>>
>>> But since you talk about subclipse, I assume you're using Eclipse, so
>>> that's probably not it ...
>
>>That is not an IntelliJ bug, it is a Subversion bug and was fixed in
>>SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
>>impacted by it.  You can fix your working copy by checking out again
>>or getting a SVN 1.6.2+ client and running the command:
>>
>>$ svn update --set-depth=infinity
>>
> >From the root of the working copy.  Subclipse allows you to do this
>>via GUI with the Update to Revision ... option.
>
> This helps indeed. Are you saying the mystery occurence of the "Depth: empty" is a bug of pre 1.6.2 based client versions?

There were two bugs fixed in SVN 1.6.2

1) $ svn add -N folderName

Added folder as depth=empty.  This is the core problem.  GUI clients
usually add things non-recursively because they are presenting a UI
that allows you to deselect some of the items in the list.

2) $ svn up --set-depth=infinity

Did not recursively update all the paths in your working copy.  So you
had to find and run this in each path to fix your WC


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

RE: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Valentijn Scholten <Va...@isaac.nl>.
>Van: Mark Phippard [mailto:markphip@gmail.com] 
>Verzonden: vrijdag 2 april 2010 16:57
>Aan: Johan Corveleyn
>On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com>> wrote:
>> You should check if you don't have a "sparse working copy" by accident
>> (see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
>> To see whether this is the case, check "svn info" for some of the
>> parent dirs, and see if they have a "Depth: empty" or "Depth:
>> immediates" on them or something like that (if there is no depth shown
>> in "svn info", it's the default which is "infinity", which is usually
>> what you want).
>>
>> In IntelliJ IDEA there's a bug that, if you create a new package, and
>> you answer "yes" in the dialog which asks you if you want to add it to
>> version control immediately, it's added with depth empty (so as a
>> workaround, you should answer no, and add it afterwards). See
>> http://youtrack.jetbrains.net/issue/IDEA-26607.
>>
>> But since you talk about subclipse, I assume you're using Eclipse, so
>> that's probably not it ...

>That is not an IntelliJ bug, it is a Subversion bug and was fixed in
>SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
>impacted by it.  You can fix your working copy by checking out again
>or getting a SVN 1.6.2+ client and running the command:
>
>$ svn update --set-depth=infinity
>
>>From the root of the working copy.  Subclipse allows you to do this
>via GUI with the Update to Revision ... option.

This helps indeed. Are you saying the mystery occurence of the "Depth: empty" is a bug of pre 1.6.2 based client versions?

RE: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Valentijn Scholten <Va...@isaac.nl>.
>Van: Mark Phippard [mailto:markphip@gmail.com] 
>Verzonden: vrijdag 2 april 2010 16:57
>Aan: Johan Corveleyn
>On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com>> wrote:
>> You should check if you don't have a "sparse working copy" by accident
>> (see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
>> To see whether this is the case, check "svn info" for some of the
>> parent dirs, and see if they have a "Depth: empty" or "Depth:
>> immediates" on them or something like that (if there is no depth shown
>> in "svn info", it's the default which is "infinity", which is usually
>> what you want).
>>
>> In IntelliJ IDEA there's a bug that, if you create a new package, and
>> you answer "yes" in the dialog which asks you if you want to add it to
>> version control immediately, it's added with depth empty (so as a
>> workaround, you should answer no, and add it afterwards). See
>> http://youtrack.jetbrains.net/issue/IDEA-26607.
>>
>> But since you talk about subclipse, I assume you're using Eclipse, so
>> that's probably not it ...

>That is not an IntelliJ bug, it is a Subversion bug and was fixed in
>SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
>impacted by it.  You can fix your working copy by checking out again
>or getting a SVN 1.6.2+ client and running the command:
>
>$ svn update --set-depth=infinity
>
From the root of the working copy.  Subclipse allows you to do this
>via GUI with the Update to Revision ... option.

This helps indeed. Are you saying the mystery occurence of the "Depth: empty" is a bug of pre 1.6.2 based client versions?

Re: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Mark Phippard <ma...@gmail.com>.
On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com> wrote:

> You should check if you don't have a "sparse working copy" by accident
> (see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
> To see whether this is the case, check "svn info" for some of the
> parent dirs, and see if they have a "Depth: empty" or "Depth:
> immediates" on them or something like that (if there is no depth shown
> in "svn info", it's the default which is "infinity", which is usually
> what you want).
>
> In IntelliJ IDEA there's a bug that, if you create a new package, and
> you answer "yes" in the dialog which asks you if you want to add it to
> version control immediately, it's added with depth empty (so as a
> workaround, you should answer no, and add it afterwards). See
> http://youtrack.jetbrains.net/issue/IDEA-26607.
>
> But since you talk about subclipse, I assume you're using Eclipse, so
> that's probably not it ...

That is not an IntelliJ bug, it is a Subversion bug and was fixed in
SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
impacted by it.  You can fix your working copy by checking out again
or getting a SVN 1.6.2+ client and running the command:

$ svn update --set-depth=infinity

>From the root of the working copy.  Subclipse allows you to do this
via GUI with the Update to Revision ... option.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

Re: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Mark Phippard <ma...@gmail.com>.
On Fri, Apr 2, 2010 at 10:51 AM, Johan Corveleyn <jc...@gmail.com> wrote:

> You should check if you don't have a "sparse working copy" by accident
> (see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
> To see whether this is the case, check "svn info" for some of the
> parent dirs, and see if they have a "Depth: empty" or "Depth:
> immediates" on them or something like that (if there is no depth shown
> in "svn info", it's the default which is "infinity", which is usually
> what you want).
>
> In IntelliJ IDEA there's a bug that, if you create a new package, and
> you answer "yes" in the dialog which asks you if you want to add it to
> version control immediately, it's added with depth empty (so as a
> workaround, you should answer no, and add it afterwards). See
> http://youtrack.jetbrains.net/issue/IDEA-26607.
>
> But since you talk about subclipse, I assume you're using Eclipse, so
> that's probably not it ...

That is not an IntelliJ bug, it is a Subversion bug and was fixed in
SVN 1.6.2.  Many GUI clients, including Subclipse and TortoiseSVN were
impacted by it.  You can fix your working copy by checking out again
or getting a SVN 1.6.2+ client and running the command:

$ svn update --set-depth=infinity

RE: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Ben <te...@googlemail.com>.
You can easily check for sparse checkouts by running svnversion:
If the reported version has a P attached, then you have a sparse
checkout.

I have similar problems with unwanted sparse checkouts esp. when it
comes to merging. 
Thanks for the hints in this thread about the potential bug origins.

-----Original Message-----
You should check if you don't have a "sparse working copy" by accident
(see
http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
To see whether this is the case, check "svn info" for some of the
parent dirs, 

RE: Returning problem: Some folders/files in working don't get updated anymore.

Posted by Valentijn Scholten <Va...@isaac.nl>.
>>On Fri, Apr 2, 2010 at 11:47 AM, Valentijn Scholten
>><Va...@isaac.nl>> wrote:
>>
>> Regularly we're having issues with working copies that don't get all updated
>> files/folders from the repository.
>>
>>
>>
>> Most of the time everything works fine.
>>
>>
>>
>> But sometimes when user A commits some new/changed files to the repository,
>> other users (say user B), do not get these changes when updating their
>> working copy.
>>
>> Other changes are pulled in from the repository and applied to the working
>> copy, but specific files/folders aren't.
>>
>> The repository itself does show the up-to-date content, and also a fresh
>> checkout contains the up-to-date data.
>>
>>
>>
>> So there seems to be a problem with the working copy in this case. The
>> problem occurs when using the commandline client, subclipse and tortoisesvn.
>>
>>
>>
>> Both the server and the working copy are on windows, the server runs behind
>> apache.

>You should check if you don't have a "sparse working copy" by accident
>(see http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html).
>To see whether this is the case, check "svn info" for some of the
>parent dirs, and see if they have a "Depth: empty" or "Depth:
>immediates" on them or something like that (if there is no depth shown
>in "svn info", it's the default which is "infinity", which is usually
>what you want).
Actually, this is the case! Thanks. I have no idea why the depth is set to empty. 
Most people here don't know about working copy depth, so it must have been set by accident. 
I don't think there's a way to reverse engineer what action did set this property?

>In IntelliJ IDEA there's a bug that, if you create a new package, and
>you answer "yes" in the dialog which asks you if you want to add it to
>version control immediately, it's added with depth empty (so as a
>workaround, you should answer no, and add it afterwards). See
>http://youtrack.jetbrains.net/issue/IDEA-26607.

>But since you talk about subclipse, I assume you're using Eclipse, so
>that's probably not it ...
Actually, it also happens for users who only use TortoiseSVN.