"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/vclib/__init__.py" between
viewvc-1.1.28.tar.gz and viewvc-1.2.1.tar.gz

About: ViewVC is a browser interface for CVS and Subversion version control repositories.

__init__.py  (viewvc-1.1.28):__init__.py  (viewvc-1.2.1)
skipping to change at line 17 skipping to change at line 17
# distribution or at http://viewvc.org/license-1.html. # distribution or at http://viewvc.org/license-1.html.
# #
# For more information, visit http://viewvc.org/ # For more information, visit http://viewvc.org/
# #
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
"""Version Control lib is an abstract API to access versioning systems """Version Control lib is an abstract API to access versioning systems
such as CVS. such as CVS.
""" """
import string
import types import types
# item types returned by Repository.itemtype(). # item types returned by Repository.itemtype().
FILE = 'FILE' FILE = 'FILE'
DIR = 'DIR' DIR = 'DIR'
# diff types recognized by Repository.rawdiff(). # diff types recognized by Repository.rawdiff().
UNIFIED = 1 UNIFIED = 1
CONTEXT = 2 CONTEXT = 2
SIDE_BY_SIDE = 3 SIDE_BY_SIDE = 3
skipping to change at line 326 skipping to change at line 325
pass pass
class UnsupportedFeature(Error): class UnsupportedFeature(Error):
pass pass
class ItemNotFound(Error): class ItemNotFound(Error):
def __init__(self, path): def __init__(self, path):
# use '/' rather than os.sep because this is for user consumption, and # use '/' rather than os.sep because this is for user consumption, and
# it was defined using URL separators # it was defined using URL separators
if type(path) in (types.TupleType, types.ListType): if type(path) in (types.TupleType, types.ListType):
path = string.join(path, '/') path = '/'.join(path)
Error.__init__(self, path) Error.__init__(self, path)
class InvalidRevision(Error): class InvalidRevision(Error):
def __init__(self, revision=None): def __init__(self, revision=None):
if revision is None: if revision is None:
Error.__init__(self, "Invalid revision") Error.__init__(self, "Invalid revision")
else: else:
Error.__init__(self, "Invalid revision " + str(revision)) Error.__init__(self, "Invalid revision " + str(revision))
class NonTextualFileContents(Error): class NonTextualFileContents(Error):
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)