# HG changeset patch # User Christian Ebert # Date 1171042995 -3600 # Node ID bfea48fbcb88b81b6d95b427dc3730d4bc190998 # Parent 5e9d6c57d679fef38e84111353c2170b05545036 Check repo attrib kwfmatcher in kwfilelog init diff -r 5e9d6c57d679 -r bfea48fbcb88 hgkw/keyword.py --- a/hgkw/keyword.py Fri Feb 09 16:16:22 2007 +0100 +++ b/hgkw/keyword.py Fri Feb 09 18:43:15 2007 +0100 @@ -185,6 +185,7 @@ text=text, user=user, date=date, match=match, force=force, lock=lock, wlock=wlock, force_editor=force_editor, p1=p1, p2=p2, extra=extra) + if node is None: return node @@ -218,7 +219,7 @@ self._repo = repo self._path = path # only init kwtemplater if needed - if not isinstance(repo, int) and repo.kwfmatcher(path): + if hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path): self.kwt = kwtemplater(repo.ui, repo) else: self.kwt = None