##// END OF EJS Templates
branching: merge stable into default
Raphaël Gomès -
r48736:66ff8d38 merge default
parent child Browse files
Show More
@@ -55,7 +55,6 b' rust-cargo-test-py3:'
55 PYTHON: python3
55 PYTHON: python3
56
56
57 phabricator-refresh:
57 phabricator-refresh:
58 <<: *all
59 stage: phabricator
58 stage: phabricator
60 variables:
59 variables:
61 DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
60 DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
@@ -51,8 +51,8 b''
51 $RUSTUP_INIT_URL = "https://static.rust-lang.org/rustup/archive/1.21.1/x86_64-pc-windows-gnu/rustup-init.exe"
51 $RUSTUP_INIT_URL = "https://static.rust-lang.org/rustup/archive/1.21.1/x86_64-pc-windows-gnu/rustup-init.exe"
52 $RUSTUP_INIT_SHA256 = "d17df34ba974b9b19cf5c75883a95475aa22ddc364591d75d174090d55711c72"
52 $RUSTUP_INIT_SHA256 = "d17df34ba974b9b19cf5c75883a95475aa22ddc364591d75d174090d55711c72"
53
53
54 $PYOXIDIZER_URL = "https://github.com/indygreg/PyOxidizer/releases/download/pyoxidizer%2F0.16.0/PyOxidizer-0.16.0-x64.msi"
54 $PYOXIDIZER_URL = "https://github.com/indygreg/PyOxidizer/releases/download/pyoxidizer%2F0.17/PyOxidizer-0.17.0-x64.msi"
55 $PYOXIDIZER_SHA256 = "2a9c58add9161c272c418d5e6dec13fbe648f624b5d26770190357e4d664f24e"
55 $PYOXIDIZER_SHA256 = "85c3bc21a18eb5e2db4dad87cca29accf725c7d59dd364a853ab5099c272024b"
56
56
57 # Writing progress slows down downloads substantially. So disable it.
57 # Writing progress slows down downloads substantially. So disable it.
58 $progressPreference = 'silentlyContinue'
58 $progressPreference = 'silentlyContinue'
@@ -80,6 +80,7 b' def build_wix('
80 if pyoxidizer_target:
80 if pyoxidizer_target:
81 fn = wix.build_installer_pyoxidizer
81 fn = wix.build_installer_pyoxidizer
82 kwargs["target_triple"] = pyoxidizer_target
82 kwargs["target_triple"] = pyoxidizer_target
83 kwargs["extra_pyoxidizer_vars"] = extra_pyoxidizer_vars
83 else:
84 else:
84 fn = wix.build_installer_py2exe
85 fn = wix.build_installer_py2exe
85 kwargs["python_exe"] = pathlib.Path(python)
86 kwargs["python_exe"] = pathlib.Path(python)
@@ -106,7 +107,7 b' def build_wix('
106 "timestamp_url": sign_timestamp_url,
107 "timestamp_url": sign_timestamp_url,
107 }
108 }
108
109
109 fn(**kwargs, extra_pyoxidizer_vars=extra_pyoxidizer_vars)
110 fn(**kwargs)
110
111
111
112
112 def get_parser():
113 def get_parser():
@@ -136,13 +136,8 b' def create_pyoxidizer_install_layout('
136
136
137 run_pyoxidizer(source_dir, build_dir, target_triple)
137 run_pyoxidizer(source_dir, build_dir, target_triple)
138
138
139 if "windows" in target_triple:
140 target = "app_windows"
141 else:
142 target = "app_posix"
143
144 build_dir = (
139 build_dir = (
145 source_dir / "build" / "pyoxidizer" / target_triple / "release" / target
140 source_dir / "build" / "pyoxidizer" / target_triple / "release" / "app"
146 )
141 )
147
142
148 if out_dir.exists():
143 if out_dir.exists():
@@ -28,14 +28,16 b" if libdir != '@' 'LIBDIR' '@':"
28 # to the documentation.
28 # to the documentation.
29 if getattr(sys, 'frozen', None) == 'console_exe':
29 if getattr(sys, 'frozen', None) == 'console_exe':
30 vi = sys.version_info
30 vi = sys.version_info
31 sys.path.append(
31 appdata = os.environ.get('APPDATA')
32 os.path.join(
32 if appdata:
33 os.environ['APPDATA'],
33 sys.path.append(
34 'Python',
34 os.path.join(
35 'Python%d%d' % (vi[0], vi[1]),
35 appdata,
36 'site-packages',
36 'Python',
37 'Python%d%d' % (vi[0], vi[1]),
38 'site-packages',
39 )
37 )
40 )
38 )
39
41
40 from hgdemandimport import tracing
42 from hgdemandimport import tracing
41
43
@@ -752,8 +752,6 b' def writeworkingdir(repo, ctx, filedata,'
752
752
753 Directly updates the dirstate for the affected files.
753 Directly updates the dirstate for the affected files.
754 """
754 """
755 assert repo.dirstate.p2() == nullid
756
757 for path, data in pycompat.iteritems(filedata):
755 for path, data in pycompat.iteritems(filedata):
758 fctx = ctx[path]
756 fctx = ctx[path]
759 fctx.write(data, fctx.flags())
757 fctx.write(data, fctx.flags())
@@ -761,6 +759,7 b' def writeworkingdir(repo, ctx, filedata,'
761 oldp1 = repo.dirstate.p1()
759 oldp1 = repo.dirstate.p1()
762 newp1 = replacements.get(oldp1, oldp1)
760 newp1 = replacements.get(oldp1, oldp1)
763 if newp1 != oldp1:
761 if newp1 != oldp1:
762 assert repo.dirstate.p2() == nullid
764 with repo.dirstate.parentchange():
763 with repo.dirstate.parentchange():
765 scmutil.movedirstate(repo, repo[newp1])
764 scmutil.movedirstate(repo, repo[newp1])
766
765
@@ -47,14 +47,16 b' if extra_path is not None:'
47 # Add user site to sys.path to load extensions without the full path
47 # Add user site to sys.path to load extensions without the full path
48 if os.name == 'nt':
48 if os.name == 'nt':
49 vi = sys.version_info
49 vi = sys.version_info
50 sys.path.append(
50 appdata = os.environ.get('APPDATA')
51 os.path.join(
51 if appdata:
52 os.environ['APPDATA'],
52 sys.path.append(
53 'Python',
53 os.path.join(
54 'Python%d%d' % (vi[0], vi[1]),
54 appdata,
55 'site-packages',
55 'Python',
56 'Python%d%d' % (vi[0], vi[1]),
57 'site-packages',
58 )
56 )
59 )
57 )
58 import hgdemandimport;
60 import hgdemandimport;
59 hgdemandimport.enable();
61 hgdemandimport.enable();
60 from mercurial import dispatch;
62 from mercurial import dispatch;
@@ -253,7 +255,11 b' def make_msi(manifest):'
253 path = "defaultrc/editor.rc",
255 path = "defaultrc/editor.rc",
254 )
256 )
255
257
256 wix = WiXInstaller("hg", "%s-%s.msi" % (MSI_NAME, VERSION))
258 wix = WiXInstaller(
259 "hg",
260 "%s-%s-%s.msi" % (MSI_NAME, VERSION, platform),
261 arch = platform,
262 )
257
263
258 # Materialize files in the manifest to the install layout.
264 # Materialize files in the manifest to the install layout.
259 wix.add_install_files(manifest)
265 wix.add_install_files(manifest)
@@ -871,6 +871,45 b' prevents us from forgetting fixes made i'
871
871
872 $ cd ..
872 $ cd ..
873
873
874 We should be allowed to fix the working (and only the working copy) while
875 merging.
876
877 $ hg init fixworkingcopywhilemerging
878 $ cd fixworkingcopywhilemerging
879
880 $ printf "a\nb\nc\n" > file.changed
881 $ hg commit -Aqm "ancestor"
882
883 $ printf "aa\nb\nc\n" > file.changed
884 $ hg commit -m "change a"
885
886 $ hg checkout '.^'
887 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
888 $ printf "a\nb\ncc\n" > file.changed
889 $ hg commit -m "change c"
890 created new head
891
892 $ hg merge
893 merging file.changed
894 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
895 (branch merge, don't forget to commit)
896 $ cat file.changed
897 aa
898 b
899 cc
900 Not allowed to fix a parent of the working copy while merging
901 $ hg fix -r . --working-dir
902 abort: outstanding uncommitted merge
903 (use 'hg commit' or 'hg merge --abort')
904 [20]
905 $ hg fix --working-dir
906 $ cat file.changed
907 AA
908 b
909 CC
910
911 $ cd ..
912
874 Abort fixing revisions if there is an unfinished operation. We don't want to
913 Abort fixing revisions if there is an unfinished operation. We don't want to
875 make things worse by editing files or stripping/obsoleting things. Also abort
914 make things worse by editing files or stripping/obsoleting things. Also abort
876 fixing the working directory if there are unresolved merge conflicts.
915 fixing the working directory if there are unresolved merge conflicts.
General Comments 0
You need to be logged in to leave comments. Login now