Patchwork [STABLE] setup: avoid procedure related to hg.exe at --pure

mail settings
Submitter Katsunori FUJIWARA
Date Feb. 8, 2016, 12:15 p.m.
Message ID <4050e9f197c5fa5cccfe.1454933705@juju>
Download mbox | patch
Permalink /patch/13052/
State Accepted
Delegated to: Martin von Zweigbergk
Headers show


Katsunori FUJIWARA - Feb. 8, 2016, 12:15 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <>
# Date 1454933533 -32400
#      Mon Feb 08 21:12:13 2016 +0900
# Branch stable
# Node ID 4050e9f197c5fa5cccfe136bdfab517686c48ff1
# Parent  61f4d59e9a0be4e25c1aa016db1a80a540a9d337
setup: avoid procedure related to hg.exe at --pure

Before this patch, " --pure" fails on Windows, because tries to copy "hg.exe", which doesn't generated
at " --pure".

At that time, run_command('build_hgexe') invoked in does nothing and returns successfully. Therefore,
subsequent procedure assuming existence of "hg.exe" fails.

This patch avoids procedure related to "hg.exe" (= all of except for invocation) at
" --pure".
Martin von Zweigbergk - Feb. 10, 2016, 9:13 p.m.
+mercurial-devel this time

---------- Forwarded message ----------
From: Martin von Zweigbergk <>
Date: Wed, Feb 10, 2016 at 1:12 PM
Subject: Re: [PATCH STABLE] setup: avoid procedure related to hg.exe
at --pure
To: FUJIWARA Katsunori <>

I don't know anything about this, but the description makes sense and
no one else complained, so I'm queuing this for stable. Thanks.


diff --git a/ b/
--- a/
+++ b/
@@ -304,7 +304,7 @@  class hgbuildext(build_ext):
 class hgbuildscripts(build_scripts):
     def run(self):
-        if != 'nt':
+        if != 'nt' or self.distribution.pure:
         exebuilt = False