[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: how to get list of files off-line

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2007-09-25 21:44:34 CEST

On 9/25/07, Freek Dijkstra <public@macfreek.nl> wrote:
> I want to get a list of files in (a working copy of a) repository.
> Naturally, "svn ls" comes to mind. However, "svn ls" needs network
> access to the repository. However, I want a function that also works
> off-line.

What's wrong with 'svn status [--xml] /path/to/wc'?

> Is there a way to get this list of files, without going on-line?
>
> I currently parse .svn/entries, but I rather use a proper API call or
> command-line tool.
>
> Out of curiousity, if someone knows why "svn ls" needs network access,
> let me know why.
>
> PS: I currently use this in a script to test if all properties are
> properly set in a local repository. Users can run this before
> committing. It checks for svn:eol-style, svn:mime-type, svn:keywords,
> svn:executable, encoding (utf-8, latin-1, ascii, etc.), if UTF-8: with
> or without BOM, NFC or NFD coding, etc. etc. If you are interested, a
> crude version is freely available from
> http://ndl.uva.netherlight.nl/downloads/testers/testers-latest.tgz
> (it's the file svnpropsCheck.py).
>
> Regards,
> Freek Dijkstra
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 25 21:44:55 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.