Patchwork D11773: rhg: Rename cat_file_is_modified

login
register
mail settings
Submitter phabricator
Date Nov. 23, 2021, 7:11 p.m.
Message ID <differential-rev-PHID-DREV-lah64udcx2nbkm6rjkp7-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50097/
State Superseded
Headers show

Comments

phabricator - Nov. 23, 2021, 7:11 p.m.
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It hasn’t been based on the "cat operation" for some time already.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  rust/rhg/src/commands/status.rs

CHANGE DETAILS




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

Patch

diff --git a/rust/rhg/src/commands/status.rs b/rust/rhg/src/commands/status.rs
--- a/rust/rhg/src/commands/status.rs
+++ b/rust/rhg/src/commands/status.rs
@@ -227,7 +227,7 @@ 
             CommandError::from((e, &*format!("{:x}", p1.short())))
         })?;
         for to_check in ds_status.unsure {
-            if cat_file_is_modified(repo, &manifest, &to_check)? {
+            if unsure_is_modified(repo, &manifest, &to_check)? {
                 if display_states.modified {
                     ds_status.modified.push(to_check);
                 }
@@ -304,7 +304,7 @@ 
 /// to time resolution limits.
 ///
 /// TODO: detect permission bits and similar metadata modifications
-fn cat_file_is_modified(
+fn unsure_is_modified(
     repo: &Repo,
     manifest: &Manifest,
     hg_path: &HgPath,