From 8c462c04a875f268caf9ac5a5e154c5c927897ea Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 11 Apr 2013 09:30:34 +0000 Subject: [PATCH] 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 --- Scripts/release.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Scripts/release.py b/Scripts/release.py index d4c83ef4..410d394e 100644 --- a/Scripts/release.py +++ b/Scripts/release.py @@ -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():