library: enable runpy invocation on mercurial package
authorJason R. Coombs <jaraco@jaraco.com>
Mon, 17 Apr 2023 09:38:52 -0400
changeset 50696 eb01d3a65ad8
parent 50695 1c31b343e514
child 50697 e7ef11b75fdc
library: enable runpy invocation on mercurial package
mercurial/__main__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/__main__.py	Mon Apr 17 09:38:52 2023 -0400
@@ -0,0 +1,4 @@
+if __name__ == '__main__':
+    from . import dispatch
+
+    dispatch.run()