##// END OF EJS Templates
transaction: rename find to findoffset and drop backup file support...
Joerg Sonnenberger -
r46482:a6f08085 default
parent child Browse files
Show More
@@ -2000,12 +2000,11 b' class revlog(object):'
2000 2000 ):
2001 2001 return
2002 2002
2003 trinfo = tr.find(self.indexfile)
2004 if trinfo is None:
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