[PATCH 3 of 5] localrepo: add memcommit() to commit without working directory
pmezard at gmail.com
Sat Jun 14 09:45:29 CDT 2008
Matt Mackall a écrit :
> Seems unfortunate to introduce a whole new type for this when we have
> something that's almost what's wanted.
> Here's another approach: let's make commit take a context and then
> invent a new sort of context that we'd call a memctx. A memctx would be
> a subclass of a regular ctx with the ability to overlay various bits of
> it (parents, branch names, file flags and contents).
Trying use filectx() instead of filelog, I hit workingfilectx.renamed():
rp = self._repopath
if rp == self._path:
return rp, self._changectx._parents._manifest.get(rp, nullid)
Shouldn't we talk to the dirstate instead, returning self._repo.dirstate.copied(rp) or something like that ?
More information about the Mercurial-devel