def verify_hg_status(self, verifier: verify_mod.SnapshotVerifier) -> None: expected_status = { "main/materialized_subdir/script.sh": "M", "main/materialized_subdir/test.c": "M", "main/materialized_subdir/modified_symlink.lnk": "M", "main/materialized_subdir/new_symlink.lnk": "?", "main/materialized_subdir/test/socket.sock": "?", "main/mode_changes/normal_to_exe.txt": "M", "main/mode_changes/exe_to_normal.txt": "M", # We changed the mode on main/mode_changes/normal_to_readonly.txt, # but the change isn't significant to mercurial. "untracked/new/normal.txt": "?", "untracked/new/normal2.txt": "?", "untracked/new/readonly.txt": "?", "untracked/new/subdir/abc.txt": "?", "untracked/new/subdir/xyz.txt": "?", "untracked/executable.exe": "?", "untracked/everybody.sock": "?", "untracked/owner_only.sock": "?", "main/untracked.txt": "?", "main/ignored.txt": "I", "main/untracked_dir/foo.txt": "?", } repo = self.hg_repo(self.checkout_path) verifier.verify_hg_status(repo, expected_status)
def verify_snapshot_data(self, verifier: verify_mod.SnapshotVerifier, eden: edenclient.EdenFS) -> None: # Confirm that `hg status` reports the correct information self.verify_hg_status(verifier) expected_files = self.get_expected_files() verifier.verify_directory(self.checkout_path, expected_files)
def verify_snapshot_data( self, verifier: verify_mod.SnapshotVerifier, eden: edenclient.EdenFS ) -> None: # Confirm that `hg status` reports the correct information self.verify_hg_status(verifier) expected_files = self.get_expected_files() verifier.verify_directory(self.checkout_path, expected_files)