[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v
From: |
Sam Steingold |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v |
Date: |
Wed, 04 Jun 2008 14:04:29 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Sam Steingold <sds> 08/06/04 14:04:29
Index: vc-hg.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc-hg.el,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -b -r1.78 -r1.79
--- vc-hg.el 18 May 2008 22:43:24 -0000 1.78
+++ vc-hg.el 4 Jun 2008 14:04:28 -0000 1.79
@@ -498,6 +498,26 @@
(vc-exec-after
`(vc-hg-after-dir-status (quote ,update-function))))
+(defun vc-hg-status-extra-header (name &rest commands)
+ (concat (propertize name 'face 'font-lock-type-face)
+ (propertize
+ (with-temp-buffer
+ (apply 'vc-hg-command (current-buffer) 0 nil commands)
+ (buffer-substring-no-properties (point-min) (1- (point-max))))
+ 'face 'font-lock-variable-name-face)))
+
+(defun vc-hg-status-extra-headers (dir)
+ "Generate extra status headers for a Mercurial tree."
+ (let ((default-directory dir))
+ (concat
+ (vc-hg-status-extra-header "Root : " "root") "\n"
+ (vc-hg-status-extra-header "Branch : " "id" "-b") "\n"
+ (vc-hg-status-extra-header "Tags : " "id" "-t") ; "\n"
+ ;; these change after each commit
+ ;; (vc-hg-status-extra-header "Local num : " "id" "-n") "\n"
+ ;; (vc-hg-status-extra-header "Global id : " "id" "-i")
+ )))
+
;; XXX this adds another top level menu, instead figure out how to
;; replace the Log-View menu.
(easy-menu-define log-view-mode-menu vc-hg-outgoing-mode-map
- [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v,
Sam Steingold <=
- [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v, Dan Nicolaescu, 2008/06/15
- [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v, Dan Nicolaescu, 2008/06/23
- [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v, Dan Nicolaescu, 2008/06/25
- [Emacs-diffs] Changes to emacs/lisp/vc-hg.el,v, Glenn Morris, 2008/06/26