Patchwork D3073: hgweb: drop support for "manifest" parameter

login
register
mail settings
Submitter phabricator
Date April 4, 2018, 6:25 p.m.
Message ID <0018c9e303f49eaebf164bf5927af5a9@localhost.localdomain>
Download mbox | patch
Permalink /patch/30269/
State Not Applicable
Headers show

Comments

phabricator - April 4, 2018, 6:25 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG44f3b60deafb: hgweb: drop support for &quot;manifest&quot; 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




To: martinvonz, #hg-reviewers, durin42
Cc: durin42, mercurial-devel

Patch

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)