mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
4c76d686a8
Summary: Automatic upgrade to remove `version` override and silence errors. Reviewed By: grievejia Differential Revision: D17956249 fbshipit-source-id: d5c8b5aa73151b3fea67aec35d70f332030da2c9
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
#!/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-fixme[13]: Attribute `backing_repo` is never initialized.
|
|
# pyre-fixme[13]: Attribute `backing_repo_name` is never initialized.
|
|
# pyre-fixme[13]: Attribute `config_variant_name` is never initialized.
|
|
# pyre-fixme[13]: Attribute `repo` is never initialized.
|
|
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"})
|