From c7ad2c740a11512f44fe2674482184e7bb5ed5a0 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Sun, 29 Sep 2024 22:36:52 -0400 Subject: [PATCH] Remove support for veracity, fixes #626 --- doorstop/core/vcs/__init__.py | 4 +--- doorstop/core/vcs/veracity.py | 34 ---------------------------------- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 doorstop/core/vcs/veracity.py diff --git a/doorstop/core/vcs/__init__.py b/doorstop/core/vcs/__init__.py index d0c6f13d1..5cc6a417c 100644 --- a/doorstop/core/vcs/__init__.py +++ b/doorstop/core/vcs/__init__.py @@ -2,18 +2,16 @@ """Interfaces to version control systems.""" -import logging import os from doorstop import common from doorstop.common import DoorstopError -from doorstop.core.vcs import git, mercurial, mockvcs, subversion, veracity +from doorstop.core.vcs import git, mercurial, mockvcs, subversion DEFAULT = mockvcs.WorkingCopy DIRECTORIES = { git.WorkingCopy.DIRECTORY: git.WorkingCopy, subversion.WorkingCopy.DIRECTORY: subversion.WorkingCopy, - veracity.WorkingCopy.DIRECTORY: veracity.WorkingCopy, mercurial.WorkingCopy.DIRECTORY: mercurial.WorkingCopy, DEFAULT.DIRECTORY: DEFAULT, } diff --git a/doorstop/core/vcs/veracity.py b/doorstop/core/vcs/veracity.py deleted file mode 100644 index 65518a3e0..000000000 --- a/doorstop/core/vcs/veracity.py +++ /dev/null @@ -1,34 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-only - -"""Plug-in module to store requirements in a Veracity repository.""" - -from doorstop import common -from doorstop.core.vcs.base import BaseWorkingCopy - -log = common.logger(__name__) - - -class WorkingCopy(BaseWorkingCopy): - """Veracity working copy.""" - - DIRECTORY = ".sgdrawer" - IGNORES = (".sgignores", ".vvignores") - - def lock(self, path): - log.debug("`vv` does not support scripted locking: %s", path) - self.call("vv", "pull") - self.call("vv", "update") - - def edit(self, path): - log.info("`vv` adds all changes") - - def add(self, path): - self.call("vv", "add", path) - - def delete(self, path): - self.call("vv", "remove", path) - - def commit(self, message=None): - message = message or input("Commit message: ") - self.call("vv", "commit", "--message", message) - self.call("vv", "push")