开发者

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

开发者 https://www.devze.com 2023-01-16 17:54 出处:网络
I do most de开发者_如何学JAVAvelopment 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 withi

I do most de开发者_如何学JAVAvelopment 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?


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))


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号