Bug#675790: "dch -r" refuses to proceed

James McCoy jamessan at debian.org
Sun Jun 3 21:23:18 UTC 2012


On Sun, Jun 03, 2012 at 11:02:06PM +0200, Luk Claes wrote:
> On 06/03/2012 10:20 PM, James McCoy wrote:
> > No. They just run :wq to exit Vim (or whatever's appropriate for their
> > editor) and everything works as expected.  If they don't want to do
> > that, then they set the appropriate configuration options in ~/.devscripts.
> 
> No, it does not, that's the whole point of this bug report. Please try
> $ dch -r
> :wq!
> 
> a.k.a. without changing anything else.

I have tried that.  I do that every time I upload a package.  I also just did
it again in case something was broken in the last upload.  It works.  This
raises the possible failure modes in my other response.

- Editor double-forks, releasing control back to dch before you've done
  anything.  Unless dch is invoking gvim instead of vim for you, this is
  unlikely, but it's easy to check.  Run "dch -r" and then before
  exiting vim, check ps to see if dch is still running.
- The mtime of changelog.dch before and after the editor runs aren't
  different.  This shouldn't happen since the resolution of mtime should
  be fine enough that this can't happen.  So, that leads to the question
  of your Vim configuration.  Try running

     env VISUAL="vim -u NONE -N" dch -r

  and see what happens when you ":wq" with that.

> > It's really not as hard as you're making it out to be.
> 
> So what's exactly wrong in the above way of using it and how is it fixed
> in that case?

I don't know.  Maybe the above will help some.  Either way, if you don't
actually want to review the changelog when you run “dch -r”, then using
one of my alternatives seems easier anyway.

-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20120603/bd65d7df/attachment.pgp>


More information about the devscripts-devel mailing list