You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "FOUCHE Emmanuel (EXT Atos Origin)" <ex...@sncf.fr> on 2012/05/15 18:39:05 UTC

Sparse directory: how to display the global state of the working copy

Hi
 
Suppose you explore a working copy, that is known to contain sparse
directory, but you do not know, or remember, which one have been
excluded.
 
Using svn-1.7.4 collabnet CLI client, I can tell "svn info" on the
parent directory does not display "Depth: exclude".
If I know the name of the missing (excluded) child directory, I can run:
"svn info <child_dir>"
That would mean I must check the repository on the server to know the
subdirectories' names.
 
Is there a way to recursively display all excluded directories of a
given working copy.
 
Regards
-------
Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire.
-------
This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it. 

Re: Sparse directory: how to display the global state of the working copy

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/5/15 FOUCHE Emmanuel (EXT Atos Origin)
<ex...@sncf.fr>:
> Hi
>
> Suppose you explore a working copy, that is known to contain sparse
> directory, but you do not know, or remember, which one have been excluded.
>
> Using svn-1.7.4 collabnet CLI client, I can tell "svn info" on the parent
> directory does not display "Depth: exclude".
> If I know the name of the missing (excluded) child directory, I can run:
> "svn info <child_dir>"
> That would mean I must check the repository on the server to know the
> subdirectories' names.
>
> Is there a way to recursively display all excluded directories of a given
> working copy.
>

"svn ls" displays all subdirectories, regardless of whether they are
excluded in the local wc.

Maybe there other ways, but I do not recall now.

Best regards,
Konstantin Kolinko

RE: Sparse directory: how to display the global state of the working copy

Posted by "FOUCHE Emmanuel (EXT Atos Origin)" <ex...@sncf.fr>.
 

As I am on Windows XP, I had to install gnuwin32's gawk before testing.
Minor changes to the command line are required:
svn info -R | awk "/^Path/{p=$2} /^Depth: exclude/{print p}"

Thanks

-----Message d'origine-----
De : MARTIN PHILIP [mailto:codematters@ntlworld.com] De la part de Philip Martin
Envoyé : mercredi 16 mai 2012 11:57
À : FOUCHE Emmanuel (EXT Atos Origin)
Cc : users@subversion.apache.org
Objet : Re: Sparse directory: how to display the global state of the working copy

"FOUCHE Emmanuel (EXT Atos Origin)"
<ex...@sncf.fr> writes:

> Is there a way to recursively display all excluded directories of a 
> given working copy.

svn info -R | awk '/^Path/{p=$2} /^Depth: exclude/{print p}'

--
Philip
-------
Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire.
-------
This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it. 


Re: Sparse directory: how to display the global state of the working copy

Posted by Philip Martin <ph...@wandisco.com>.
"FOUCHE Emmanuel (EXT Atos Origin)"
<ex...@sncf.fr> writes:

> Is there a way to recursively display all excluded directories of a
> given working copy.

svn info -R | awk '/^Path/{p=$2} /^Depth: exclude/{print p}'

-- 
Philip