#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. from eden.integration.lib import hgrepo from .lib.hg_extension_test_base import EdenHgTestCase, hg_test @hg_test # pyre-ignore[13]: T62487924 class SymlinkTest(EdenHgTestCase): def populate_backing_repo(self, repo: hgrepo.HgRepository) -> None: repo.write_file("contents1", "c1\n") repo.write_file("contents2", "c2\n") repo.symlink("symlink", "contents1") repo.commit("Initial commit.") def test_changed_symlink_shows_up_in_status(self) -> None: self.assert_status_empty() self.repo.symlink("symlink", "contents2") self.assert_status({"symlink": "M"})