[PATCH 2 of 7] transplant: treat all files as text when applying a changeset
Alexander Fomin
afomin at fb.com
Tue Mar 21 13:08:35 EDT 2017
# HG changeset patch
# User Alexander Fomin <afomin at fb.com>
# Date 1490051515 25200
# Mon Mar 20 16:11:55 2017 -0700
# Node ID 6e4849bc2c126815e8edfe176257883907596361
# Parent 3c43572fec91b9caa83dc3402532046013b84e07
transplant: treat all files as text when applying a changeset
This patch makes transplant treat all files as text when when applying a
changeset. It has no immediate effect, but rather allows to change hg
behaviour with regarding to binary diffs generation in Git mode (issue5510).
diff --git a/hgext/transplant.py b/hgext/transplant.py
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -143,6 +143,8 @@ class transplanter(object):
pulls = []
diffopts = patch.difffeatureopts(self.ui, opts)
diffopts.git = True
+ # Enable binary diffs in Git mode
+ diffopts.text = True
lock = tr = None
try:
More information about the Mercurial-devel
mailing list