comparison hgext/convert/common.py @ 5436:b4ae8535f834

convert: add default constructor for converter_sink
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 10 Oct 2007 15:30:00 -0700
parents d0c67b52ac01
children 71e7c86adcb7
comparison
equal deleted inserted replaced
5435:d0c67b52ac01 5436:b4ae8535f834
115 """Conversion sink (target) interface""" 115 """Conversion sink (target) interface"""
116 116
117 def __init__(self, ui, path): 117 def __init__(self, ui, path):
118 """Initialize conversion sink (or raise NoRepo("message") 118 """Initialize conversion sink (or raise NoRepo("message")
119 exception if path is not a valid repository)""" 119 exception if path is not a valid repository)"""
120 raise NotImplementedError() 120 self.path = path
121 self.ui = ui
121 122
122 def getheads(self): 123 def getheads(self):
123 """Return a list of this repository's heads""" 124 """Return a list of this repository's heads"""
124 raise NotImplementedError() 125 raise NotImplementedError()
125 126