tools/updaterevision.py

changeset 971
c00f9665a9f8
parent 970
c8aae45afd85
child 1431
2e0e2c696605
--- a/tools/updaterevision.py	Mon Aug 31 04:57:16 2015 +0300
+++ b/tools/updaterevision.py	Mon Aug 31 20:50:12 2015 +0300
@@ -36,10 +36,10 @@
 def main():
 	import subprocess
 	from datetime import datetime
-	parser = argparser.ArgumentParser (description='Writes a header file with Hg commit information')
+	parser = argparse.ArgumentParser (description='Writes a header file with Hg commit information')
 	parser.add_argument ('output')
 	args = parser.parse_args()
-	f = OutputFile (args.output)
+	f = outputfile.OutputFile (args.output)
 	data = subprocess.check_output (['hg', 'log', '-r.', '--template',
 		'{node|short} {branch} {date|hgdate}']).replace ('\n', '').split (' ')
 
@@ -64,4 +64,4 @@
 		print '%s updated to %s' % (f.filename, rev)
 
 if __name__ == '__main__':
-	main()
\ No newline at end of file
+	main()

mercurial