Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I commit changes to a bzr branch from within emacs?

Tags:

emacs

bazaar

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?

like image 420
David LeBauer Avatar asked Dec 29 '22 07:12

David LeBauer


2 Answers

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))
like image 130
Jérôme Radix Avatar answered Mar 16 '23 19:03

Jérôme Radix


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

like image 27
ataylor Avatar answered Mar 16 '23 19:03

ataylor