blob: 7811dd7d609a0ef378918ca76467ab80bb61b0db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
Disable wrappers as Python version is controlled by FLAVORS
--- README.md.orig 2021-11-19 21:23:13 UTC
+++ README.md
@@ -53,17 +53,6 @@ Setup:
If you want to build git along the helper, you can run `make git`.
-Python:
--------
-
-git-cinnabar will use one of `python3`, `python2.7` or `python2`, whichever has
-mercurial libraries. If none of them does, it will use the first that can be
-found.
-
-You may force a specific python through the `GIT_CINNABAR_PYTHON` environment
-variable.
-
-
Usage:
------
--- git-cinnabar.orig 2021-11-19 21:23:13 UTC
+++ git-cinnabar
@@ -1,21 +1,4 @@
-#!/bin/sh
-''':'
-py="$GIT_CINNABAR_PYTHON"
-if test -z "$py"; then
- for py in python3 python2.7 python2; do
- "$py" -c "from mercurial import hg" >/dev/null 2>&1 && break
- py=
- done
-fi
-if test -z "$py"; then
- for py in python3 python2.7 python2; do
- command -v "$py" > /dev/null && break
- py=python3
- done
-fi
-exec "$py" "$0" "$@"
-exit 1
-'''
+#!/usr/bin/env python
import os
import sys
--- git-remote-hg.orig 2021-11-19 21:23:13 UTC
+++ git-remote-hg
@@ -1,21 +1,4 @@
-#!/bin/sh
-''':'
-py="$GIT_CINNABAR_PYTHON"
-if test -z "$py"; then
- for py in python3 python2.7 python2; do
- "$py" -c "from mercurial import hg" >/dev/null 2>&1 && break
- py=
- done
-fi
-if test -z "$py"; then
- for py in python3 python2.7 python2; do
- command -v "$py" > /dev/null && break
- py=python3
- done
-fi
-exec "$py" "$0" "$@"
-exit 1
-'''
+#!/usr/bin/env python
from __future__ import division
import os
|