mercurial/changelog.py
changeset 47391 9d9eb22b9b69
parent 47389 659a452ee263
child 47431 e0a314bcbc9d
equal deleted inserted replaced
47390:fec306b05328 47391:9d9eb22b9b69
   525 
   525 
   526         Unless you need to access all fields, consider calling
   526         Unless you need to access all fields, consider calling
   527         ``changelogrevision`` instead, as it is faster for partial object
   527         ``changelogrevision`` instead, as it is faster for partial object
   528         access.
   528         access.
   529         """
   529         """
   530         d = self._revisiondata(nodeorrev)[0]
   530         d = self._revisiondata(nodeorrev)
   531         sidedata = self.sidedata(nodeorrev)
   531         sidedata = self.sidedata(nodeorrev)
   532         copy_sd = self._copiesstorage == b'changeset-sidedata'
   532         copy_sd = self._copiesstorage == b'changeset-sidedata'
   533         c = changelogrevision(self, d, sidedata, copy_sd)
   533         c = changelogrevision(self, d, sidedata, copy_sd)
   534         return (c.manifest, c.user, c.date, c.files, c.description, c.extra)
   534         return (c.manifest, c.user, c.date, c.files, c.description, c.extra)
   535 
   535 
   536     def changelogrevision(self, nodeorrev):
   536     def changelogrevision(self, nodeorrev):
   537         """Obtain a ``changelogrevision`` for a node or revision."""
   537         """Obtain a ``changelogrevision`` for a node or revision."""
   538         text = self._revisiondata(nodeorrev)[0]
   538         text = self._revisiondata(nodeorrev)
   539         sidedata = self.sidedata(nodeorrev)
   539         sidedata = self.sidedata(nodeorrev)
   540         return changelogrevision(
   540         return changelogrevision(
   541             self, text, sidedata, self._copiesstorage == b'changeset-sidedata'
   541             self, text, sidedata, self._copiesstorage == b'changeset-sidedata'
   542         )
   542         )
   543 
   543