Mercurial > hg
comparison mercurial/subrepo.py @ 36205: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 |
comparison
equal
deleted
inserted
replaced
36204:33ed8b511185 | 36205:976e1cfb2f64 |
---|---|
1640 return 1 | 1640 return 1 |
1641 | 1641 |
1642 # TODO: add support for non-plain formatter (see cmdutil.cat()) | 1642 # TODO: add support for non-plain formatter (see cmdutil.cat()) |
1643 for f in match.files(): | 1643 for f in match.files(): |
1644 output = self._gitcommand(["show", "%s:%s" % (rev, f)]) | 1644 output = self._gitcommand(["show", "%s:%s" % (rev, f)]) |
1645 fp = cmdutil.makefileobj(self._subparent, fntemplate, | 1645 fp = cmdutil.makefileobj(self._ctx, fntemplate, |
1646 self._ctx.node(), | |
1647 pathname=self.wvfs.reljoin(prefix, f)) | 1646 pathname=self.wvfs.reljoin(prefix, f)) |
1648 fp.write(output) | 1647 fp.write(output) |
1649 fp.close() | 1648 fp.close() |
1650 return 0 | 1649 return 0 |
1651 | 1650 |