--- a/hgkw/keyword.py Thu Jun 28 10:15:04 2007 +0200
+++ b/hgkw/keyword.py Fri Jun 29 01:18:49 2007 +0200
@@ -236,10 +236,10 @@
f = f[1:]
# only use kwfilelog when needed
if kwfmatcher(f):
- kwt = kwtemplater(repo.ui, repo, path=f)
- return kwfilelog(repo.sopener, f, kwt)
+ kwt = kwtemplater(repo.ui, self, path=f)
+ return kwfilelog(self.sopener, f, kwt)
else:
- return filelog.filelog(repo.sopener, f)
+ return filelog.filelog(self.sopener, f)
def commit(self, files=None, text="", user=None, date=None,
match=util.always, force=False, lock=None, wlock=None,
@@ -248,10 +248,10 @@
configured files in working directory.'''
wrelease = False
if not wlock:
- wlock = repo.wlock()
+ wlock = self.wlock()
wrelease = True
try:
- removed = repo.status(node1=p1, node2=p2, files=files,
+ removed = self.status(node1=p1, node2=p2, files=files,
match=match, wlock=wlock)[2]
node = super(kwrepo,
@@ -263,14 +263,14 @@
if node is None:
return node
- candidates = repo.changelog.read(node)[3]
+ candidates = self.changelog.read(node)[3]
candidates = [f for f in candidates if kwfmatcher(f)
and f not in removed
and not os.path.islink(self.wjoin(f))]
if not candidates:
return node
- kwt = kwtemplater(repo.ui, repo, node=node)
+ kwt = kwtemplater(repo.ui, self, node=node)
kwt.overwrite(candidates)
return node
finally: