[PATCH] templatefilters: add new dirname filter
Aleix Conchillo Flaqué
aleix at member.fsf.org
Fri Apr 24 03:33:46 CDT 2009
Dirkjan Ochtman wrote:
> On Fri, Apr 24, 2009 at 10:22, Aleix Conchillo Flaque
> <aleix at member.fsf.org> wrote:
>> # HG changeset patch
>> # User Aleix Conchillo Flaque <aleix at member.fsf.org>
>> # Date 1240561285 -7200
>> # Node ID 58e9ce722255c65d24a039487b40f1d1ffd61149
>> # Parent 441dc7becd4305f3884aab2fcf6f8e51cb547aac
>> templatefilters: add new dirname filter
>
> You should expand a bit more on why you want this (I know there's a
> bit in the docstring, but it's insufficient; and the rationale should
> be in the commit message, anyway).
>
>
We have a web template in Savannah that links to the savannah's project
page, see for example:
http://hg.savannah.gnu.org/hgweb/octave/stable
We are planning to add support for subrepos, and we have in fact added
it for GNU Octave (manually). The problem was that I could not obtain
the savannah's project name (octave) from the repo name (octave/stable)
automatically.
May be it could be done some other way but I did not find how.
Any help really appreciated.
Aleix
More information about the Mercurial-devel
mailing list