[PATCH] journal: new expiremental extension

Yuya Nishihara yuya at tcha.org
Sun Jun 19 10:32:45 EDT 2016


On Fri, 17 Jun 2016 13:03:00 -0700, Durham Goode wrote:
> > +class journalstorage(object):
> > +    def __init__(self, repo):
> > +        self.repo = repo
> > +        self.user = util.getuser()
> > +        if repo.shared():
> > +            self.vfs = scmutil.vfs(repo.sharedpath)
> > +        else:
> > +            self.vfs = repo.vfs  
> Hmm, I wonder how the journal will work with shared working copies.
> Like, we may need to store the '.' reference with information about the
> which working copy was moved.  We can figure that out later.

Perhaps we'd better start without the shared vfs? The sharedpath directory
isn't covered by repo.wlock, so the journal file could be corrupted.


More information about the Mercurial-devel mailing list