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

how to get list of files off-line

From: Freek Dijkstra <public_at_macfreek.nl>
Date: 2007-09-25 13:28:18 CEST

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.

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
Received on Tue Sep 25 13:28:35 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.