previously is_merged was an expensive callback. Now that all this data is
pre-computed, this is is a simple membership testing.
So it is probably cheaper than the membership testing.
Alphare |
hg-reviewers |
previously is_merged was an expensive callback. Now that all this data is
pre-computed, this is is a simple membership testing.
So it is probably cheaper than the membership testing.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/copies.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
29514b0ea8c2 | d3946ab1b0cf | Pierre-Yves David | Oct 1 2020, 3:45 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
): | ): | ||||
pass | pass | ||||
elif ( | elif ( | ||||
changes is not None | changes is not None | ||||
and other[1] is None | and other[1] is None | ||||
and dest in changes.salvaged | and dest in changes.salvaged | ||||
): | ): | ||||
minor[dest] = value | minor[dest] = value | ||||
elif not isancestor(new_tt, other_tt): | |||||
minor[dest] = value | |||||
elif changes is not None and dest in changes.merged: | elif changes is not None and dest in changes.merged: | ||||
minor[dest] = value | minor[dest] = value | ||||
elif not isancestor(new_tt, other_tt): | |||||
minor[dest] = value | |||||
def _revinfo_getter_extra(repo): | def _revinfo_getter_extra(repo): | ||||
"""return a function that return multiple data given a <rev>"i | """return a function that return multiple data given a <rev>"i | ||||
* p1: revision number of first parent | * p1: revision number of first parent | ||||
* p2: revision number of first parent | * p2: revision number of first parent | ||||
* p1copies: mapping of copies from p1 | * p1copies: mapping of copies from p1 |