Mercurial > public > mercurial-scm > hg-stable
diff mercurial/unionrepo.py @ 30743:2df983125d37
revlog: add 'raw' argument to revision and _addrevision
This patch introduces a new 'raw' argument (defaults to False) to revlog's
revision() and _addrevision() methods.
When the 'raw' argument is set to True, it indicates the revision data should be
handled as raw data by the flagprocessor.
Note: Given revlog.addgroup() calls are restricted to changegroup generation, we
can always set raw to True when calling revlog._addrevision() from
revlog.addgroup().
author | Remi Chaintron <remi@fb.com> |
---|---|
date | Thu, 05 Jan 2017 17:16:07 +0000 |
parents | 20a42325fdef |
children | 854f9188e354 |
line wrap: on
line diff
--- a/mercurial/unionrepo.py Tue Jan 10 06:59:49 2017 +0800 +++ b/mercurial/unionrepo.py Thu Jan 05 17:16:07 2017 +0000 @@ -93,7 +93,7 @@ return mdiff.textdiff(self.revision(self.node(rev1)), self.revision(self.node(rev2))) - def revision(self, nodeorrev): + def revision(self, nodeorrev, raw=False): """return an uncompressed revision of a given node or revision number. """