Skip to content
Snippets Groups Projects
Commit f3bcae1e9e23 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

copies: expand the logic of usechangesetcentricalgo

Using intermediate variable is clearer and will make is simple to expand the
logic.

Differential Revision: https://phab.mercurial-scm.org/D6930
parent 2cc453284d5c
No related branches found
No related tags found
No related merge requests found
......@@ -182,8 +182,9 @@
def usechangesetcentricalgo(repo):
"""Checks if we should use changeset-centric copy algorithms"""
return (repo.ui.config('experimental', 'copies.read-from') in
('changeset-only', 'compatibility'))
readfrom = repo.ui.config('experimental', 'copies.read-from')
changesetsource = ('changeset-only', 'compatibility')
return readfrom in changesetsource
def _committedforwardcopies(a, b, base, match):
"""Like _forwardcopies(), but b.rev() cannot be None (working copy)"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment