diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2008-10-10 14:00:33 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2008-10-10 14:00:33 +0000 |
| commit | 4dbc8f73b2a337b081645011476cc565d47fd35f (patch) | |
| tree | ca42fb5f24a94b77ad1c8f85fddaf565b1001c1d /buildtools | |
| parent | 121cf1ab37ea09b5e3f762a1a909d9c6eb636899 (diff) | |
| download | qpid-python-4dbc8f73b2a337b081645011476cc565d47fd35f.tar.gz | |
QPID-1336 : Update the revisions for patches to print the svn revision
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703481 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildtools')
| -rwxr-xr-x | buildtools/buildCreator/buildCreator.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/buildtools/buildCreator/buildCreator.py b/buildtools/buildCreator/buildCreator.py index 9929fe9ca0..030a06aceb 100755 --- a/buildtools/buildCreator/buildCreator.py +++ b/buildtools/buildCreator/buildCreator.py @@ -613,10 +613,12 @@ def applyPatch(patch): patchSource= _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + name - for root, dirs, files in os.walk(patchSource, topdown=False): + for root, dirs, files in os.walk(patchSource): + if '.svn' in dirs: + dirs.remove('.svn') for patchName in files: - log("Applying patch '" + name + "' to " + source) - runCommandShowError(basecommand + patchSource + PATH_SEP + patchName) + log("Applying patch '" + name + "'("+patchName+") to " + source) + runCommandShowError(basecommand + patchSource + PATH_SEP + patchName) ################################################################################ @@ -1042,8 +1044,10 @@ def addPatchVersions(source, filename): if (source.getElementsByTagName(REVISION).length > 0): macro += "\n" + ECHO_BIN + " \"\t\tREVISION:"+ \ getValue(patch.getElementsByTagName(REVISION)[0]) + "\" >> " + filename - else: - macro += "\n" + ECHO_BIN + " \"\t\tREVISION: HEAD\" >> "+ filename + else: + macro += "\n" + ECHO_BIN + " -n \"\t\tREVISION: \" >> " + filename + macro += "\n" + SVNVERSION_BIN + " " + _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + getName(patch) + " >> " + filename + if (patch.getElementsByTagName(PREFIX).length > 0): macro += "\n" + ECHO_BIN + " \"\t\tPREFIX: " + \ |
