print full path of files with bad eol and support svn 1.7 which only has the .svn folder in the root folder
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6340 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fbd0cdd0f7
commit
8c462c04a8
1 changed files with 11 additions and 7 deletions
|
@ -184,11 +184,14 @@ def TestSubversionEOL():
|
|||
svn = pysvn.Client()
|
||||
|
||||
for root, dirs, files in walk('..'):
|
||||
if '.svn' not in dirs:
|
||||
continue
|
||||
|
||||
def versioned(f):
|
||||
s = svn.status(join(root, f))[0].text_status
|
||||
try:
|
||||
s = svn.status(join(root, f))[0].text_status
|
||||
except pysvn.ClientError, e:
|
||||
if 'not a working copy' in e.message:
|
||||
return False
|
||||
else:
|
||||
raise
|
||||
return s != pysvn.wc_status_kind.unversioned
|
||||
|
||||
svn_files = filter(versioned, files)
|
||||
|
@ -198,10 +201,11 @@ def TestSubversionEOL():
|
|||
ext = splitext(f)[1]
|
||||
if ext in eoldict.keys():
|
||||
eol = eoldict[ext]
|
||||
s = svn.propget('svn:eol-style', join(root, f)).values()
|
||||
path = join(root, f)
|
||||
s = svn.propget('svn:eol-style', path).values()
|
||||
if not s or s[0] != eol:
|
||||
print '*** %s has bad eol-style' % f
|
||||
log('*** %s has bad eol-style' % f)
|
||||
print '*** %s has bad eol-style' % path
|
||||
log('*** %s has bad eol-style' % path)
|
||||
exit()
|
||||
|
||||
def CreateMenuImage():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue