From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Hutchings Newsgroups: gmane.emacs.bugs Subject: bug#22032: 24.3; VC doesn't handle hg hidden revisions Date: Fri, 27 Nov 2015 11:36:52 +0000 Message-ID: <56584054.5080100@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448648127 21696 80.91.229.3 (27 Nov 2015 18:15:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 18:15:27 +0000 (UTC) To: 22032@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 27 19:15:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a2NY8-0005dQ-BI for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Nov 2015 19:15:12 +0100 Original-Received: from localhost ([::1]:58085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2NYB-0005QI-37 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Nov 2015 13:15:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2NY6-0005Nn-0x for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 13:15:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2NY2-00077P-O5 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 13:15:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2NY2-00077L-LH for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 13:15:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a2NY2-0006vK-3O for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 13:15:06 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Hutchings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Nov 2015 18:15:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22032 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144864807626527 (code B ref -1); Fri, 27 Nov 2015 18:15:05 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2015 18:14:36 +0000 Original-Received: from localhost ([127.0.0.1]:56437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a2NXX-0006tn-9o for submit@debbugs.gnu.org; Fri, 27 Nov 2015 13:14:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a2HKq-00042c-7y for submit@debbugs.gnu.org; Fri, 27 Nov 2015 06:37:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2HKo-0005nI-GV for submit@debbugs.gnu.org; Fri, 27 Nov 2015 06:37:03 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2HKo-0005nD-DB for submit@debbugs.gnu.org; Fri, 27 Nov 2015 06:37:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2HKk-00042E-72 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 06:37:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2HKh-0005lI-0N for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 06:36:58 -0500 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:37349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2HKg-0005lB-NO for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2015 06:36:54 -0500 Original-Received: by wmww144 with SMTP id w144so54846739wmw.0 for ; Fri, 27 Nov 2015 03:36:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:subject:from:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=ujXeQH2xG2NFkCKs24gSFZY3vBkvX5w3bQ1zuWA0zsI=; b=I1ABwfti3fMbDdveSGII0jbNdSSLS2rZAyBMw0hueCqJ5pBlc5x+XApqCm+rAfmXoL AjYwOCWxhdc0sZE7tJ/gEwJV8GzlsLzt7I83003akzD5wdqktMmr5Ct+FQPYC3qzDune hydTy1h1rjYRayHztkuZAnJZmlgEmtd3vMmN/+IZnuZbbsYkhWUT1ZJkkCxA76v4t8TW NZSIqR2Gk0IBi2j04J0U00BCbNQSYjZ0HGwSKfEMFgx35oagoSNOtvRUjMx6ZdlbdC26 mA6BtDbIzar+uNTsu1qOMGGTXsXvrS6mtQX7MtN8ACjghtYkeew4sATA0Tsms70n/6S/ xSMQ== X-Received: by 10.194.76.41 with SMTP id h9mr17093166wjw.57.1448624213951; Fri, 27 Nov 2015 03:36:53 -0800 (PST) Original-Received: from [192.168.1.5] (cpc19-flit3-2-0-cust141.9-1.cable.virginm.net. [82.9.65.142]) by smtp.googlemail.com with ESMTPSA id z17sm32570248wjq.1.2015.11.27.03.36.53 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Nov 2015 03:36:53 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Fri, 27 Nov 2015 13:14:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109342 Archived-At: In the *vc-change-log* buffer, pressing '=' should display the diff twixt the current and previous revisions. This fails when (1) the HG backend is being used, and (2) the mercurial change history contains hidden revisions. Hidden revisions are a fairly recent mercurial feature. By default, they're not displayed; hg needs a "--hidden" argument to consider them. This makes the changeset numbers non-consecutive. Here's an example: changeset: 2:8ba76001308a tag: tip user: Glenn Hutchings date: Fri Nov 27 11:11:06 2015 +0000 summary: Add a line. changeset: 0:db414dd2e5c1 user: Glenn Hutchings date: Fri Nov 27 11:10:31 2015 +0000 summary: Add file. The lisp function to find the previous rev number (vc-hg-previous-revision) just decrements the current rev by 1. In the example above, doing a diff on changeset 2 would try to use the hidden revision 1 and then mercurial gives an error to the effect of "rev 1 is hidden" (sorry, don't have the exact text to hand). Possible fix: actually move to the previous rev in the buffer, and get the rev number from that. To repeat it: get a mercurial repo with hidden changeset (as above) and try the command with latest mercurial. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Linux Mint 17.2 Rafaela Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_GB locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: Loading 00debian-vars...done Loading /etc/emacs/site-start.d/50a2ps.el (source)...done Loading /etc/emacs/site-start.d/50autoconf.el (source)...done Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)... Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist Loading /etc/emacs/site-start.d/50ledger.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)