annotate lisp/vc-mtn.el @ 80682:c27a65f2849e

(Other Plists): Fix incorrect example. Suggested by Florian Beck.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 05 Aug 2008 20:59:57 +0000
parents 4af0bb174714
children d999f30304bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78791
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
1 ;;; vc-mtn.el --- VC backend for Monotone
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
2
79721
73661ddc7ac7 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78791
diff changeset
3 ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
78791
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
4
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
5 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
6 ;; Keywords:
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
7
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
8 ;; This file is free software; you can redistribute it and/or modify
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
9 ;; it under the terms of the GNU General Public License as published by
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
10 ;; the Free Software Foundation; either version 3, or (at your option)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
11 ;; any later version.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
12
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
13 ;; This file is distributed in the hope that it will be useful,
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
16 ;; GNU General Public License for more details.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
17
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
18 ;; You should have received a copy of the GNU General Public License
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
19 ;; along with GNU Emacs; see the file COPYING. If not, write to
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
20 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
21 ;; Boston, MA 02110-1301, USA.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
22
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
23 ;;; Commentary:
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
24
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
25 ;;
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
26
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
27 ;;; Code:
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
28
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
29 (eval-when-compile (require 'cl) (require 'vc))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
30
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
31 ;; Clear up the cache to force vc-call to check again and discover
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
32 ;; new functions when we reload this file.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
33 (put 'Mtn 'vc-functions nil)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
34
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
35 (defvar vc-mtn-command "mtn")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
36 (unless (executable-find vc-mtn-command)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
37 ;; vc-mtn.el is 100% non-functional without the `mtn' executable.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
38 (setq vc-handled-backends (delq 'Mtn vc-handled-backends)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
39
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
40 ;;;###autoload
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
41 (defconst vc-mtn-admin-dir "_MTN")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
42 ;;;###autoload
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
43 (defconst vc-mtn-admin-format (concat vc-mtn-admin-dir "/format"))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
44
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
45 ;;;###autoload (defun vc-mtn-registered (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
46 ;;;###autoload (if (vc-find-root file vc-mtn-admin-format)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
47 ;;;###autoload (progn
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
48 ;;;###autoload (load "vc-mtn")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
49 ;;;###autoload (vc-mtn-registered file))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
50
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
51 (defun vc-mtn-revision-granularity () 'repository)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
52 (defun vc-mtn-checkout-model (file) 'implicit)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
53
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
54 (defun vc-mtn-root (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
55 (setq file (if (file-directory-p file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
56 (file-name-as-directory file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
57 (file-name-directory file)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
58 (or (vc-file-getprop file 'vc-mtn-root)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
59 (vc-file-setprop file 'vc-mtn-root
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
60 (vc-find-root file vc-mtn-admin-format))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
61
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
62
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
63 (defun vc-mtn-registered (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
64 (let ((root (vc-mtn-root file)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
65 (when root
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
66 (vc-mtn-state file))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
67
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
68 (defun vc-mtn-command (buffer okstatus files &rest flags)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
69 "A wrapper around `vc-do-command' for use in vc-mtn.el."
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
70 (apply 'vc-do-command buffer okstatus vc-mtn-command files flags))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
71
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
72 (defun vc-mtn-state (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
73 ;; If `mtn' fails or returns status>0, or if the search files, just
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
74 ;; return nil.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
75 (ignore-errors
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
76 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
77 (vc-mtn-command t 0 file "status")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
78 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
79 (re-search-forward "^ \\(?:patched \\(.*\\)\\|no changes$\\)")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
80 (if (match-end 1)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
81 'edited
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
82 'up-to-date))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
83
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
84 (defun vc-mtn-workfile-version (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
85 ;; If `mtn' fails or returns status>0, or if the search fails, just
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
86 ;; return nil.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
87 (ignore-errors
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
88 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
89 (vc-mtn-command t 0 file "status")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
90 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
91 (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
92 (match-string 2))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
93
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
94 (defun vc-mtn-workfile-branch (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
95 ;; If `mtn' fails or returns status>0, or if the search files, just
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
96 ;; return nil.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
97 (ignore-errors
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
98 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
99 (vc-mtn-command t 0 file "status")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
100 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
101 (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
102 (match-string 1))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
103
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
104 (defun vc-mtn-workfile-unchanged-p (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
105 (not (eq (vc-mtn-state file) 'edited)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
106
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
107 ;; Mode-line rewrite code copied from vc-arch.el.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
108
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
109 (defcustom vc-mtn-mode-line-rewrite
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
110 '(("\\`[^:/#]*[:/#]" . "")) ;Drop the host part.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
111 "Rewrite rules to shorten Mtn's revision names on the mode-line."
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
112 :type '(repeat (cons regexp string))
80261
4af0bb174714 * textmodes/css-mode.el (css-indent-offset, css-electric-keys):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 79721
diff changeset
113 :version "22.2"
78791
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
114 :group 'vc)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
115
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
116 (defun vc-mtn-mode-line-string (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
117 "Return string for placement in modeline by `vc-mode-line' for FILE."
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
118 (let ((branch (vc-mtn-workfile-branch file)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
119 (dolist (rule vc-mtn-mode-line-rewrite)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
120 (if (string-match (car rule) branch)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
121 (setq branch (replace-match (cdr rule) t nil branch))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
122 (format "Mtn%c%s"
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
123 (case (vc-state file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
124 ((up-to-date needs-patch) ?-)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
125 (added ?@)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
126 (t ?:))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
127 branch)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
128
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
129 (defun vc-mtn-register (files &optional rest)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
130 (vc-mtn-command nil 0 files "add"))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
131
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
132 (defun vc-mtn-responsible-p (file) (vc-mtn-root file))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
133 (defun vc-mtn-could-register (file) (vc-mtn-root file))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
134
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
135 (defun vc-mtn-checkin (files rev comment)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
136 (vc-mtn-command nil 0 files "commit" "-m" comment))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
137
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
138 (defun vc-mtn-find-version (file rev buffer)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
139 (vc-mtn-command buffer 0 file "cat" "-r" rev))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
140
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
141 ;; (defun vc-mtn-checkout (file &optional editable rev)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
142 ;; )
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
143
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
144 (defun vc-mtn-revert (file &optional contents-done)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
145 (unless contents-done
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
146 (vc-mtn-command nil 0 file "revert")))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
147
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
148 ;; (defun vc-mtn-roolback (files)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
149 ;; )
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
150
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
151 (defun vc-mtn-print-log (files &optional buffer)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
152 (vc-mtn-command buffer 0 files "log"))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
153
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
154 (define-derived-mode vc-mtn-log-view-mode log-view-mode "Mtn-Log-View"
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
155 ;; TODO: Not sure what to do about file markers for now.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
156 (set (make-local-variable 'log-view-file-re) "\\'\\`")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
157 ;; TODO: Use a more precise regexp than "[ |/]+" to avoid false positives
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
158 ;; in the ChangeLog text.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
159 (set (make-local-variable 'log-view-message-re)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
160 "^[ |/]+Revision: \\([0-9a-f]+\\)")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
161 (require 'add-log) ;For change-log faces.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
162 (set (make-local-variable 'log-view-font-lock-keywords)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
163 (append log-view-font-lock-keywords
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
164 '(("^[ |]+Author: \\(.*\\)" (1 'change-log-email))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
165 ("^[ |]+Date: \\(.*\\)" (1 'change-log-date-face))))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
166
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
167 ;; (defun vc-mtn-show-log-entry (version)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
168 ;; )
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
169
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
170 (defun vc-mtn-wash-log (file))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
171
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
172 (defalias 'vc-mtn-diff-tree 'vc-mtn-diff)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
173 (defun vc-mtn-diff (files &optional rev1 rev2 buffer)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
174 (apply 'vc-mtn-command (or buffer "*vc-diff*") 1 files "diff"
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
175 (append (if rev1 (list "-r" rev1)) (if rev2 (list "-r" rev2)))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
176
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
177 (defun vc-mtn-annotate-command (file buf &optional rev)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
178 (apply 'vc-mtn-command buf 0 file "annotate"
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
179 (if rev (list "-r" rev))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
180
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
181 (defconst vc-mtn-annotate-full-re
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
182 "^ *\\([0-9a-f]+\\)\\.* by [^ ]+ \\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\): ")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
183 (defconst vc-mtn-annotate-any-re
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
184 (concat "^\\(?: +: \\|" vc-mtn-annotate-full-re "\\)"))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
185
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
186 (defun vc-mtn-annotate-time ()
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
187 (when (looking-at vc-mtn-annotate-any-re)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
188 (goto-char (match-end 0))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
189 (let ((year (match-string 2)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
190 (if (not year)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
191 ;; Look for the date on a previous line.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
192 (save-excursion
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
193 (get-text-property (1- (previous-single-property-change
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
194 (point) 'vc-mtn-time nil (point-min)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
195 'vc-mtn-time))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
196 (let ((time (vc-annotate-convert-time
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
197 (encode-time 0 0 0
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
198 (string-to-number (match-string 4))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
199 (string-to-number (match-string 3))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
200 (string-to-number year)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
201 t))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
202 (let ((inhibit-read-only t)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
203 (inhibit-modification-hooks t))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
204 (put-text-property (match-beginning 0) (match-end 0)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
205 'vc-mtn-time time))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
206 time)))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
207
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
208 (defun vc-mtn-annotate-extract-revision-at-line ()
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
209 (save-excursion
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
210 (when (or (looking-at vc-mtn-annotate-full-re)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
211 (re-search-backward vc-mtn-annotate-full-re nil t))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
212 (match-string 1))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
213
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
214 ;;; Revision completion.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
215
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
216 (defun vc-mtn-list-tags ()
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
217 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
218 (vc-mtn-command t 0 nil "list" "tags")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
219 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
220 (let ((tags ()))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
221 (while (re-search-forward "^[^ ]+" nil t)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
222 (push (match-string 0) tags))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
223 tags)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
224
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
225 (defun vc-mtn-list-branches ()
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
226 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
227 (vc-mtn-command t 0 nil "list" "branches")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
228 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
229 (let ((branches ()))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
230 (while (re-search-forward "^.+" nil t)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
231 (push (match-string 0) branches))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
232 branches)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
233
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
234 (defun vc-mtn-list-revision-ids (prefix)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
235 (with-temp-buffer
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
236 (vc-mtn-command t 0 nil "complete" "revision" prefix)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
237 (goto-char (point-min))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
238 (let ((ids ()))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
239 (while (re-search-forward "^.+" nil t)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
240 (push (match-string 0) ids))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
241 ids)))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
242
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
243 (defun vc-mtn-revision-completion-table (file)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
244 ;; TODO: Implement completion for for selectors
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
245 ;; TODO: Implement completion for composite selectors.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
246 (lexical-let ((file file))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
247 (lambda (string pred action)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
248 (cond
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
249 ;; "Tag" selectors.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
250 ((string-match "\\`t:" string)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
251 (complete-with-action action
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
252 (mapcar (lambda (tag) (concat "t:" tag))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
253 (vc-mtn-list-tags))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
254 string pred))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
255 ;; "Branch" selectors.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
256 ((string-match "\\`b:" string)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
257 (complete-with-action action
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
258 (mapcar (lambda (tag) (concat "b:" tag))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
259 (vc-mtn-list-branches))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
260 string pred))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
261 ;; "Head" selectors. Not sure how they differ from "branch" selectors.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
262 ((string-match "\\`h:" string)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
263 (complete-with-action action
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
264 (mapcar (lambda (tag) (concat "h:" tag))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
265 (vc-mtn-list-branches))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
266 string pred))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
267 ;; "ID" selectors.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
268 ((string-match "\\`i:" string)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
269 (complete-with-action action
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
270 (mapcar (lambda (tag) (concat "i:" tag))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
271 (vc-mtn-list-revision-ids
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
272 (substring string (match-end 0))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
273 string pred))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
274 (t
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
275 (complete-with-action action
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
276 '("t:" "b:" "h:" "i:"
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
277 ;; Completion not implemented for these.
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
278 "a:" "c:" "d:" "e:" "l:")
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
279 string pred))))))
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
280
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
281
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
282
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
283 (provide 'vc-mtn)
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
284
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
285 ;; arch-tag: 2b89ffbc-cbb8-405a-9080-2eafd4becb70
60dfb3143910 Add vc-mtn.el.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff changeset
286 ;;; vc-mtn.el ends here