aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2014-02-21 14:23:21 +0000
committerBrian Harring <ferringb@gmail.com>2014-02-21 14:23:21 +0000
commitf83644ffd5f86b82ec33f97e6e0e360157f59e7c (patch)
treea4aff586cae195e0f1e37da5224c43d52f63a1ad /cvs2svn_lib/rcs_revision_manager.py
parentUpdate the config to cvs2svn v2.4.0; no changes in what was defined, just man... (diff)
downloadgit-conversion-tools-f83644ffd5f86b82ec33f97e6e0e360157f59e7c.tar.gz
git-conversion-tools-f83644ffd5f86b82ec33f97e6e0e360157f59e7c.tar.bz2
git-conversion-tools-f83644ffd5f86b82ec33f97e6e0e360157f59e7c.zip
Drop the cvs2svn libs; no longer needed/used
Diffstat (limited to 'cvs2svn_lib/rcs_revision_manager.py')
-rw-r--r--cvs2svn_lib/rcs_revision_manager.py51
1 files changed, 0 insertions, 51 deletions
diff --git a/cvs2svn_lib/rcs_revision_manager.py b/cvs2svn_lib/rcs_revision_manager.py
deleted file mode 100644
index 1c2dfcf..0000000
--- a/cvs2svn_lib/rcs_revision_manager.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# (Be in -*- python -*- mode.)
-#
-# ====================================================================
-# Copyright (c) 2000-2008 CollabNet. All rights reserved.
-#
-# This software is licensed as described in the file COPYING, which
-# you should have received as part of this distribution. The terms
-# are also available at http://subversion.tigris.org/license-1.html.
-# If newer versions of this license are posted there, you may use a
-# newer version instead, at your option.
-#
-# This software consists of voluntary contributions made by many
-# individuals. For exact contribution history, see the revision
-# history and logs, available at http://cvs2svn.tigris.org/.
-# ====================================================================
-
-"""Access the CVS repository via RCS's 'co' command."""
-
-
-from cvs2svn_lib.common import FatalError
-from cvs2svn_lib.process import check_command_runs
-from cvs2svn_lib.process import PipeStream
-from cvs2svn_lib.process import CommandFailedException
-from cvs2svn_lib.revision_manager import RevisionReader
-
-
-class RCSRevisionReader(RevisionReader):
- """A RevisionReader that reads the contents via RCS."""
-
- def __init__(self, co_executable):
- self.co_executable = co_executable
- try:
- check_command_runs([self.co_executable, '-V'], self.co_executable)
- except CommandFailedException, e:
- raise FatalError('%s\n'
- 'Please check that co is installed and in your PATH\n'
- '(it is a part of the RCS software).' % (e,))
-
- def get_content_stream(self, cvs_rev, suppress_keyword_substitution=False):
- pipe_cmd = [
- self.co_executable,
- '-q',
- '-x,v',
- '-p%s' % (cvs_rev.rev,)
- ]
- if suppress_keyword_substitution:
- pipe_cmd.append('-kk')
- pipe_cmd.append(cvs_rev.cvs_file.filename)
- return PipeStream(pipe_cmd)
-
-