Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/phases.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
7d6cf9107373 | 0724bab2f9bd | Pierre-Yves David | Nov 9 2019, 7:23 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 | ||
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 |
* `heads`: define the first subset | * `heads`: define the first subset | ||||
* `roots`: define the second we subtract from the first""" | * `roots`: define the second we subtract from the first""" | ||||
# prevent an import cycle | # prevent an import cycle | ||||
# phases > dagop > patch > copies > scmutil > obsolete > obsutil > phases | # phases > dagop > patch > copies > scmutil > obsolete > obsutil > phases | ||||
from . import dagop | from . import dagop | ||||
repo = repo.unfiltered() | repo = repo.unfiltered() | ||||
cl = repo.changelog | cl = repo.changelog | ||||
rev = cl.nodemap.get | rev = cl.index.get_rev | ||||
if not roots: | if not roots: | ||||
return heads | return heads | ||||
if not heads or heads == [nullid]: | if not heads or heads == [nullid]: | ||||
return [] | return [] | ||||
# The logic operated on revisions, convert arguments early for convenience | # The logic operated on revisions, convert arguments early for convenience | ||||
new_heads = set(rev(n) for n in heads if n != nullid) | new_heads = set(rev(n) for n in heads if n != nullid) | ||||
roots = [rev(n) for n in roots] | roots = [rev(n) for n in roots] | ||||
# compute the area we need to remove | # compute the area we need to remove |