diff -r bd3cb917761a -r 2406dbba49bd mercurial/subrepo.py --- a/mercurial/subrepo.py Fri Mar 31 23:00:41 2017 -0400 +++ b/mercurial/subrepo.py Sat Apr 15 18:05:40 2017 -0400 @@ -444,6 +444,15 @@ self._ctx = ctx self._path = path + def addwebdirpath(self, serverpath, webconf): + """Add the hgwebdir entries for this subrepo, and any of its subrepos. + + ``serverpath`` is the path component of the URL for this repo. + + ``webconf`` is the dictionary of hgwebdir entries. + """ + pass + def storeclean(self, path): """ returns true if the repository has not changed since it was last @@ -651,6 +660,10 @@ self.ui.setconfig('ui', '_usedassubrepo', 'True', 'subrepo') self._initrepo(r, state[0], create) + @annotatesubrepoerror + def addwebdirpath(self, serverpath, webconf): + cmdutil.addwebdirpath(self._repo, subrelpath(self), webconf) + def storeclean(self, path): with self._repo.lock(): return self._storeclean(path)