From unknown Fri Jun 20 07:11:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2964 <2964@debbugs.gnu.org> To: bug#2964 <2964@debbugs.gnu.org> Subject: Status: vc-dir support for vc-mtn.el Reply-To: bug#2964 <2964@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:50 +0000 retitle 2964 vc-dir support for vc-mtn.el reassign 2964 emacs submitter 2964 Dan Nicolaescu severity 2964 normal thanks From dann@godzilla.ics.uci.edu Sat Apr 11 08:33:41 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Apr 2009 15:33:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=MURPHY_DRUGS_REL8, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3BFXc6g030965 for ; Sat, 11 Apr 2009 08:33:39 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsfD7-00025d-Uh for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2009 11:33:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsfD2-000244-K2 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2009 11:33:36 -0400 Received: from [199.232.76.173] (port=41261 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsfD2-000241-C4 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2009 11:33:32 -0400 Received: from sallyv2.ics.uci.edu ([128.195.1.120]:50951) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LsfD1-0003Vr-TU for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2009 11:33:32 -0400 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n3BFVnOE005164 for ; Sat, 11 Apr 2009 08:31:49 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n3BFVmsM012824; Sat, 11 Apr 2009 08:31:48 -0700 (PDT) Date: Sat, 11 Apr 2009 08:31:48 -0700 (PDT) Message-Id: <200904111531.n3BFVmsM012824@godzilla.ics.uci.edu> From: Dan Nicolaescu To: bug-gnu-emacs Subject: vc-dir support for vc-mtn.el X-Debbugs-No-Ack: yes Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n3BFVnOE005164 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) vc-mtn.el does not support vc-dir. The patch below adds that support. It reuses some regexps from elsewhere in the file. Archiving here so that it can be applied whenever it's acceptable. Index: vc-mtn.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/vc-mtn.el,v retrieving revision 1.23 diff -u -3 -p -c -r1.23 vc-mtn.el cvs diff: conflicting specifications of output style *** vc-mtn.el 1 Apr 2009 20:01:19 -0000 1.23 --- vc-mtn.el 11 Apr 2009 07:44:39 -0000 *************** If nil, use the value of `vc-diff-switch *** 106,111 **** --- 106,126 ---- ((match-end 2) 'added) (t 'up-to-date))))) + (defun vc-mtn-after-dir-status (update-function) + (let (result) + (goto-char (point-min)) + (re-search-forward "Current branch: \\(.*\\)\nChanges against parent \\(.*\\)" nil t) + (while (re-search-forward + "^ \\(?:\\(patched \\)\\|\\(added \\)\\)\\(.*\\)$" nil t) + (cond ((match-end 1) (push (list (match-string 3) 'edited) result)) + ((match-end 2) (push (list (match-string 3) 'added) result)))) + (funcall update-function result))) + + (defun vc-mtn-dir-status (dir update-function) + (vc-mtn-command (current-buffer) 'async dir "status") + (vc-exec-after + `(vc-mtn-after-dir-status (quote ,update-function)))) + (defun vc-mtn-working-revision (file) ;; If `mtn' fails or returns status>0, or if the search fails, just ;; return nil. From dann@godzilla.ics.uci.edu Wed Aug 26 11:35:43 2009 Received: (at 2964-done) by emacsbugs.donarmstrong.com; 26 Aug 2009 18:35:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7QIZgW1015371 for <2964-done@emacsbugs.donarmstrong.com>; Wed, 26 Aug 2009 11:35:43 -0700 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n7QIZMRd018215 for <2964-done@emacsbugs.donarmstrong.com>; Wed, 26 Aug 2009 11:35:22 -0700 (PDT) Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n7QIZMTP023389; Wed, 26 Aug 2009 11:35:22 -0700 (PDT) Date: Wed, 26 Aug 2009 11:35:22 -0700 (PDT) Message-Id: <200908261835.n7QIZMTP023389@godzilla.ics.uci.edu> From: Dan Nicolaescu To: 2964-done@debbugs.gnu.org Subject: Re: bug#2964: vc-dir support for vc-mtn.el References: <200904111531.n3BFVmsM012824@godzilla.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: <200904111531.n3BFVmsM012824@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sat, 11 Apr 2009 08:31:48 -0700 (PDT)") Lines: 1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n7QIZMRd018215 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Closing, the patch has been checked in a while ago. From unknown Fri Jun 20 07:11:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Sep 2009 14:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator