summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-11-24 09:45:52 -0800
committerWilliam Deegan <bill@baddogconsulting.com>2015-11-24 09:45:52 -0800
commite8e70da12fdd5e7420dd696e3eabaed56fc5c6a9 (patch)
treeafa6578a909417e374d6dea537d9ae96073d641f /SConstruct
parent77e0378b30bd51a035cd5a801589d31368eee1df (diff)
downloadscons-e8e70da12fdd5e7420dd696e3eabaed56fc5c6a9.tar.gz
remove logic to get revision from subversion. Long since obsoleted for SCons development
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct25
1 files changed, 2 insertions, 23 deletions
diff --git a/SConstruct b/SConstruct
index 3bbaca61..6ad6dd9f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -88,7 +88,6 @@ fakeroot = whereis('fakeroot')
gzip = whereis('gzip')
rpmbuild = whereis('rpmbuild')
hg = os.path.exists('.hg') and whereis('hg')
-svn = os.path.exists('.svn') and whereis('svn')
unzip = whereis('unzip')
zip = whereis('zip')
@@ -117,16 +116,11 @@ if not version:
version = default_version
hg_status_lines = []
-svn_status_lines = []
if hg:
cmd = "%s status --all 2> /dev/null" % hg
hg_status_lines = os.popen(cmd, "r").readlines()
-if svn:
- cmd = "%s status --verbose 2> /dev/null" % svn
- svn_status_lines = os.popen(cmd, "r").readlines()
-
revision = ARGUMENTS.get('REVISION', '')
def generate_build_id(revision):
return revision
@@ -145,17 +139,6 @@ if not revision and hg:
result = result + '[MODIFIED]'
return result
-if not revision and svn:
- svn_info = os.popen("%s info 2> /dev/null" % svn, "r").read()
- m = re.search('Revision: (\d+)', svn_info)
- if m:
- revision = m.group(1)
- def generate_build_id(revision):
- result = 'r' + revision
- if [l for l in svn_status_lines if l[0] in 'ACDMR']:
- result = result + '[MODIFIED]'
- return result
-
checkpoint = ARGUMENTS.get('CHECKPOINT', '')
if checkpoint:
if checkpoint == 'd':
@@ -236,7 +219,7 @@ command_line_variables = [
("REVISION=", "The revision number of the source being built. " +
"The default is the Subversion revision returned " +
- "'svn info', with an appended string of " +
+ "'hg heads', with an appended string of " +
"'[MODIFIED]' if there are any changes in the " +
"working copy."),
@@ -1234,12 +1217,8 @@ sfiles = None
if hg_status_lines:
slines = [l for l in hg_status_lines if l[0] in 'ACM']
sfiles = [l.split()[-1] for l in slines]
-elif svn_status_lines:
- slines = [l for l in svn_status_lines if l[0] in ' MA']
- sentries = [l.split()[-1] for l in slines]
- sfiles = list(filter(os.path.isfile, sentries))
else:
- print "Not building in a Mercurial or Subversion tree; skipping building src package."
+ print "Not building in a Mercurial tree; skipping building src package."
if sfiles:
remove_patterns = [