From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2964: marked as done (vc-dir support for vc-mtn.el) Date: Wed, 26 Aug 2009 18:40:09 +0000 Message-ID: References: <200908261835.n7QIZMTP023389@godzilla.ics.uci.edu> <200904111531.n3BFVmsM012824@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1251312009-16241-0" X-Trace: ger.gmane.org 1251314771 12477 80.91.229.12 (26 Aug 2009 19:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 19:26:11 +0000 (UTC) To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 21:26:04 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgO89-00025E-F4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 21:26:01 +0200 Original-Received: from localhost ([127.0.0.1]:44806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgO88-0007vZ-Q3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 15:26:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgNWS-000097-FE for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2009 14:47:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgNWM-0008VA-JK for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2009 14:47:04 -0400 Original-Received: from [199.232.76.173] (port=54711 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgNWM-0008V2-BD for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2009 14:46:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36975) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgNWL-00011y-ID for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2009 14:46:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7QIkrIK017784; Wed, 26 Aug 2009 11:46:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7QIe9Kr016295; Wed, 26 Aug 2009 11:40:09 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2964 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30591 Archived-At: This is a multi-part message in MIME format... ------------=_1251312009-16241-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 26 Aug 2009 11:35:22 -0700 (PDT) with message-id <200908261835.n7QIZMTP023389@godzilla.ics.uci.edu> and subject line Re: bug#2964: vc-dir support for vc-mtn.el has caused the Emacs bug report #2964, regarding vc-dir support for vc-mtn.el to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2964: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2964 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1251312009-16241-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1251312009-16241-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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@emacsbugs.donarmstrong.com 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. ------------=_1251312009-16241-0--