Show More
@@ -2000,12 +2000,11 b' class revlog(object):' | |||||
2000 | ): |
|
2000 | ): | |
2001 | return |
|
2001 | return | |
2002 |
|
2002 | |||
2003 |
tr |
|
2003 | troffset = tr.findoffset(self.indexfile) | |
2004 |
if tr |
|
2004 | if troffset is None: | |
2005 | raise error.RevlogError( |
|
2005 | raise error.RevlogError( | |
2006 | _(b"%s not found in the transaction") % self.indexfile |
|
2006 | _(b"%s not found in the transaction") % self.indexfile | |
2007 | ) |
|
2007 | ) | |
2008 | troffset = trinfo[1] |
|
|||
2009 | trindex = 0 |
|
2008 | trindex = 0 | |
2010 | tr.add(self.datafile, 0) |
|
2009 | tr.add(self.datafile, 0) | |
2011 |
|
2010 |
@@ -395,11 +395,9 b' class transaction(util.transactional):' | |||||
395 | return any |
|
395 | return any | |
396 |
|
396 | |||
397 | @active |
|
397 | @active | |
398 | def find(self, file): |
|
398 | def findoffset(self, file): | |
399 | if file in self._map: |
|
399 | if file in self._map: | |
400 | return self._entries[self._map[file]] |
|
400 | return self._entries[self._map[file]][1] | |
401 | if file in self._backupmap: |
|
|||
402 | return self._backupentries[self._backupmap[file]] |
|
|||
403 | return None |
|
401 | return None | |
404 |
|
402 | |||
405 | @active |
|
403 | @active |
General Comments 0
You need to be logged in to leave comments.
Login now