##// END OF EJS Templates
revlog: simplify rawtext return value...
Raphaël Gomès -
r52749:384016e9 default
parent child Browse files
Show More
@@ -1022,7 +1022,7 class _InnerRevlog:
1022 def raw_text(self, node, rev):
1022 def raw_text(self, node, rev):
1023 """return the possibly unvalidated rawtext for a revision
1023 """return the possibly unvalidated rawtext for a revision
1024
1024
1025 returns (rev, rawtext, validated)
1025 returns rawtext
1026 """
1026 """
1027
1027
1028 # revision in the cache (could be useful to apply delta)
1028 # revision in the cache (could be useful to apply delta)
@@ -1063,7 +1063,7 class _InnerRevlog:
1063
1063
1064 rawtext = mdiff.patches(basetext, bins)
1064 rawtext = mdiff.patches(basetext, bins)
1065 del basetext # let us have a chance to free memory early
1065 del basetext # let us have a chance to free memory early
1066 return (rev, rawtext, False)
1066 return rawtext
1067
1067
1068 def sidedata(self, rev, sidedata_end):
1068 def sidedata(self, rev, sidedata_end):
1069 """Return the sidedata for a given revision number."""
1069 """Return the sidedata for a given revision number."""
@@ -2761,7 +2761,8 class revlog:
2761 if rev is None:
2761 if rev is None:
2762 rev = self.rev(node)
2762 rev = self.rev(node)
2763
2763
2764 return self._inner.raw_text(node, rev)
2764 text = self._inner.raw_text(node, rev)
2765 return (rev, text, False)
2765
2766
2766 def _revisiondata(self, nodeorrev, raw=False):
2767 def _revisiondata(self, nodeorrev, raw=False):
2767 # deal with <nodeorrev> argument type
2768 # deal with <nodeorrev> argument type
General Comments 0
You need to be logged in to leave comments. Login now