Mercurial > hg-stable
diff mercurial/subrepo.py @ 36243:976e1cfb2f64
cmdutil: pass ctx to makefileobj() in place of repo/node pair (API)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 02 Apr 2015 23:28:16 +0900 |
parents | b72c6ff4e4c0 |
children | 1df7e7b8558e |
line wrap: on
line diff
--- a/mercurial/subrepo.py Thu Apr 02 23:32:28 2015 +0900 +++ b/mercurial/subrepo.py Thu Apr 02 23:28:16 2015 +0900 @@ -1642,8 +1642,7 @@ # TODO: add support for non-plain formatter (see cmdutil.cat()) for f in match.files(): output = self._gitcommand(["show", "%s:%s" % (rev, f)]) - fp = cmdutil.makefileobj(self._subparent, fntemplate, - self._ctx.node(), + fp = cmdutil.makefileobj(self._ctx, fntemplate, pathname=self.wvfs.reljoin(prefix, f)) fp.write(output) fp.close()