Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
( )
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/phases.py (2 lines) |
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 |