@staticmethod
    def successfully_commit_files(file_names,
                                  commit="initial_commit",
                                  cwd=TEMP_DIR):
        try:
            shell_out(["hg", "add"] + file_names, cwd=cwd)
            shell_out(["hg", "commit", "-m", commit], cwd=cwd)
            with from_dir(cwd):
                return Hg().current_branch()
        except (__HOLE__, CalledProcessError):
            return False
dataset/ETHPy150Open hayd/pep8radius/tests/util_vcs.py/MixinHg.successfully_commit_files