diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2009-09-08 12:25:35 -0700 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2009-09-08 12:25:35 -0700 |
commit | 5b428d3a636709eca51ec5e442147238e0ed1407 (patch) | |
tree | 840e760b6efb8303a77062ead6f85a4ac8383fec /scripts | |
parent | 74e584add651adbb5784276aba5770de9e295846 (diff) | |
parent | ff11d74820c89822cd067b51727d9df1dc87d0d0 (diff) |
Merge with SVN trunk
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update_version_files.py | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/scripts/update_version_files.py b/scripts/update_version_files.py index 9081941521..ee1ce69a15 100755 --- a/scripts/update_version_files.py +++ b/scripts/update_version_files.py @@ -241,23 +241,17 @@ def main(): if update_server: server_version = new_version else: - # Assume we're updating just the build number - cl = '%s info "%s"' % (svn, src_root) - status, output = _getstatusoutput(cl) - if verbose: - print - print "svn info output:" - print "----------------" - print output - - branch_match = svn_branch_re.search(output) - revision_match = svn_revision_re.search(output) - if not branch_match or not revision_match: - print "Failed to execute svn info, output follows:" - print output + + if llversion.using_svn(): + revision = llversion.get_svn_revision() + branch = llversion.get_svn_branch() + elif llversion.using_hg(): + revision = llversion.get_hg_changeset() + branch = llversion.get_hg_repo() + else: + print >>sys.stderr, "ERROR: could not determine revision and branch" return -1 - branch = branch_match.group(1) - revision = revision_match.group(1) + if skip_on_branch_re and skip_on_branch_re.match(branch): print "Release Candidate Build, leaving version files untouched." return 0 |