# HG changeset patch # User Miles Bader # Date 1186117761 0 # Node ID 27f00e50116a2366544e50c9029b33e4eb41f969 # Parent d85da03a88cb4cdcc75a4540d9d3aa71ebae2957 Change capitalization of VC backend names for new backends Revision: emacs@sv.gnu.org/emacs--rel--22--patch-87 diff -r d85da03a88cb -r 27f00e50116a lisp/ChangeLog --- a/lisp/ChangeLog Fri Aug 03 03:39:09 2007 +0000 +++ b/lisp/ChangeLog Fri Aug 03 05:09:21 2007 +0000 @@ -1,3 +1,14 @@ +2007-08-03 Miles Bader + + * vc-hooks.el (vc-handled-backends): Change capitalization of VC + backend names for new backends to `Git', `Hg', and `Bzr'. + * vc-hg.el (vc-hg-dired-state-info): Use `Hg' as VC backend name, + not `HG'. + * vc-git.el (vc-git-dired-state-info): Use `Git' as VC backend + name, not `GIT'. + * vc-bzr.el (vc-bzr-dir-state, vc-bzr-dired-state-info) + (vc-bzr-unload-hook): Use `Bzr' as VC backend name, not `BZR'. + 2007-08-03 Glenn Morris * net/telnet.el (telnet-mode): Set comint-use-prompt-regexp to t. diff -r d85da03a88cb -r 27f00e50116a lisp/vc-bzr.el Binary file lisp/vc-bzr.el has changed diff -r d85da03a88cb -r 27f00e50116a lisp/vc-git.el --- a/lisp/vc-git.el Fri Aug 03 03:39:09 2007 +0000 +++ b/lisp/vc-git.el Fri Aug 03 05:09:21 2007 +0000 @@ -30,11 +30,11 @@ ;;; Installation: -;; To install: put this file on the load-path and add GIT to the list +;; To install: put this file on the load-path and add Git to the list ;; of supported backends in `vc-handled-backends'; the following line, ;; placed in your ~/.emacs, will accomplish this: ;; -;; (add-to-list 'vc-handled-backends 'GIT) +;; (add-to-list 'vc-handled-backends 'Git) ;;; Todo: ;; - check if more functions could use vc-git-command instead @@ -214,12 +214,12 @@ (if (eq git-state 'edited) "(modified)" ;; fall back to the default VC representation - (vc-default-dired-state-info 'GIT file)))) + (vc-default-dired-state-info 'Git file)))) ;;; STATE-CHANGING FUNCTIONS (defun vc-git-create-repo () - "Create a new GIT repository." + "Create a new Git repository." (vc-git-command "init" nil 0 nil)) (defun vc-git-register (files &optional rev comment) @@ -287,7 +287,7 @@ (defvar log-view-file-re) (defvar log-view-font-lock-keywords) -(define-derived-mode vc-git-log-view-mode log-view-mode "GIT-Log-View" +(define-derived-mode vc-git-log-view-mode log-view-mode "Git-Log-View" (require 'add-log) ;; we need the faces add-log ;; Don't have file markers, so use impossible regexp. (set (make-local-variable 'log-view-file-re) "^File:[ \t]+\\(.+\\)") diff -r d85da03a88cb -r 27f00e50116a lisp/vc-hg.el --- a/lisp/vc-hg.el Fri Aug 03 03:39:09 2007 +0000 +++ b/lisp/vc-hg.el Fri Aug 03 05:09:21 2007 +0000 @@ -245,7 +245,7 @@ (defvar log-view-file-re) (defvar log-view-font-lock-keywords) -(define-derived-mode vc-hg-log-view-mode log-view-mode "HG-Log-View" +(define-derived-mode vc-hg-log-view-mode log-view-mode "Hg-Log-View" (require 'add-log) ;; we need the faces add-log ;; Don't have file markers, so use impossible regexp. (set (make-local-variable 'log-view-file-re) "^File:[ \t]+\\(.+\\)") @@ -383,7 +383,7 @@ ;; (vc-hg-command nil nil file "remove")) (defun vc-hg-checkin (file rev comment) - "HG-specific version of `vc-backend-checkin'. + "Hg-specific version of `vc-backend-checkin'. REV is ignored." (vc-hg-command nil 0 file "commit" "-m" comment)) @@ -420,7 +420,7 @@ (if (equal (vc-workfile-version file) "0") "(added)" "(modified)") ;; fall back to the default VC representation - (vc-default-dired-state-info 'HG file)))) + (vc-default-dired-state-info 'Hg file)))) ;; Modelled after the similar function in vc-bzr.el (defun vc-hg-revert (file &optional contents-done) diff -r d85da03a88cb -r 27f00e50116a lisp/vc-hooks.el --- a/lisp/vc-hooks.el Fri Aug 03 03:39:09 2007 +0000 +++ b/lisp/vc-hooks.el Fri Aug 03 05:09:21 2007 +0000 @@ -62,9 +62,9 @@ :type 'regexp :group 'vc) -(defcustom vc-handled-backends '(RCS CVS SVN SCCS GIT HG BZR Arch MCVS) - ;; GIT, HG, Arch and MCVS come last because they are per-tree rather - ;; than per-dir. +(defcustom vc-handled-backends '(RCS CVS SVN SCCS Bzr Git Hg Arch MCVS) + ;; Bzr, Git, Hg, Arch and MCVS come last because they are per-tree + ;; rather than per-dir. "*List of version control backends for which VC will be used. Entries in this list will be tried in order to determine whether a file is under that sort of version control.