Skip to content

Commit

Permalink
Add back a trace message
Browse files Browse the repository at this point in the history
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
  • Loading branch information
andreacampi authored and facebook-github-bot committed Mar 13, 2024
1 parent d4a87a6 commit a502543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eden/integration/hg/update_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions eden/scm/lib/workingcopy/src/workingcopy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit a502543

Please sign in to comment.