Mercurial > hg
comparison hgext/convert/hg.py @ 5360:b98c377b3c16
Merge with crew.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 02 Oct 2007 13:49:36 -0700 |
parents | 9c0f864fddca 4fbd27bf04b1 |
children | 8a2915f57dfc |
comparison
equal
deleted
inserted
replaced
5355:efe7ef325737 | 5360:b98c377b3c16 |
---|---|
154 return hex(self.repo.changelog.tip()) | 154 return hex(self.repo.changelog.tip()) |
155 | 155 |
156 class mercurial_source(converter_source): | 156 class mercurial_source(converter_source): |
157 def __init__(self, ui, path, rev=None): | 157 def __init__(self, ui, path, rev=None): |
158 converter_source.__init__(self, ui, path, rev) | 158 converter_source.__init__(self, ui, path, rev) |
159 self.repo = hg.repository(self.ui, path) | 159 try: |
160 self.repo = hg.repository(self.ui, path) | |
161 except: | |
162 raise NoRepo("could not open hg repo %s as source" % path) | |
160 self.lastrev = None | 163 self.lastrev = None |
161 self.lastctx = None | 164 self.lastctx = None |
162 | 165 |
163 def changectx(self, rev): | 166 def changectx(self, rev): |
164 if self.lastrev != rev: | 167 if self.lastrev != rev: |