# -*-python-*- # # Copyright (C) 1999-2020 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit http://viewvc.org/ # # ----------------------------------------------------------------------- """This package provides parsing tools for RCS files. To use this package, first create a subclass of Sink. This should declare all the callback methods you care about. Create an instance of your class, and open() the RCS file you want to read. Then call parse() to parse the file. """ # Make the "Sink" class and the various exception classes visible in this # scope. That way, applications never need to import any of the # sub-packages. from common import * try: from tparse import parse except ImportError: try: from texttools import Parser except ImportError: from default import Parser
def fetch_log3(full_name, which_rev=None): sink = FetchSink(which_rev) tparse.parse(full_name, sink) return sink.head, sink.branch, sink.tags, sink.revs
# -*-python-*- # # Copyright (C) 1999-2013 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit http://viewvc.org/ # # ----------------------------------------------------------------------- """This package provides parsing tools for RCS files. To use this package, first create a subclass of Sink. This should declare all the callback methods you care about. Create an instance of your class, and open() the RCS file you want to read. Then call parse() to parse the file. """ # Make the "Sink" class and the various exception classes visible in this # scope. That way, applications never need to import any of the # sub-packages. from common import * try: from tparse import parse except ImportError: try: from texttools import Parser except ImportError: