##// END OF EJS Templates
revlog: change addrawrevision to return the revision...
Joerg Sonnenberger -
r47257:9ee4e988 default
parent child Browse files
Show More
@@ -2112,7 +2112,7 b' class revlog(object):'
2112 if validatehash:
2112 if validatehash:
2113 self.checkhash(rawtext, node, p1=p1, p2=p2)
2113 self.checkhash(rawtext, node, p1=p1, p2=p2)
2114
2114
2115 return self.addrawrevision(
2115 rev = self.addrawrevision(
2116 rawtext,
2116 rawtext,
2117 transaction,
2117 transaction,
2118 link,
2118 link,
@@ -2123,6 +2123,7 b' class revlog(object):'
2123 cachedelta=cachedelta,
2123 cachedelta=cachedelta,
2124 deltacomputer=deltacomputer,
2124 deltacomputer=deltacomputer,
2125 )
2125 )
2126 return node
2126
2127
2127 def addrawrevision(
2128 def addrawrevision(
2128 self,
2129 self,
@@ -2145,7 +2146,7 b' class revlog(object):'
2145 dfh = self._datafp(b"a+")
2146 dfh = self._datafp(b"a+")
2146 ifh = self._indexfp(b"a+")
2147 ifh = self._indexfp(b"a+")
2147 try:
2148 try:
2148 self._addrevision(
2149 return self._addrevision(
2149 node,
2150 node,
2150 rawtext,
2151 rawtext,
2151 transaction,
2152 transaction,
@@ -2158,7 +2159,6 b' class revlog(object):'
2158 dfh,
2159 dfh,
2159 deltacomputer=deltacomputer,
2160 deltacomputer=deltacomputer,
2160 )
2161 )
2161 return node
2162 finally:
2162 finally:
2163 if dfh:
2163 if dfh:
2164 dfh.close()
2164 dfh.close()
General Comments 0
You need to be logged in to leave comments. Login now