mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-10-26 06:06:06 +01:00
check-versions: remove hg-git stuff
It's not worth it to keep trying to run this. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -220,20 +220,6 @@ end
|
||||
|
||||
add_component(:hg, 'https://www.mercurial-scm.org/repo/hg', checkout_fix: hg_checkout_fix)
|
||||
|
||||
hggit_checkout_fix = lambda do |version|
|
||||
return unless check_version(version, '0.8.0')
|
||||
|
||||
if check_version(version, '0.9.0')
|
||||
run_cmd %W[hg import -q --no-commit #{__dir__}/hggit_rename_fix_0.9.0.patch], fatal: false
|
||||
else
|
||||
run_cmd %W[hg import -q --no-commit #{__dir__}/hggit_rename_fix_0.8.0.patch], fatal: false
|
||||
end
|
||||
end
|
||||
|
||||
add_component(:hggit, 'https://foss.heptapod.net/mercurial/hg-git', checkout_fix: hggit_checkout_fix)
|
||||
|
||||
add_component(:dulwich, 'https://github.com/dulwich/dulwich.git', version_format: 'dulwich-%s', kind: :git)
|
||||
|
||||
def load_checks(file)
|
||||
file.each do |e|
|
||||
e.chomp!
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
diff --git a/hggit/git_handler.py b/hggit/git_handler.py
|
||||
--- a/hggit/git_handler.py
|
||||
+++ b/hggit/git_handler.py
|
||||
@@ -693,6 +693,8 @@
|
||||
def import_git_commit(self, commit):
|
||||
self.ui.debug(_("importing: %s\n") % commit.id)
|
||||
|
||||
+ extra_in_message = self.ui.configbool('git', 'debugextrainmessage', False)
|
||||
+
|
||||
detect_renames = False
|
||||
(strip_message, hg_renames,
|
||||
hg_branch, extra) = git2hg.extract_hg_metadata(
|
||||
@@ -703,7 +705,8 @@
|
||||
# renames detected from Git. This is because we export an extra
|
||||
# 'HG:rename-source' Git parameter when this isn't set, which will
|
||||
# break bidirectionality.
|
||||
- extra['hg-git-rename-source'] = 'git'
|
||||
+ if not extra_in_message:
|
||||
+ extra['hg-git-rename-source'] = 'git'
|
||||
else:
|
||||
renames = hg_renames
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
diff --git a/hggit/git_handler.py b/hggit/git_handler.py
|
||||
--- a/hggit/git_handler.py
|
||||
+++ b/hggit/git_handler.py
|
||||
@@ -829,6 +829,8 @@
|
||||
def import_git_commit(self, commit):
|
||||
self.ui.debug(_(b"importing: %s\n") % commit.id)
|
||||
|
||||
+ extra_in_message = self.ui.configbool(b'git', b'debugextrainmessage', False)
|
||||
+
|
||||
detect_renames = False
|
||||
(strip_message, hg_renames,
|
||||
hg_branch, extra) = git2hg.extract_hg_metadata(
|
||||
@@ -839,7 +841,8 @@
|
||||
# renames detected from Git. This is because we export an extra
|
||||
# 'HG:rename-source' Git parameter when this isn't set, which will
|
||||
# break bidirectionality.
|
||||
- extra[b'hg-git-rename-source'] = b'git'
|
||||
+ if not extra_in_message:
|
||||
+ extra[b'hg-git-rename-source'] = b'git'
|
||||
else:
|
||||
renames = hg_renames
|
||||
|
||||
Reference in New Issue
Block a user