tags:

views:

90

answers:

3

I do most development from within emacs, and I use bzr for version control. I infer that c-x v = is equivalent to bzr diff, but it is not clear to me how I can make commits from within emacs, or how various bzr commands map to emacs key bindings. Can anyone suggest the best approach or point me to a tutorial?

A: 

Looks like the DVC mode is what you're after. Sorry, I haven't used it, so I can't tell you anything about it.

Don Kirkby
+3  A: 

C-x v v, or vc-next-action. Take a look at the VC section in the emacs manual

ataylor
+3  A: 

Bazaar bzr command is one of the backend tool managed by VC. Thus you can use all your VC commands to use the bzr backend :

C-x v +     vc-update
C-x v =     ediff-revision
C-x v D     vc-root-diff
C-x v L     vc-print-root-log
C-x v a     vc-update-change-log
C-x v b     vc-switch-backend
C-x v c     vc-rollback
C-x v d     vc-dir
C-x v g     vc-annotate
C-x v h     vc-insert-headers
C-x v i     vc-register
C-x v l     vc-print-log
C-x v m     vc-merge
C-x v r     vc-retrieve-tag
C-x v s     vc-create-tag
C-x v u     vc-revert
C-x v v     vc-next-action
C-x v ~     vc-revision-other-window

I've configured C-x v = to call ediff-revision using the following command in my .emacs :

(eval-after-load "vc-hooks"
         '(define-key vc-prefix-map "=" 'ediff-revision))
Jérôme Radix
@Jérôme: Thanks for the list of VC commands. Is the list something that emacs can generate (with a simple command) or did you have to build it by hand?
unutbu
C-h b to list all keybindings of the current mode of the buffer you're currently in.
Jérôme Radix
@Jérôme: I can't believe how long I've gone without knowing this. Thank you.
unutbu