Patchwork D12446: rust-dirstate-entry: fix typo in panic message

login
register
mail settings
Submitter phabricator
Date April 6, 2022, 2:10 p.m.
Message ID <differential-rev-PHID-DREV-qi75mdcvlmvarnb4vnuv-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50792/
State New
Headers show

Comments

phabricator - April 6, 2022, 2:10 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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

CHANGE DETAILS




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

Patch

diff --git a/rust/hg-core/src/dirstate/entry.rs b/rust/hg-core/src/dirstate/entry.rs
--- a/rust/hg-core/src/dirstate/entry.rs
+++ b/rust/hg-core/src/dirstate/entry.rs
@@ -423,7 +423,7 @@ 
     ) {
         if !self.any_tracked() {
             // TODO: return an Option instead?
-            panic!("Accessing v1_state of an untracked DirstateEntry")
+            panic!("Accessing v2_data of an untracked DirstateEntry")
         }
         let wdir_tracked = self.flags.contains(Flags::WDIR_TRACKED);
         let p1_tracked = self.flags.contains(Flags::P1_TRACKED);