mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
Remove tests about hg branches
Summary: Branches are going away. Remove the use of them. Reviewed By: strager Differential Revision: D14062107 fbshipit-source-id: 00f6d3666eb3cb6900cd570fa3fcf12ba75c2ae0
This commit is contained in:
parent
2fa66aa93f
commit
082fcaab0a
@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
#
|
|
||||||
# Copyright (c) 2016-present, Facebook, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This source code is licensed under the BSD-style license found in the
|
|
||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
|
|
||||||
from eden.integration.lib import hgrepo
|
|
||||||
|
|
||||||
from .lib.hg_extension_test_base import EdenHgTestCase, hg_test
|
|
||||||
|
|
||||||
|
|
||||||
@hg_test
|
|
||||||
class BranchTest(EdenHgTestCase):
|
|
||||||
def populate_backing_repo(self, repo: hgrepo.HgRepository) -> None:
|
|
||||||
repo.write_file("a_file.txt", "")
|
|
||||||
repo.commit("first commit")
|
|
||||||
|
|
||||||
def test_set_branch(self) -> None:
|
|
||||||
original_branch = self.hg("branch")
|
|
||||||
self.assertEqual("default", original_branch.rstrip())
|
|
||||||
|
|
||||||
self.hg("branch", "foo-bar")
|
|
||||||
new_branch = self.hg("branch")
|
|
||||||
self.assertEqual("foo-bar", new_branch.rstrip())
|
|
Loading…
Reference in New Issue
Block a user