aboutsummaryrefslogtreecommitdiff
path: root/src/etc/snapshot.py
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-05-13 17:00:43 -0700
committerGraydon Hoare <[email protected]>2011-05-13 17:06:58 -0700
commitae784df3ce0c354fde00a6d9a4a50d642bdb3560 (patch)
treeaf075f13c465dd3e43d8f9ade50d740953e02e79 /src/etc/snapshot.py
parentrustc: Move replace_expr_type() from ty to typeck, as it's only used in the l... (diff)
downloadrust-ae784df3ce0c354fde00a6d9a4a50d642bdb3560.tar.xz
rust-ae784df3ce0c354fde00a6d9a4a50d642bdb3560.zip
Add support for 'T' transition snapshots, which are identical to S snapshots except they tell the makefile to stop at stage1.
Diffstat (limited to 'src/etc/snapshot.py')
-rw-r--r--src/etc/snapshot.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py
index 35bbc3ef..f5ba2bfe 100644
--- a/src/etc/snapshot.py
+++ b/src/etc/snapshot.py
@@ -35,10 +35,7 @@ def parse_line(n, line):
match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line);
if (not match):
raise Exception("%s:%d:E syntax error" % (snapshotfile, n))
- ttype = "snapshot"
- if (match.group(1) == "T"):
- ttype = "transition"
- return {"type": ttype,
+ return {"type": "snapshot",
"date": match.group(2),
"rev": match.group(3)}