dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00602
[PATCH 04/34] diff_tree: Make rename/rewrite threshold constants public.
From: Dave Borowitz <dborowitz@xxxxxxxxxx>
Change-Id: I4c20f808f2408dbdbc79131bc4dff5d29acc8994
---
dulwich/diff_tree.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dulwich/diff_tree.py b/dulwich/diff_tree.py
index c263f36..affbe54 100644
--- a/dulwich/diff_tree.py
+++ b/dulwich/diff_tree.py
@@ -42,9 +42,9 @@ CHANGE_UNCHANGED = 'unchanged'
_NULL_ENTRY = TreeEntry(None, None, None)
_MAX_SCORE = 100
-_RENAME_THRESHOLD = 60
-_MAX_FILES = 200
-_REWRITE_THRESHOLD = None
+RENAME_THRESHOLD = 60
+MAX_FILES = 200
+REWRITE_THRESHOLD = None
class TreeChange(namedtuple('TreeChange', ['type', 'old', 'new'])):
@@ -288,8 +288,8 @@ class RenameDetector(object):
"""Object for handling rename detection between two trees."""
def __init__(self, store, tree1_id, tree2_id,
- rename_threshold=_RENAME_THRESHOLD, max_files=_MAX_FILES,
- rewrite_threshold=_REWRITE_THRESHOLD,
+ rename_threshold=RENAME_THRESHOLD, max_files=MAX_FILES,
+ rewrite_threshold=REWRITE_THRESHOLD,
find_copies_harder=False):
"""Initialize the rename detector.
--
1.7.3.1
References