Bug#920314: lintian: vcs-field-has-unexpected-spaces has false positives
tags 920314 + moreinfo
thanks
Hi Jeremy,
> In particular, -b or --branch should be allowed
Curiously, Policy only permits "-b" (ie. not "--branch") in the
case of Vcs-Git. I infer that no other combination (eg. "--branch"
with Vcs-Hg is strictly legal Policy-wise.
To quote §5.6.26:
In the case of Git, the value consists of a URL, optionally
followed by the word -b and the name of a branch in the
indicated repository.
-- https://www.debian.org/doc/debian-policy/ch-controlfields.html#version-control-system-vcs-fields
Two questions:
* Can you confirm that "hg clone <url> -b foo" works? If so, we
should update Policy to (at least) also permit "-b branchname"
or "[branchname]" for Mercurial repos.
* Should we also petition for "--branch" to be in Policy too? I
don't see much value in that as, aesthetically, I prefer the
"[branchname]" syntax.
(Lintian can be updated orthogonal to all this, just tagging as
moreinfo so we don't end up reverting/changing this later.)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org 🍥 chris-lamb.co.uk
`-
Reply to: