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:
Jun Wu 2019-02-12 21:39:25 -08:00 committed by Facebook Github Bot
parent 2fa66aa93f
commit 082fcaab0a

View File

@ -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())