We are about to change the __init__ for DirstateItem. To make the
transition easier, we move existing caller to DirstateItem.from_v1_data.
The Rust dirstate map will need an overall once the durst settle anyway.
( )
Alphare |
hg-reviewers |
We are about to change the __init__ for DirstateItem. To make the
transition easier, we move existing caller to DirstateItem.from_v1_data.
The Rust dirstate map will need an overall once the durst settle anyway.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/dirstatemap.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
0be8ec049df4 | e2cb7fcd9082 | Pierre-Yves David | Aug 20 2021, 4:35 PM |
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 |
else: | else: | ||||
self.addfile(filename, from_p2=True) | self.addfile(filename, from_p2=True) | ||||
elif not (p1_tracked or p2_tracked) and wc_tracked: | elif not (p1_tracked or p2_tracked) and wc_tracked: | ||||
self.addfile( | self.addfile( | ||||
filename, added=True, possibly_dirty=possibly_dirty | filename, added=True, possibly_dirty=possibly_dirty | ||||
) | ) | ||||
elif (p1_tracked or p2_tracked) and not wc_tracked: | elif (p1_tracked or p2_tracked) and not wc_tracked: | ||||
# XXX might be merged and removed ? | # XXX might be merged and removed ? | ||||
self[filename] = DirstateItem(b'r', 0, 0, 0) | self[filename] = DirstateItem.from_v1_data(b'r', 0, 0, 0) | ||||
self.nonnormalset.add(filename) | self.nonnormalset.add(filename) | ||||
elif clean_p2 and wc_tracked: | elif clean_p2 and wc_tracked: | ||||
if p1_tracked or self.get(filename) is not None: | if p1_tracked or self.get(filename) is not None: | ||||
# XXX the `self.get` call is catching some case in | # XXX the `self.get` call is catching some case in | ||||
# `test-merge-remove.t` where the file is tracked in p1, the | # `test-merge-remove.t` where the file is tracked in p1, the | ||||
# p1_tracked argument is False. | # p1_tracked argument is False. | ||||
# | # | ||||
# In addition, this seems to be a case where the file is marked | # In addition, this seems to be a case where the file is marked |