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

dirstate-item: replace call to new_possibly_dirty

The constructor is on its way out, so we inline the last relevant call before
dropping it.

Differential Revision: https://phab.mercurial-scm.org/D11604
parent 252d2f3f
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@
if size == FROM_P2:
return cls(wc_tracked=True, p2_info=True)
elif size == NONNORMAL:
return cls.new_possibly_dirty()
return cls(wc_tracked=True, p1_tracked=True)
elif mtime == AMBIGUOUS_TIME:
instance = cls.new_normal(mode, size, 42)
instance._mtime = None
......
......@@ -75,7 +75,11 @@
mtime: None,
}
} else if size == SIZE_NON_NORMAL {
Self::new_possibly_dirty()
Self {
flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
mode_size: None,
mtime: None,
}
} else if mtime == MTIME_UNSET {
Self {
flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
......
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