Mercurial > public > mercurial-scm > hg
comparison mercurial/changelog.py @ 16619:bc84a1aeaf5a stable
changelog: ensure that nodecache is valid (issue3428)
This ensures that an out-of-process hook can see an incoming changegroup.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Fri, 11 May 2012 01:55:33 -0700 |
parents | aa6821a7b52f |
children | 62c56c94c77e |
comparison
equal
deleted
inserted
replaced
16611:462dd183bd73 | 16619:bc84a1aeaf5a |
---|---|
151 | 151 |
152 def readpending(self, file): | 152 def readpending(self, file): |
153 r = revlog.revlog(self.opener, file) | 153 r = revlog.revlog(self.opener, file) |
154 self.index = r.index | 154 self.index = r.index |
155 self.nodemap = r.nodemap | 155 self.nodemap = r.nodemap |
156 self._nodecache = r._nodecache | |
156 self._chunkcache = r._chunkcache | 157 self._chunkcache = r._chunkcache |
157 | 158 |
158 def writepending(self): | 159 def writepending(self): |
159 "create a file containing the unfinalized state for pretxnchangegroup" | 160 "create a file containing the unfinalized state for pretxnchangegroup" |
160 if self._delaybuf: | 161 if self._delaybuf: |