branch | stable |
changeset 10229 | 9df52218810d |
parent 9712 | 18b134ef294c |
child 10230 | 9f0c7be7c46c |
--- a/contrib/shrink-revlog.py Mon Jan 11 21:40:19 2010 +0100 +++ b/contrib/shrink-revlog.py Mon Jan 11 21:44:04 2010 +0100 @@ -212,7 +212,8 @@ 'Running \'hg verify\' is strongly recommended.)\n' % (oldindexfn, olddatafn)) -try: - main() -except KeyboardInterrupt: - sys.exit("interrupted") +if __name__ == "__main__": + try: + main() + except KeyboardInterrupt: + sys.exit("interrupted")