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