2012-01-14 04:21:16 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
#author: Bryan Bishop <kanzure@gmail.com>
|
|
|
|
#date: 2012-01-13
|
|
|
|
import os
|
|
|
|
|
|
|
|
changeset_numbers = range(266, 635)
|
|
|
|
|
|
|
|
def take_snapshot_image(changeset_number):
|
2012-01-18 05:40:08 +00:00
|
|
|
"turn common.asm into an image at a certain version"
|
2012-01-14 04:21:16 +00:00
|
|
|
|
2012-01-18 05:40:08 +00:00
|
|
|
print "reverting common.asm to r" + str(changeset_number)
|
2012-01-14 04:21:16 +00:00
|
|
|
|
|
|
|
#revert the file
|
2012-01-18 05:40:08 +00:00
|
|
|
os.system("hg revert ../common.asm -r" + str(changeset_number))
|
2012-01-14 04:21:16 +00:00
|
|
|
|
|
|
|
print "generating the image.."
|
|
|
|
|
|
|
|
#draw the image
|
|
|
|
os.system("python romviz.py")
|
|
|
|
|
|
|
|
#move the file
|
|
|
|
os.system("mv test.png versions/" + str(changeset_number) + ".png")
|
|
|
|
|
|
|
|
for changeset_number in changeset_numbers:
|
|
|
|
take_snapshot_image(changeset_number)
|
|
|
|
|