Mercurial > hg
diff mercurial/hgweb/webutil.py @ 13971:bfeaa88b875d
move canonpath from util to scmutil
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 20 Apr 2011 21:41:41 +0200 |
parents | 270f57d35525 |
children | 421d56a055fd |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Wed Apr 20 19:54:57 2011 +0200 +++ b/mercurial/hgweb/webutil.py Wed Apr 20 21:41:41 2011 +0200 @@ -7,7 +7,7 @@ # GNU General Public License version 2 or any later version. import os, copy -from mercurial import match, patch, util, error, ui +from mercurial import match, patch, scmutil, error, ui from mercurial.node import hex, nullid def up(p): @@ -127,7 +127,7 @@ def cleanpath(repo, path): path = path.lstrip('/') - return util.canonpath(repo.root, '', path) + return scmutil.canonpath(repo.root, '', path) def changectx(repo, req): changeid = "tip"