hg-git 1.1.4__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hg_git-1.1.4 → hg_git-1.2.0}/.gitlab-ci.yml +13 -20
- {hg_git-1.1.4 → hg_git-1.2.0}/.hgsigs +2 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/.hgtags +2 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/NEWS.rst +63 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/PKG-INFO +6 -6
- {hg_git-1.1.4 → hg_git-1.2.0}/README.rst +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/hg_git.egg-info/PKG-INFO +6 -6
- {hg_git-1.1.4 → hg_git-1.2.0}/hg_git.egg-info/SOURCES.txt +6 -1
- hg_git-1.2.0/hg_git.egg-info/requires.txt +1 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/__init__.py +4 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/__version__.py +2 -2
- hg_git-1.2.0/hggit/bundle.py +135 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/commands.py +42 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/config.py +18 -4
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/debugcommands.py +9 -6
- hg_git-1.2.0/hggit/gc.py +136 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/git2hg.py +1 -6
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/git_handler.py +196 -137
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/helptext/config.rst +11 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/schemes.py +5 -42
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/util.py +11 -73
- {hg_git-1.1.4 → hg_git-1.2.0}/setup.cfg +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/hghave.py +5 -10
- hg_git-1.2.0/tests/test-annotate.t +97 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-branch-bookmark-suffix.t +1 -1
- hg_git-1.2.0/tests/test-bundle.t +282 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-clone.t +29 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-conflict-1.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-conflict-2.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-convergedmerge.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-empty-working-tree.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-encoding.t +20 -22
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-extra.t +16 -18
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-file-removal.t +1 -1
- hg_git-1.2.0/tests/test-gc.t +212 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-git-gpg.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-git-tags.t +38 -6
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-gitignore-share.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-help.t +12 -5
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-hg-author.t +8 -8
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-hg-branch.t +2 -2
- hg_git-1.2.0/tests/test-hg-clone.t +98 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-hg-tags.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-hook.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-invalid-refs.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-merge.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-multiple-remotes.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-octopus.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-orphan-tags.t +3 -3
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-phases-draft.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-phases-public.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-pull-after-rebase.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-pull-after-strip.t +9 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-authors.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-detached.t +4 -3
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-missing-commit.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-phases.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-to-head.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push.t +5 -5
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-renames.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-serve-ci.t +3 -3
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-serve-dulwich.t +33 -32
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-serve-git.t +4 -1
- hg_git-1.2.0/tests/test-serve-hg.t +125 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-subrepos-drop.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-subrepos-push.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-subrepos-syntax.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-subrepos.t +2 -2
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-tree-decomposition.t +1 -1
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-verify-fail.t +5 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testutil +0 -12
- hg_git-1.1.4/hg_git.egg-info/requires.txt +0 -1
- hg_git-1.1.4/hggit/compat.py +0 -30
- hg_git-1.1.4/tests/test-serve-hg.t +0 -77
- {hg_git-1.1.4 → hg_git-1.2.0}/.gitignore +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/.hgignore +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/CONTRIBUTING.rst +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/COPYING +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/MANIFEST.in +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/Makefile +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/check-commit +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/ci.sh +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/Dockerfile.alpine +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/Dockerfile.ubuntu +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/Dockerfile +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/git-shell-commands/no-interactive-login +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/htpasswd +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/nginx.conf +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/ssh/id_ed25519 +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/ssh/id_ed25519.pub +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/ssh/ssh_host_ed25519_key +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/ssh/ssh_host_ed25519_key.pub +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/ssh/sshd_config +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/git-server/start.sh +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/contrib/docker/installhg.sh +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hg_git.egg-info/dependency_links.txt +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hg_git.egg-info/not-zip-safe +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hg_git.egg-info/top_level.txt +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/_ssh.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/gitdirstate.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/gitrepo.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/helptext/__init__.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/hg2git.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/hgrepo.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/overlay.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/revsets.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/templates.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/hggit/verify.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/pyproject.toml +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/setup.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/gpg/pubring.gpg +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/gpg/secring.gpg +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/gpg/trustdb.gpg +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/helpers-testrepo.sh +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/heredoctest.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/hghave +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/killdaemons.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/latin-1-encoding +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/run-tests.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/sitecustomize.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-addbranchrevs.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-ambiguousprefix.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-bookmark-workflow.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-check-black.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-check-commit.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-check-pyflakes.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-check-pylint.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-doctest.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-git-clone.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-git-submodules.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-git-workflow.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-gitignore-permissions.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-gitignore-windows.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-gitignore.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-illegal-contents.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-incoming.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-keywords.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-outgoing.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-phases-remote.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-pull-after-obsolete.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-pull.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-anonymous.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-push-r.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-serve-hg-static.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-subrepos-delete.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-timezone.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-transactions.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-transplant.t +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-url-parsing.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/test-url-parsing.py.out +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/daemonize.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/dulwich-serve.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/dumbhttp.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/ext-break-git-import.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/ext-commit-extra.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/ext-get-password-from-env.py +0 -0
- {hg_git-1.1.4 → hg_git-1.2.0}/tests/testlib/hooks.py +0 -0
|
@@ -6,7 +6,8 @@ stages:
|
|
|
6
6
|
|
|
7
7
|
.base:
|
|
8
8
|
image: registry.heptapod.net:443/mercurial/hg-git/ci/$CI_COMMIT_HG_BRANCH:hg-$HG-py$PYTHON
|
|
9
|
-
timeout:
|
|
9
|
+
timeout: 30m
|
|
10
|
+
retry: 1
|
|
10
11
|
services:
|
|
11
12
|
- name: registry.heptapod.net:443/mercurial/hg-git/git-server
|
|
12
13
|
alias: git-server
|
|
@@ -37,7 +38,7 @@ Latest:
|
|
|
37
38
|
matrix:
|
|
38
39
|
- &latest-versions
|
|
39
40
|
PYTHON:
|
|
40
|
-
- "3.
|
|
41
|
+
- "3.9"
|
|
41
42
|
- "3.13"
|
|
42
43
|
HG:
|
|
43
44
|
- "6.9"
|
|
@@ -48,23 +49,15 @@ Latest:
|
|
|
48
49
|
#
|
|
49
50
|
# Versions prior to the version that ships in the latest Ubuntu LTS
|
|
50
51
|
# release (4.5.3 for 18.04; 5.3.1 for 20.04) may be dropped if they
|
|
51
|
-
#
|
|
52
|
-
# released minor version should be listed for each major version;
|
|
53
|
-
# earlier minor versions are not needed.
|
|
52
|
+
# interfere with new development.
|
|
54
53
|
Supported:
|
|
55
54
|
extends: .base
|
|
56
55
|
stage: compat
|
|
57
|
-
retry: 1
|
|
58
56
|
parallel:
|
|
59
57
|
matrix:
|
|
60
58
|
- &supported-versions
|
|
61
59
|
PYTHON: "3.9"
|
|
62
60
|
HG:
|
|
63
|
-
- "6.1"
|
|
64
|
-
- "6.2"
|
|
65
|
-
- "6.3"
|
|
66
|
-
- "6.4"
|
|
67
|
-
- "6.5"
|
|
68
61
|
- "6.6"
|
|
69
62
|
- "6.7"
|
|
70
63
|
- "6.8"
|
|
@@ -80,16 +73,18 @@ Alpine:
|
|
|
80
73
|
timeout: 20m
|
|
81
74
|
retry: 1
|
|
82
75
|
script:
|
|
83
|
-
-
|
|
76
|
+
- >-
|
|
77
|
+
apk add gnupg git unzip openssh mercurial
|
|
78
|
+
py3-coverage py3-pygments py3-setuptools_scm
|
|
79
|
+
py3-urllib3
|
|
84
80
|
- |
|
|
85
81
|
if test -z "$DULWICH"
|
|
86
82
|
then
|
|
87
83
|
apk add py3-dulwich
|
|
88
84
|
else
|
|
89
|
-
apk add build-base python3-dev
|
|
90
|
-
|
|
85
|
+
apk add build-base python3-dev py3-pip
|
|
86
|
+
pip install --break-system-packages dulwich==$DULWICH
|
|
91
87
|
fi
|
|
92
|
-
- pip3 install coverage
|
|
93
88
|
- adduser -D test
|
|
94
89
|
- chown -R test *
|
|
95
90
|
- SETUPTOOLS_SCM_PRETEND_VERSION=1 PYTHON=3 su test -c contrib/ci.sh
|
|
@@ -97,13 +92,11 @@ Alpine:
|
|
|
97
92
|
artifacts: *test-artifacts
|
|
98
93
|
parallel:
|
|
99
94
|
matrix:
|
|
100
|
-
- ALPINE: "3.
|
|
95
|
+
- ALPINE: "3.19"
|
|
101
96
|
DULWICH:
|
|
102
|
-
- "0.
|
|
97
|
+
- "0.21.6"
|
|
103
98
|
- ALPINE:
|
|
104
|
-
- "3.
|
|
105
|
-
- "3.17"
|
|
106
|
-
- "3.18"
|
|
99
|
+
- "3.19"
|
|
107
100
|
|
|
108
101
|
# Test that the tests pass against the current branches
|
|
109
102
|
Development:
|
|
@@ -33,3 +33,5 @@ e5d68ea1c1fc0cfcafa9d8900fb00df4a0d5ea54 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQ
|
|
|
33
33
|
1683b66b49f009d157619cd25520e7726b7b288a 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQc9ONAUCZehEtAAKCRCirMgbQc9ONPLqAP9PnxS72A9iDj1k51CmpawMXIIA4S2FQ6BlFE5m/2eA+wEA0VSo0NfmZaLwKyV+Q7Bjfa4kapre8DXIH+aiS1vnIQ4=
|
|
34
34
|
ada78f968d8d7cf86d03b064625a4081a834c807 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQc9ONAUCZmIiAwAKCRCirMgbQc9ONOdcAQDYRVvoM3XFB5K3I+6Y7ecCD7KhHzK85938uhHjnZolEAD/fO2ayfqtF/sjZyagEEaXSBa8cwJO7R3gfMg2VjfIIA4=
|
|
35
35
|
b3a1e7993aed765bc092ba53773607be795d1835 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQc9ONAUCZnrnngAKCRCirMgbQc9ONJsyAQDBe4iJLjvoxE1FWXS5R0k6YSKXqaIowVD4Tk3xz8nwkQD/cUJcmmXbwhQwNi8WyX1jmkjR4ipUv8r6oPiBuldhSAc=
|
|
36
|
+
63bc68fcfe73806f74e00406d244c584d79e8390 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQc9ONAUCZztfGAAKCRCirMgbQc9ONKNaAP0bE1MxCJpNihYbqdV1erkhSfwgJGVWE7J4Ise8R1HnrgD/VaZOwmIVsjLSX2MMeM0XcgD1MVNYiv9+KNrVC79lSQo=
|
|
37
|
+
fabf47fd49c60a0f8b3983f929f3a72e2a44d6b4 0 iHUEABYIAB0WIQRBf9ypgVcBvOhGUkSirMgbQc9ONAUCZzt3wwAKCRCirMgbQc9ONEIpAP0U6+DoBwHaj9cvQj8Y5YasIkRx4vEufEoNuTO1dorRiwEAlv0t2PezSvPUDZGDSkOyPb0lSEInUm5iZg0ftcX4ZQ4=
|
|
@@ -59,3 +59,5 @@ e5d68ea1c1fc0cfcafa9d8900fb00df4a0d5ea54 1.0.3
|
|
|
59
59
|
1683b66b49f009d157619cd25520e7726b7b288a 1.1.1
|
|
60
60
|
ada78f968d8d7cf86d03b064625a4081a834c807 1.1.2
|
|
61
61
|
b3a1e7993aed765bc092ba53773607be795d1835 1.1.3
|
|
62
|
+
63bc68fcfe73806f74e00406d244c584d79e8390 1.1.4
|
|
63
|
+
fabf47fd49c60a0f8b3983f929f3a72e2a44d6b4 1.2.0b1
|
|
@@ -1,3 +1,66 @@
|
|
|
1
|
+
hg-git 1.2.0 (2025-02-08)
|
|
2
|
+
=========================
|
|
3
|
+
|
|
4
|
+
This is a feature release that contains changes all changes from
|
|
5
|
+
1.2.0b1, as well as the following change:
|
|
6
|
+
|
|
7
|
+
* Drop support for Python 3.8.
|
|
8
|
+
|
|
9
|
+
This release requires Mercurial 6.6, or later, Dulwich 0.21.6 or later
|
|
10
|
+
and Python 3.9 or later.
|
|
11
|
+
|
|
12
|
+
hg-git 1.2.0b1 (2024-11-18)
|
|
13
|
+
===========================
|
|
14
|
+
|
|
15
|
+
This is a preview of an upcoming feature release that contains changes
|
|
16
|
+
to user-facing behaviour.
|
|
17
|
+
|
|
18
|
+
Changes to behaviour:
|
|
19
|
+
|
|
20
|
+
* Change the defaults for ``hggit.usephases``; similar to Mercurial,
|
|
21
|
+
remote repositories now default to publishing.
|
|
22
|
+
|
|
23
|
+
Enhancements:
|
|
24
|
+
|
|
25
|
+
* Add support for a ``git.blame.ignoreRevsFile`` configuration
|
|
26
|
+
setting, that works similarly to the setting for ``git blame``.
|
|
27
|
+
* Add limited and experimental support for including hg-git metadata
|
|
28
|
+
in Mercurial bundles and when pulling or pushing from remote
|
|
29
|
+
Mercurial repositories, see below. (#156)
|
|
30
|
+
* ``hg git-cleanup`` now also removes broken Git refs.
|
|
31
|
+
* Always pull any annotated tags pointing to any known commits,
|
|
32
|
+
equivalent to passing the ``--tags`` option in Git. Previously, such
|
|
33
|
+
tags would only be pulled when either not using ``--rev`` or
|
|
34
|
+
similar, or when listing the tag explicitly.
|
|
35
|
+
* Transparently compress the objects when pushing (or exporting) to
|
|
36
|
+
Git. This is done in background threads, and by default uses up to
|
|
37
|
+
either four of them or the system CPU count, whichever is lower. The
|
|
38
|
+
``hggit.threads`` configuration option allows adjusting the default.
|
|
39
|
+
|
|
40
|
+
This release requires Mercurial 6.6, or later, Dulwich 0.21.6 or later
|
|
41
|
+
and Python 3.8 or later.
|
|
42
|
+
|
|
43
|
+
Transferring ``hg-git`` metadata
|
|
44
|
+
--------------------------------
|
|
45
|
+
|
|
46
|
+
As noted, this is experimental, and can be enabled using the following
|
|
47
|
+
configuration settings::
|
|
48
|
+
|
|
49
|
+
[experimental]
|
|
50
|
+
hg-git-bundle = yes
|
|
51
|
+
hg-git-serve = yes
|
|
52
|
+
|
|
53
|
+
With these set, pulling or pushing any commit already pushed (or
|
|
54
|
+
converted) to Git will also update the mapping remotely, avoiding the
|
|
55
|
+
need for converting these changes once more. In addition, Git tags are
|
|
56
|
+
also transferred. However, this support is limited, and there is no
|
|
57
|
+
synchronisation of later changes. There is no support for reinstating
|
|
58
|
+
or synchronising lost or old state, and no support for transferring
|
|
59
|
+
tags to old changesets.
|
|
60
|
+
|
|
61
|
+
The first option enables embedding the metadata using ``hg bundle``
|
|
62
|
+
and the second option enables the support with served repositories.
|
|
63
|
+
|
|
1
64
|
hg-git 1.1.4 (2024-11-18)
|
|
2
65
|
=========================
|
|
3
66
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: hg-git
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: push to and pull from a Git repository using Mercurial
|
|
5
5
|
Home-page: http://foss.heptapod.net/mercurial/hg-git
|
|
6
6
|
Author: Scott Chacon, Augie Fackler, Kevin Bullock and others
|
|
@@ -8,10 +8,10 @@ Maintainer: The hg-git maintainers
|
|
|
8
8
|
Maintainer-email: hg-git@googlegroups.com
|
|
9
9
|
License: GPLv2
|
|
10
10
|
Keywords: hg git mercurial
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
12
|
Description-Content-Type: text/x-rst
|
|
13
13
|
License-File: COPYING
|
|
14
|
-
Requires-Dist: dulwich<0.23.0,>=0.
|
|
14
|
+
Requires-Dist: dulwich<0.23.0,>=0.21.6
|
|
15
15
|
|
|
16
16
|
Hg-Git Mercurial Plugin
|
|
17
17
|
=======================
|
|
@@ -47,8 +47,8 @@ This plugin is implemented entirely in Python — there are no Git
|
|
|
47
47
|
binary dependencies, and you do not need to have Git installed on your
|
|
48
48
|
system. The only dependencies are:
|
|
49
49
|
|
|
50
|
-
* Mercurial 6.
|
|
51
|
-
* Dulwich 0.
|
|
50
|
+
* Mercurial 6.6
|
|
51
|
+
* Dulwich 0.21.6
|
|
52
52
|
* Python 3.8
|
|
53
53
|
|
|
54
54
|
Please note that these are the earliest versions known to work; later
|
|
@@ -32,8 +32,8 @@ This plugin is implemented entirely in Python — there are no Git
|
|
|
32
32
|
binary dependencies, and you do not need to have Git installed on your
|
|
33
33
|
system. The only dependencies are:
|
|
34
34
|
|
|
35
|
-
* Mercurial 6.
|
|
36
|
-
* Dulwich 0.
|
|
35
|
+
* Mercurial 6.6
|
|
36
|
+
* Dulwich 0.21.6
|
|
37
37
|
* Python 3.8
|
|
38
38
|
|
|
39
39
|
Please note that these are the earliest versions known to work; later
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: hg-git
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: push to and pull from a Git repository using Mercurial
|
|
5
5
|
Home-page: http://foss.heptapod.net/mercurial/hg-git
|
|
6
6
|
Author: Scott Chacon, Augie Fackler, Kevin Bullock and others
|
|
@@ -8,10 +8,10 @@ Maintainer: The hg-git maintainers
|
|
|
8
8
|
Maintainer-email: hg-git@googlegroups.com
|
|
9
9
|
License: GPLv2
|
|
10
10
|
Keywords: hg git mercurial
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
12
|
Description-Content-Type: text/x-rst
|
|
13
13
|
License-File: COPYING
|
|
14
|
-
Requires-Dist: dulwich<0.23.0,>=0.
|
|
14
|
+
Requires-Dist: dulwich<0.23.0,>=0.21.6
|
|
15
15
|
|
|
16
16
|
Hg-Git Mercurial Plugin
|
|
17
17
|
=======================
|
|
@@ -47,8 +47,8 @@ This plugin is implemented entirely in Python — there are no Git
|
|
|
47
47
|
binary dependencies, and you do not need to have Git installed on your
|
|
48
48
|
system. The only dependencies are:
|
|
49
49
|
|
|
50
|
-
* Mercurial 6.
|
|
51
|
-
* Dulwich 0.
|
|
50
|
+
* Mercurial 6.6
|
|
51
|
+
* Dulwich 0.21.6
|
|
52
52
|
* Python 3.8
|
|
53
53
|
|
|
54
54
|
Please note that these are the earliest versions known to work; later
|
|
@@ -36,10 +36,11 @@ hg_git.egg-info/top_level.txt
|
|
|
36
36
|
hggit/__init__.py
|
|
37
37
|
hggit/__version__.py
|
|
38
38
|
hggit/_ssh.py
|
|
39
|
+
hggit/bundle.py
|
|
39
40
|
hggit/commands.py
|
|
40
|
-
hggit/compat.py
|
|
41
41
|
hggit/config.py
|
|
42
42
|
hggit/debugcommands.py
|
|
43
|
+
hggit/gc.py
|
|
43
44
|
hggit/git2hg.py
|
|
44
45
|
hggit/git_handler.py
|
|
45
46
|
hggit/gitdirstate.py
|
|
@@ -64,8 +65,10 @@ tests/run-tests.py
|
|
|
64
65
|
tests/sitecustomize.py
|
|
65
66
|
tests/test-addbranchrevs.t
|
|
66
67
|
tests/test-ambiguousprefix.t
|
|
68
|
+
tests/test-annotate.t
|
|
67
69
|
tests/test-bookmark-workflow.t
|
|
68
70
|
tests/test-branch-bookmark-suffix.t
|
|
71
|
+
tests/test-bundle.t
|
|
69
72
|
tests/test-check-black.t
|
|
70
73
|
tests/test-check-commit.t
|
|
71
74
|
tests/test-check-pyflakes.t
|
|
@@ -79,6 +82,7 @@ tests/test-empty-working-tree.t
|
|
|
79
82
|
tests/test-encoding.t
|
|
80
83
|
tests/test-extra.t
|
|
81
84
|
tests/test-file-removal.t
|
|
85
|
+
tests/test-gc.t
|
|
82
86
|
tests/test-git-clone.t
|
|
83
87
|
tests/test-git-gpg.t
|
|
84
88
|
tests/test-git-submodules.t
|
|
@@ -91,6 +95,7 @@ tests/test-gitignore.t
|
|
|
91
95
|
tests/test-help.t
|
|
92
96
|
tests/test-hg-author.t
|
|
93
97
|
tests/test-hg-branch.t
|
|
98
|
+
tests/test-hg-clone.t
|
|
94
99
|
tests/test-hg-tags.t
|
|
95
100
|
tests/test-hook.t
|
|
96
101
|
tests/test-illegal-contents.t
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dulwich<0.23.0,>=0.21.6
|
|
@@ -156,6 +156,7 @@ from mercurial import (
|
|
|
156
156
|
pycompat,
|
|
157
157
|
)
|
|
158
158
|
|
|
159
|
+
from . import bundle
|
|
159
160
|
from . import commands
|
|
160
161
|
from . import config
|
|
161
162
|
from . import debugcommands
|
|
@@ -172,8 +173,8 @@ demandimport.IGNORES |= {
|
|
|
172
173
|
b'collections',
|
|
173
174
|
}
|
|
174
175
|
|
|
175
|
-
testedwith = b'6.
|
|
176
|
-
minimumhgversion = b'6.
|
|
176
|
+
testedwith = b'6.6 6.7 6.8 6.9'
|
|
177
|
+
minimumhgversion = b'6.6'
|
|
177
178
|
buglink = b'https://foss.heptapod.net/mercurial/hg-git/issues'
|
|
178
179
|
|
|
179
180
|
eh = exthelper.exthelper()
|
|
@@ -189,6 +190,7 @@ reposetup = eh.finalreposetup
|
|
|
189
190
|
uipopulate = eh.finaluipopulate
|
|
190
191
|
|
|
191
192
|
for _mod in (
|
|
193
|
+
bundle,
|
|
192
194
|
commands,
|
|
193
195
|
config,
|
|
194
196
|
debugcommands,
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import io
|
|
2
|
+
|
|
3
|
+
from mercurial import bundle2
|
|
4
|
+
from mercurial import exchange
|
|
5
|
+
from mercurial import exthelper
|
|
6
|
+
|
|
7
|
+
from mercurial.node import bin, hex
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
eh = exthelper.exthelper()
|
|
11
|
+
|
|
12
|
+
CAPABILITY_MAP = b'exp-hg-git-map'
|
|
13
|
+
CAPABILITY_TAGS = b'exp-hg-git-tags'
|
|
14
|
+
BUNDLEPART_MAP = b'exp-hg-git-map'
|
|
15
|
+
BUNDLEPART_TAGS = b'exp-hg-git-tags'
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@eh.wrapfunction(bundle2, 'getrepocaps')
|
|
19
|
+
def getrepocaps(orig, repo, **kwargs):
|
|
20
|
+
caps = orig(repo, **kwargs)
|
|
21
|
+
|
|
22
|
+
if repo.ui.configbool(b'experimental', b'hg-git-serve'):
|
|
23
|
+
caps[CAPABILITY_MAP] = ()
|
|
24
|
+
caps[CAPABILITY_TAGS] = ()
|
|
25
|
+
|
|
26
|
+
return caps
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def addpartrevgitmap(repo, bundler, outgoing):
|
|
30
|
+
if repo.githandler:
|
|
31
|
+
# this is different from what we store in the repository,
|
|
32
|
+
# and uses binary node ids: <20 bytes> <20 bytes>
|
|
33
|
+
repo.ui.debug(b'bundling git map\n')
|
|
34
|
+
|
|
35
|
+
chunks = (
|
|
36
|
+
bin(repo.githandler._map_hg[hex(hgnode)]) + hgnode
|
|
37
|
+
for hgnode in outgoing.missing
|
|
38
|
+
if hex(hgnode) in repo.githandler._map_hg
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
bundler.newpart(BUNDLEPART_MAP, data=chunks, mandatory=False)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def addpartrevgittags(repo, bundler, outgoing):
|
|
45
|
+
if repo.githandler.tags:
|
|
46
|
+
# this is consistent with the format used in the repository:
|
|
47
|
+
# <40 hex digits> <space> <tag name> <newline>
|
|
48
|
+
repo.ui.debug(b'bundling git tags\n')
|
|
49
|
+
|
|
50
|
+
chunks = (
|
|
51
|
+
b"%s %s\n" % (sha, name)
|
|
52
|
+
for name, sha in sorted(repo.githandler.tags.items())
|
|
53
|
+
if bin(sha) in outgoing.missing
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
bundler.newpart(BUNDLEPART_TAGS, data=chunks, mandatory=False)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@eh.wrapfunction(bundle2, '_addpartsfromopts')
|
|
60
|
+
def _addpartsfromopts(orig, ui, repo, bundler, source, outgoing, opts):
|
|
61
|
+
orig(ui, repo, bundler, source, outgoing, opts)
|
|
62
|
+
|
|
63
|
+
if opts.get(CAPABILITY_MAP, False) or ui.configbool(
|
|
64
|
+
b'experimental', b'hg-git-bundle'
|
|
65
|
+
):
|
|
66
|
+
addpartrevgitmap(repo, bundler, outgoing)
|
|
67
|
+
|
|
68
|
+
if opts.get(CAPABILITY_TAGS, False) or ui.configbool(
|
|
69
|
+
b'experimental', b'hg-git-bundle'
|
|
70
|
+
):
|
|
71
|
+
addpartrevgittags(repo, bundler, outgoing)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@eh.extsetup
|
|
75
|
+
def install_server_support(ui):
|
|
76
|
+
@bundle2.parthandler(BUNDLEPART_MAP)
|
|
77
|
+
def handlebundlemap(op, inpart):
|
|
78
|
+
ui.debug(b'unbundling git map\n')
|
|
79
|
+
|
|
80
|
+
while not inpart.consumed:
|
|
81
|
+
# this is different from what we store in the repository,
|
|
82
|
+
# and uses binary node ids: <20 bytes> <20 bytes>
|
|
83
|
+
gitsha = hex(inpart.read(20))
|
|
84
|
+
hgsha = hex(inpart.read(20))
|
|
85
|
+
|
|
86
|
+
if gitsha and hgsha:
|
|
87
|
+
op.repo.githandler.map_set(gitsha, hgsha)
|
|
88
|
+
|
|
89
|
+
op.repo.githandler.save_map()
|
|
90
|
+
|
|
91
|
+
@exchange.getbundle2partsgenerator(BUNDLEPART_MAP)
|
|
92
|
+
def gitmapbundle(
|
|
93
|
+
bundler, repo, source, bundlecaps=None, b2caps=None, **kwargs
|
|
94
|
+
):
|
|
95
|
+
if b2caps is None or CAPABILITY_MAP not in b2caps:
|
|
96
|
+
return
|
|
97
|
+
|
|
98
|
+
ui.debug(b'bundling git map\n')
|
|
99
|
+
|
|
100
|
+
outgoing = exchange._computeoutgoing(
|
|
101
|
+
repo,
|
|
102
|
+
kwargs['heads'],
|
|
103
|
+
kwargs['common'],
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
addpartrevgitmap(repo, bundler, outgoing)
|
|
107
|
+
|
|
108
|
+
@bundle2.parthandler(BUNDLEPART_TAGS)
|
|
109
|
+
def handlebundletags(op, inpart):
|
|
110
|
+
with io.BytesIO() as buf:
|
|
111
|
+
while not inpart.consumed:
|
|
112
|
+
buf.write(inpart.read())
|
|
113
|
+
|
|
114
|
+
buf.seek(0)
|
|
115
|
+
|
|
116
|
+
# we're consistent, and always load everything, so just
|
|
117
|
+
# let the handler do its thing
|
|
118
|
+
op.repo.githandler._read_tags_from(buf)
|
|
119
|
+
|
|
120
|
+
op.repo.githandler.save_tags()
|
|
121
|
+
|
|
122
|
+
@exchange.getbundle2partsgenerator(BUNDLEPART_TAGS)
|
|
123
|
+
def gittagbundle(
|
|
124
|
+
bundler, repo, source, bundlecaps=None, b2caps=None, **kwargs
|
|
125
|
+
):
|
|
126
|
+
if b2caps is None or CAPABILITY_TAGS not in b2caps:
|
|
127
|
+
return
|
|
128
|
+
|
|
129
|
+
outgoing = exchange._computeoutgoing(
|
|
130
|
+
repo,
|
|
131
|
+
kwargs['heads'],
|
|
132
|
+
kwargs['common'],
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
addpartrevgittags(repo, bundler, outgoing)
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
# of the GNU General Public License, incorporated herein by reference.
|
|
8
8
|
|
|
9
9
|
# global modules
|
|
10
|
+
import os
|
|
11
|
+
|
|
10
12
|
from dulwich import porcelain
|
|
11
13
|
|
|
12
14
|
from mercurial.node import hex, nullhex
|
|
@@ -96,10 +98,21 @@ def git_cleanup(ui, repo):
|
|
|
96
98
|
for line in gh.vfs(gh.map_file):
|
|
97
99
|
gitsha, hgsha = line.strip().split(b' ', 1)
|
|
98
100
|
if hgsha in repo:
|
|
101
|
+
ui.debug(b'keeping GIT:%s -> HG:%s\n' % (gitsha, hgsha))
|
|
99
102
|
new_map.append(b'%s %s\n' % (gitsha, hgsha))
|
|
103
|
+
else:
|
|
104
|
+
ui.note(b'dropping GIT:%s -> HG:%s\n' % (gitsha, hgsha))
|
|
100
105
|
with repo.githandler.store_repo.wlock():
|
|
101
106
|
f = gh.vfs(gh.map_file, b'wb')
|
|
102
107
|
f.writelines(new_map)
|
|
108
|
+
|
|
109
|
+
for ref, gitsha in gh.git.refs.as_dict().items():
|
|
110
|
+
if gitsha in gh.git:
|
|
111
|
+
ui.debug(b'keeping %s -> GIT:%s\n' % (ref, gitsha))
|
|
112
|
+
else:
|
|
113
|
+
ui.note(b'dropping %s -> GIT:%s\n' % (ref, gitsha))
|
|
114
|
+
del gh.git.refs[ref]
|
|
115
|
+
|
|
103
116
|
ui.status(_(b'git commit map cleaned\n'))
|
|
104
117
|
|
|
105
118
|
|
|
@@ -176,3 +189,32 @@ def tag(orig, ui, repo, *names, **opts):
|
|
|
176
189
|
)
|
|
177
190
|
|
|
178
191
|
repo.githandler.add_tag(target, *names)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@eh.wrapcommand(b'annotate')
|
|
195
|
+
def annotate(orig, ui, repo, *pats, **opts):
|
|
196
|
+
skiprevs = opts.get(b'skip', [])
|
|
197
|
+
ignorerevscfg = ui.config(b'git', b'blame.ignoreRevsFile')
|
|
198
|
+
|
|
199
|
+
if ignorerevscfg and repo.githandler:
|
|
200
|
+
ignorerevsfile = repo.wjoin(ignorerevscfg)
|
|
201
|
+
|
|
202
|
+
if os.path.isfile(ignorerevsfile):
|
|
203
|
+
with open(ignorerevsfile, 'rb') as fp:
|
|
204
|
+
for line in fp:
|
|
205
|
+
git_sha = line.strip().split(b'#', 1)[0]
|
|
206
|
+
|
|
207
|
+
if not git_sha:
|
|
208
|
+
continue
|
|
209
|
+
|
|
210
|
+
hg_sha = repo.githandler.map_hg_get(git_sha)
|
|
211
|
+
|
|
212
|
+
if hg_sha is not None:
|
|
213
|
+
ui.debug(
|
|
214
|
+
b'skipping %s -> %s\n' % (git_sha[:12], hg_sha[:12])
|
|
215
|
+
)
|
|
216
|
+
skiprevs.append(hg_sha)
|
|
217
|
+
|
|
218
|
+
opts['skip'] = skiprevs
|
|
219
|
+
|
|
220
|
+
return orig(ui, repo, *pats, **opts)
|
|
@@ -11,10 +11,13 @@ from . import util
|
|
|
11
11
|
eh = exthelper.exthelper()
|
|
12
12
|
|
|
13
13
|
CONFIG_DEFAULTS = {
|
|
14
|
+
b'experimental': {
|
|
15
|
+
b'hg-git-bundle': False,
|
|
16
|
+
b'hg-git-serve': False,
|
|
17
|
+
},
|
|
14
18
|
b'git': {
|
|
15
19
|
b'authors': None,
|
|
16
20
|
b'branch_bookmark_suffix': None,
|
|
17
|
-
b'debugextrainmessage': False, # test only -- do not document this!
|
|
18
21
|
b'findcopiesharder': False,
|
|
19
22
|
b'intree': None,
|
|
20
23
|
b'mindate': None,
|
|
@@ -23,13 +26,15 @@ CONFIG_DEFAULTS = {
|
|
|
23
26
|
b'similarity': 0,
|
|
24
27
|
b'pull-prune-remote-branches': True,
|
|
25
28
|
b'pull-prune-bookmarks': True,
|
|
29
|
+
b'blame.ignoreRevsFile': None,
|
|
26
30
|
},
|
|
27
31
|
b'hggit': {
|
|
28
32
|
b'fetchbuffer': 100,
|
|
29
33
|
b'mapsavefrequency': 1000,
|
|
30
|
-
b'usephases':
|
|
34
|
+
b'usephases': None,
|
|
31
35
|
b'retries': 3,
|
|
32
36
|
b'invalidpaths': b'skip',
|
|
37
|
+
b'threads': -1,
|
|
33
38
|
},
|
|
34
39
|
}
|
|
35
40
|
|
|
@@ -43,10 +48,19 @@ publishoption = collections.namedtuple(
|
|
|
43
48
|
)
|
|
44
49
|
|
|
45
50
|
|
|
46
|
-
def get_publishing_option(ui):
|
|
51
|
+
def get_publishing_option(ui, remote_names):
|
|
47
52
|
refs = set(ui.configlist(b'git', b'public'))
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
use_phases = ui.configbool(b'hggit', b'usephases', None)
|
|
55
|
+
|
|
56
|
+
if use_phases is None:
|
|
57
|
+
use_phases = any(
|
|
58
|
+
not p.url.islocal() for n in remote_names for p in ui.paths.get(n)
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
publish_defaults = not refs
|
|
62
|
+
|
|
63
|
+
return publishoption(use_phases, publish_defaults, refs)
|
|
50
64
|
|
|
51
65
|
|
|
52
66
|
@eh.extsetup
|
|
@@ -95,12 +95,15 @@ def perfgitsavemap(ui, repo):
|
|
|
95
95
|
|
|
96
96
|
timer, fm = gettimer(ui)
|
|
97
97
|
repo.githandler.load_map()
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
tmpfp = tempfile.NamedTemporaryFile(prefix=b'.git-mapfile-', dir=repo.path)
|
|
99
|
+
with tmpfp:
|
|
100
|
+
|
|
101
|
+
def perf():
|
|
102
|
+
with open(tmpfp.name, 'wb') as fp:
|
|
103
|
+
repo.githandler._write_map_to(fp)
|
|
104
|
+
|
|
105
|
+
timer(perf)
|
|
106
|
+
|
|
104
107
|
fm.end()
|
|
105
108
|
|
|
106
109
|
|