[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#517635: lintian: should warn about incorrect Vcs-* fields



Frank Lichtenheld <djpig@debian.org> writes:

> I've started working on this one. Here is what I have so far.  The first
> hash contains URIs that look good, the second contains URIs that look
> valid but are for a format which probably requires an account on some
> machine.
>
> my %VCS_RECOMMENDED_URIS = (
>     browser => qr;^https?://;,
>     arch    => qr;^https?://;,
>     bzr     => qr;^(lp:~|(?:nosmart\+)?https?://);
>     cvs     => qr;^:pserver:;,
>     darcs   => qr;^https?://;,
>     hg      => qr;^https?://;,
>     git     => qr;^(git|https?|rsync)://;,
>     svn     => qr;^(svn|(?:svn\+)?https?)://;,
>     mtn     => undef, #XXX
> );

Looks like Monotone doesn't take URLs; instead, it takes a hostname and a
repository name.  See, for instance:

    http://monotone.ca/docs/Synchronising-Databases.html

Something like:

    mtn => qr;^[\w\d.]+\s+\S+$;

looks like the right thing to use.  (The first regex could of course get
more complex in how it matches hostnames.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: