D3073: hgweb: drop support for "manifest" parameter
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Apr 4 14:25:48 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG44f3b60deafb: hgweb: drop support for "manifest" parameter (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3073?vs=7622&id=7629
REVISION DETAIL
https://phab.mercurial-scm.org/D3073
AFFECTED FILES
mercurial/hgweb/webutil.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py
+++ b/mercurial/hgweb/webutil.py
@@ -296,23 +296,15 @@
return pathutil.canonpath(repo.root, '', path)
def changeidctx(repo, changeid):
- try:
- ctx = repo[changeid]
- except error.RepoError:
- man = repo.manifestlog._revlog
- ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
-
- return ctx
+ return repo[changeid]
def changectx(repo, req):
changeid = "tip"
if 'node' in req.qsparams:
changeid = req.qsparams['node']
ipos = changeid.find(':')
if ipos != -1:
changeid = changeid[(ipos + 1):]
- elif 'manifest' in req.qsparams:
- changeid = req.qsparams['manifest']
return changeidctx(repo, changeid)
To: martinvonz, #hg-reviewers, durin42
Cc: durin42, mercurial-devel
More information about the Mercurial-devel
mailing list