# HG changeset patch # User Christian Ebert # Date 1184324169 -7200 # Node ID f8e5cafa7b99d8cf35416b7a11f35c2b61a0d646 # Parent c5f655d5d8b451ee9fc9d8b3d5bf68dc87686a90 Change ui inheritance to stay compatible with recent Hg Needed for rollback on interrupted commit. diff -r c5f655d5d8b4 -r f8e5cafa7b99 hgkw/keyword.py --- a/hgkw/keyword.py Fri Jul 13 08:43:39 2007 +0200 +++ b/hgkw/keyword.py Fri Jul 13 12:56:09 2007 +0200 @@ -232,6 +232,7 @@ return kwfmatcher = util.matcher(repo.root, inc=inc, exc=exc)[1] + ui = repo.ui class kwrepo(repo.__class__): ''' @@ -243,7 +244,7 @@ if f[0] == '/': f = f[1:] if kwfmatcher(f): - kwt = kwtemplater(repo.ui, self, path=f) + kwt = kwtemplater(ui, self, path=f) return kwfilelog(self.sopener, f, kwt) else: return filelog.filelog(self.sopener, f) @@ -277,7 +278,7 @@ if not candidates: return node - kwt = kwtemplater(repo.ui, self, node=node) + kwt = kwtemplater(ui, self, node=node) kwt.overwrite(candidates) return node finally: