Skip to content
Snippets Groups Projects
Commit 9df52218 authored by Benoit Boissinot's avatar Benoit Boissinot
Browse files

shrink-revlog: avoid cryptic error when used as an extension

When shrink-revlog is used as an extension, it would produce an error when
switching back to stable because the script will try to execute itself.
parent 056c366f
No related branches found
No related tags found
No related merge requests found
......@@ -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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment