Permalink
Browse files

refs #153:

* added svn-ls.py to replace 'svn ls -R' that was missing from r295

svn-revision: r296
  • Loading branch information...
robmcmullen committed Apr 5, 2007
1 parent 88ce9bb commit abe7b8a2050f414146d464b031bae48e37d6c2e1
Showing with 34 additions and 0 deletions.
  1. +34 −0 svn-ls.py
@@ -0,0 +1,34 @@
#!/usr/bin/env python
import os,sys,re,os.path,time
from optparse import OptionParser
def directory(verbose=False):
files = []
# find packages to be installed
path = os.getcwd()
if verbose: print path
check = os.path.join('.svn','text-base')
def addsvn(arg, dirname, names):
if verbose: print "checking %s" % (dirname)
if dirname.find(check)>0:
dirname = dirname.replace(check, '')[len(path)+1:]
for name in names:
if name.find('.svn-base')>0:
actualname = name.replace('.svn-base', '')
if verbose: print "found %s" % actualname
files.append(os.path.join(dirname, actualname))
os.path.walk(path, addsvn, None)
filelist = (" ".join(files)).replace(os.sep, '/')
print filelist
if __name__=='__main__':
usage="usage: %prog"
parser=OptionParser(usage=usage)
(options, args) = parser.parse_args()
directory()

0 comments on commit abe7b8a

Please sign in to comment.