D4662: hgweb: use heads() instead of headrevs()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sun Sep 23 06:26:51 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbe0f32ca2671: hgweb: use heads() instead of headrevs() (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4662?vs=11196&id=11288
REVISION DETAIL
https://phab.mercurial-scm.org/D4662
AFFECTED FILES
mercurial/hgweb/webcommands.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -143,7 +143,7 @@
f = fctx.path()
text = fctx.data()
parity = paritygen(web.stripecount)
- ishead = fctx.filerev() in fctx.filelog().headrevs()
+ ishead = fctx.filenode() in fctx.filelog().heads()
if stringutil.binary(text):
mt = mimetypes.guess_type(f)[0] or 'application/octet-stream'
@@ -922,7 +922,7 @@
fctx = webutil.filectx(web.repo, web.req)
f = fctx.path()
parity = paritygen(web.stripecount)
- ishead = fctx.filerev() in fctx.filelog().headrevs()
+ ishead = fctx.filenode() in fctx.filelog().heads()
# parents() is called once per line and several lines likely belong to
# same revision. So it is worth caching.
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list