# HG changeset patch # User Matt Mackall # Date 1214433268 18000 # Node ID ddb8a222249b2e82d2168bbf72a5bc2e08052bf0 # Parent 2f017ca736ce6b6660cb928bc191d3f409b442aa use repo.changectx rather than context.changectx [ original upstream description ] diff -r 2f017ca736ce -r ddb8a222249b hgkw/keyword.py --- a/hgkw/keyword.py Thu Jun 12 02:27:06 2008 +0200 +++ b/hgkw/keyword.py Wed Jun 25 17:34:28 2008 -0500 @@ -80,7 +80,7 @@ "Log = {desc}" expands to the first line of the changeset description. ''' -from mercurial import commands, cmdutil, context, dispatch, filelog, revlog +from mercurial import commands, cmdutil, dispatch, filelog, revlog from mercurial import patch, localrepo, templater, templatefilters, util from mercurial.hgweb import webcommands from mercurial.node import nullid, hex @@ -144,7 +144,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):