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 | e79ab1bcf473ae449fa4d7dc10ae6e70ebb04b4d (patch) | |
| tree | 0821a40e002f4dd3e2c24231b3cbce1503d3f854 | |
| parent | 93ee9da6ee837784d31456343c0553188f0e3439 (diff) | |
| download | qpid-python-e79ab1bcf473ae449fa4d7dc10ae6e70ebb04b4d.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@703481 13f79535-47bb-0310-9956-ffa450edef68
| -rwxr-xr-x | qpid/buildtools/buildCreator/buildCreator.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/qpid/buildtools/buildCreator/buildCreator.py b/qpid/buildtools/buildCreator/buildCreator.py index 9929fe9ca0..030a06aceb 100755 --- a/qpid/buildtools/buildCreator/buildCreator.py +++ b/qpid/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: " + \ |
