mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-02 17:45:48 +01:00
Add tool to run tests on many versions
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
15
tools/hg_setup_hack_2.4.patch
Normal file
15
tools/hg_setup_hack_2.4.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -181,7 +181,10 @@
|
||||
# error 0xc0150004. See: http://bugs.python.org/issue3440
|
||||
env['SystemRoot'] = os.environ['SystemRoot']
|
||||
|
||||
-if os.path.isdir('.hg'):
|
||||
+if os.path.exists('.hg_force_version'):
|
||||
+ with open('.hg_force_version') as f:
|
||||
+ version = f.read().rstrip('\n')
|
||||
+elif os.path.isdir('.hg'):
|
||||
cmd = [sys.executable, 'hg', 'log', '-r', '.', '--template', '{tags}\n']
|
||||
numerictags = [t for t in runhg(cmd, env).split() if t[0].isdigit()]
|
||||
hgid = runhg([sys.executable, 'hg', 'id', '-i'], env).strip()
|
||||
Reference in New Issue
Block a user