Patchwork D10961: rust-dirstate: make the MTIME_UNSET public

login
register
mail settings
Submitter phabricator
Date July 4, 2021, 9:54 p.m.
Message ID <differential-rev-PHID-DREV-oawihsblxaphrme7o7e5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49275/
State Superseded
Headers show

Comments

phabricator - July 4, 2021, 9:54 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We will use it in the cpython layer soon.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10961

AFFECTED FILES
  rust/hg-core/src/dirstate.rs

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/dirstate.rs b/rust/hg-core/src/dirstate.rs
--- a/rust/hg-core/src/dirstate.rs
+++ b/rust/hg-core/src/dirstate.rs
@@ -77,7 +77,7 @@ 
     length: unaligned::I32Be,
 }
 
-const MTIME_UNSET: i32 = -1;
+pub const MTIME_UNSET: i32 = -1;
 
 /// A `DirstateEntry` with a size of `-2` means that it was merged from the
 /// other parent. This allows revert to pick the right status back during a