Commit 4a827e0a authored by Dan Nicolaescu's avatar Dan Nicolaescu

(log-view-vc-backend): Declare for compiler.

(vc-hg-outgoing-mode, vc-hg-incoming-mode): Set
log-view-vc-backend so that diff can work.
parent c66b7ac0
2009-10-05 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hg.el (log-view-vc-backend): Declare for compiler.
(vc-hg-outgoing-mode, vc-hg-incoming-mode): Set
log-view-vc-backend so that diff can work.
* log-view.el (log-view-diff): Use vc-diff-internal instead of
vc-version-diff.
(vc-diff-internal): Autoload this instead of vc-version-diff.
......
......@@ -446,9 +446,15 @@ REV is the revision to check out into WORKFILE."
(defun vc-hg-extra-status-menu () vc-hg-extra-menu-map)
(define-derived-mode vc-hg-outgoing-mode vc-hg-log-view-mode "Hg-Outgoing")
(defvar log-view-vc-backend)
(define-derived-mode vc-hg-incoming-mode vc-hg-log-view-mode "Hg-Incoming")
(define-derived-mode vc-hg-outgoing-mode vc-hg-log-view-mode "Hg-Outgoing"
"Mode for browsing Hg outgoing changes."
(set (make-local-variable 'log-view-vc-backend) 'Hg))
(define-derived-mode vc-hg-incoming-mode vc-hg-log-view-mode "Hg-Incoming"
"Mode for browsing Hg incoming changes."
(set (make-local-variable 'log-view-vc-backend) 'Hg))
(defstruct (vc-hg-extra-fileinfo
(:copier nil)
......@@ -569,14 +575,16 @@ REV is the revision to check out into WORKFILE."
(defun vc-hg-outgoing ()
(interactive)
(let ((bname "*Hg outgoing*") (vc-short-log nil))
(let ((bname "*Hg outgoing*")
(vc-short-log nil))
(vc-hg-command bname 1 nil "outgoing" "-n")
(pop-to-buffer bname)
(vc-hg-outgoing-mode)))
(defun vc-hg-incoming ()
(interactive)
(let ((bname "*Hg incoming*") (vc-short-log nil))
(let ((bname "*Hg incoming*")
(vc-short-log nil))
(vc-hg-command bname 0 nil "incoming" "-n")
(pop-to-buffer bname)
(vc-hg-incoming-mode)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment