# HG changeset patch # User Christian Ebert # Date 1214822016 -7200 # Node ID 03268523c017a38415f33c377a100aee18e58449 # Parent 509fbcac51c7c2739f0ae4107c898ee996d2cb41 (0.9.2compat) ddb8a222249b is backwards compatible diff -r 509fbcac51c7 -r 03268523c017 hgkw/keyword.py --- a/hgkw/keyword.py Fri Jun 13 17:41:26 2008 +0200 +++ b/hgkw/keyword.py Mon Jun 30 12:33:36 2008 +0200 @@ -85,7 +85,7 @@ Or, better, use bundle/unbundle to share changes. ''' -from mercurial import commands, cmdutil, context, fancyopts, filelog +from mercurial import commands, cmdutil, fancyopts, filelog from mercurial import localrepo, patch, revlog, templater, util from mercurial.node import nullid, hex from mercurial.i18n import gettext as _ @@ -282,7 +282,7 @@ def getnode(self, path, fnode): '''Derives changenode from file path and filenode.''' # used by kwfilelog.read and kwexpand - c = context.filectx(self.repo, path, fileid=fnode) + c = self.repo.filectx(path, fileid=fnode) return c.node() def substitute(self, data, path, node, subfunc):