comparison hgext/convert/common.py @ 8444:057e96fe2955

convert: improve docstrings, comments.
author Greg Ward <greg-hg@gerg.ca>
date Sat, 16 May 2009 14:15:58 -0400
parents 1b60efdb8bc5
children 284fda4cd093
comparison
equal deleted inserted replaced
8443:53ff4a5af284 8444:057e96fe2955
73 """Return a list of this repository's heads""" 73 """Return a list of this repository's heads"""
74 raise NotImplementedError() 74 raise NotImplementedError()
75 75
76 def getfile(self, name, rev): 76 def getfile(self, name, rev):
77 """Return file contents as a string. rev is the identifier returned 77 """Return file contents as a string. rev is the identifier returned
78 by a previous call to getchanges(). 78 by a previous call to getchanges(). Raise IOError to indicate that
79 name was deleted in rev.
79 """ 80 """
80 raise NotImplementedError() 81 raise NotImplementedError()
81 82
82 def getmode(self, name, rev): 83 def getmode(self, name, rev):
83 """Return file mode, eg. '', 'x', or 'l'. rev is the identifier 84 """Return file mode, eg. '', 'x', or 'l'. rev is the identifier
87 88
88 def getchanges(self, version): 89 def getchanges(self, version):
89 """Returns a tuple of (files, copies). 90 """Returns a tuple of (files, copies).
90 91
91 files is a sorted list of (filename, id) tuples for all files 92 files is a sorted list of (filename, id) tuples for all files
92 changed between version and it's first parent returned by 93 changed between version and its first parent returned by
93 getcommit(). id is the source revision id of the file. 94 getcommit(). id is the source revision id of the file.
94 95
95 copies is a dictionary of dest: source 96 copies is a dictionary of dest: source
96 """ 97 """
97 raise NotImplementedError() 98 raise NotImplementedError()