contrib/packaging/hgpackaging/py2exe.py
changeset 43609 8aa6aa9b7843
parent 43608 2574330dd0f6
child 43623 94eac340d212
--- a/contrib/packaging/hgpackaging/py2exe.py	Wed Oct 23 13:25:01 2019 -0700
+++ b/contrib/packaging/hgpackaging/py2exe.py	Wed Oct 23 18:42:19 2019 -0700
@@ -217,6 +217,13 @@
     """
     process_install_rules(STAGING_RULES, source_dir, staging_dir)
 
+    # Write out a default editor.rc file to configure notepad as the
+    # default editor.
+    with (staging_dir / 'hgrc.d' / 'editor.rc').open(
+        'w', encoding='utf-8'
+    ) as fh:
+        fh.write('[ui]\neditor = notepad\n')
+
     # Purge any files we don't want to be there.
     for f in STAGING_EXCLUDES:
         p = staging_dir / f