User:Sfink/Mercurial
Jump to navigation
Jump to search
qimportbz
- clone http://hg.mozilla.org/users/robarnold_cmu.edu/qimportbz
- put the result into the [extensions] section of your ~/.hgrc
The only documentation I can find says to use it by running
hg qimportbz <bugnum> [options...]
but the version I just pulled does not define a 'qimportbz' command. What does still work is:
hg qimport bz://<bugnum> [options...]
conflicts
qpush creates .rej files with any conflicts.
- Open a .rej file in emacs and do ctrl-c ctrl-c to go to the corresponding source file
- ctrl-c ctrl-a re-attempts the apply (I guess that's useful if you edit the patch's context or something?)
I would like to know my current state with respect to those rejects, so I implemented a "delete-this-file" command in emacs and bound it to Ctrl-C Ctrl-D. That way I can easily nuke the .rej files when I have sucked their guts out.
(defun delete-this-file () "Delete the current buffer's file and close the buffer" (interactive) (if (y-or-n-p "Delete this file and close the buffer?") (progn (delete-file buffer-file-name) (kill-buffer)))) (global-set-key "\C-c\C-d" 'delete-this-file)
This should really be done with a keymap or something, I think. I don't really know elisp.