From a502543e3957aa4e7bdb40af00d412412318a213 Mon Sep 17 00:00:00 2001 From: Andrea Campi Date: Wed, 13 Mar 2024 07:18:36 -0700 Subject: [PATCH] Add back a trace message Summary: While here, clean up lint warnings in a file I touched in the previous commit. Reviewed By: zzl0 Differential Revision: D54849430 fbshipit-source-id: e19cdbabb428483ab205084832d146ec593b5296 --- eden/integration/hg/update_test.py | 4 ++-- eden/scm/lib/workingcopy/src/workingcopy.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eden/integration/hg/update_test.py b/eden/integration/hg/update_test.py index a90575758ed8f..5c12f128790c7 100755 --- a/eden/integration/hg/update_test.py +++ b/eden/integration/hg/update_test.py @@ -884,7 +884,7 @@ def test_resume_interrupted_update(self) -> None: flags=DIS_ENABLE_FLAGS, sync=SyncBehavior(), ) - inodes = dict((i.path.decode("utf8"), i) for i in inode_status) + inodes = {i.path.decode("utf8"): i for i in inode_status} self.assertNotIn("dir1", inodes) # dir2 will either be not loaded or not materialized. dir2 = next(inode for inode in inodes[""].entries if inode.name == b"dir2") @@ -1085,7 +1085,7 @@ def test_update_change_stat(self) -> None: poststats = os.stat(filepath) self.assertEqual(poststats.st_size, 7) - if sys.platform == "win32": + if sys.platform == "win32": # noqa: C901 def _retry_update_after_failed_entry_cache_invalidation( self, diff --git a/eden/scm/lib/workingcopy/src/workingcopy.rs b/eden/scm/lib/workingcopy/src/workingcopy.rs index 436f0a07cf18f..8c5ad0b7c8b9b 100644 --- a/eden/scm/lib/workingcopy/src/workingcopy.rs +++ b/eden/scm/lib/workingcopy/src/workingcopy.rs @@ -426,6 +426,7 @@ impl WorkingCopy { self.treestate .lock() .set_parents(&mut std::iter::once(&parent))?; + tracing::warn!("repaired eden dirstate: set parent to {}", parent); } None => {