summaryrefslogtreecommitdiff
path: root/scripts/update_version_files.py
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2009-09-09 11:43:35 -0400
committerbrad kittenbrink <brad@lindenlab.com>2009-09-09 11:43:35 -0400
commit9c5cc00998e240f4bc6061830a162e3daa1d2f81 (patch)
tree08288ab4caf6670105de119d7d6a415b69360e8b /scripts/update_version_files.py
parent5669597e1803f24ee2ea452a792ecf35deffaee8 (diff)
parent11d10bd53aa14a7a18ffb40a5195e95f4e108c21 (diff)
Merged parabuild work and trunk with nat's latest linux linkage and LSL tests fixes.
Diffstat (limited to 'scripts/update_version_files.py')
-rwxr-xr-xscripts/update_version_files.py26
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