templatefilters: add new stripdir filter
Adds a new template filter for removing directory levels from a
string. Examples:
{foo|stripdir} -> 'foo'
{foo/bar|stripdir} -> 'foo'
{foo/bar/more|stripdir} -> 'foo/bar'
{foo/bar/more|stripdir|stripdir} -> 'foo'
% inserve
A dir/c
? a
? dir/b
? hg.pid
% moving dir out
% status
! dir/c
? a
? hg.pid
Are we able to kill the service? if not, the service died on some error