Colin Watson writes ("Bug#928365: dgit: more helpful error when --quilt=gbp but 
you meant --quilt=dpm?"):
> Source: dgit
> Version: 8.4
> Severity: wishlist
> 
> I did this in one of my packages
> (https://salsa.debian.org/debian/spectemu
> 98b1b3de26fc9e7b5e857eeb5bf83d0d526c4001, if it matters):

Thanks, I will take a look.

> On inspection of the diff I saw that it was basically just a combined
> version of my debian/patches/ and so I was a bit confused for a few
> minutes.  Actually the problem was that I'd retrieved this dgit command
> line with C-r in bash and hadn't completely paid attention to the
> --quilt option there, and this branch uses git-dpm and so is a
> patches-applied branch.
> 
> dgit(1) tells me:
> 
>   If you have a branch like this it is essential to specify the
>   appropriate --quilt= option!  This is because it is not always
>   possible to tell: [...]
> 
> So I dutifully got into the habit of using a --quilt option, and I
> understand that it makes sense for dgit to follow my explicit (if
> incorrect) instruction.  However, in this case it *is* possible to tell,
> at least with good probability: debian/.git-dpm exists, so --quilt=gbp
> was probably a mistake.  Indeed, --quilt=dpm works fine.

dgit already has logic to try to spot when you have passed the wrong
--quilt option and tell you what it thought it maybe should have been.

> I suggest that, at least, it would be helpful for dgit to notice the
> situation where (1) there are quilt differences; (2) --quilt=<something
> other than dpm> was explicitly specified; (3) debian/.git-dpm exists.
> It could then include something in the error message suggesting to the
> user that they should probably omit --quilt= or use --quilt=dpm instead,
> or something along those lines.

This is a useful suggestion.

But also I want to see why the existing quilt mode guessing code
didn't make a useful suggestion in your case.

Thanks,
Ian.

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Reply via email to