Patchwork D11287: pyoxidized: add a copy of the `templates` directory in the right location

login
register
mail settings
Submitter phabricator
Date Aug. 18, 2021, 1:01 a.m.
Message ID <differential-rev-PHID-DREV-4myk6rs2wbhzbjfauqup-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49600/
State Superseded
Headers show

Comments

phabricator - Aug. 18, 2021, 1:01 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This should fix multiple tests.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D11287

AFFECTED FILES
  Makefile

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -270,9 +270,15 @@ 
 pyoxidizer:
 	$(PYOXIDIZER) build --path ./rust/hgcli --release
 
+
+PYOX_DIR=build/pyoxidizer/x86_64-pc-windows-msvc/release/app
+
 # a temporary target to setup all we need for run-tests.py --pyoxidizer
 # (should go away as the run-tests implementation improves
 pyoxidizer-windows-tests: pyoxidizer
+	rm -rf $(PYOX_DIR)/templates
+	cp -ar $(PYOX_DIR)/lib/mercurial/templates $(PYOX_DIR)/templates
+
 
 .PHONY: help all local build doc cleanbutpackages clean install install-bin \
 	install-doc install-home install-home-bin install-home-doc \