From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brodie Rao Newsgroups: gmane.comp.version-control.mercurial.devel,gmane.emacs.devel Subject: Re: C-x v i bug Date: Thu, 3 Dec 2009 18:42:03 -0500 Message-ID: <1B794147-1B60-4F5B-A972-09C73F8ECB6E@gmail.com> References: <200912031604.nB3G4nU1026058@godzilla.ics.uci.edu> <200912031828.nB3IS3xQ027198@godzilla.ics.uci.edu> <87638naci6.fsf@hbox.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259883749 21887 80.91.229.12 (3 Dec 2009 23:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 23:42:29 +0000 (UTC) Cc: Neal Becker , mercurial-devel@selenic.com, emacs-devel@gnu.org To: Martin Geisler Original-X-From: mercurial-devel-bounces@selenic.com Fri Dec 04 00:42:22 2009 Return-path: Envelope-to: gcvmd-mercurial-devel@gmane.org Original-Received: from waste.org ([173.11.57.241] helo=mail.waste.org) by lo.gmane.org with esmtp (Exim 4.50) id 1NGLJO-0008W6-SP for gcvmd-mercurial-devel@gmane.org; Fri, 04 Dec 2009 00:42:15 +0100 Original-Received: from waste.org (waste.org [173.11.57.241]) by mail.waste.org (Postfix) with ESMTP id 7D24C5C8089; Thu, 3 Dec 2009 17:42:14 -0600 (CST) Original-Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.211.175]) by waste.org (8.14.3/8.14.3/Debian-5) with ESMTP id nB3NgChv024315 for ; Thu, 3 Dec 2009 17:42:12 -0600 Original-Received: by ywh5 with SMTP id 5so1721557ywh.11 for ; Thu, 03 Dec 2009 15:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=kTEvZxQNaYmCV4625Qo5WM6EnE0YvWxNz4IRiPv0jvQ=; b=QJ7jzoN9mM/skAekylE1l3vn3O0POUqC5HwQSD60OGhBOUL0S/2HI93MSUc/ln9xJ7 QbU9lOo26SLY+rtUd54E2cNeq/2VsmcxEABCPAHIRJatdeqdRtxY64Off5qsvQgCxkAR VUPo8xJKhPFxfrhiY4SWbUpxy0i3DAvAnbhaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=f3dMFbNYfjKYmkU2mwbmILhIPyNa8if1Fmxms9drzxeSeYx4W+KR0Lx/HCSm6ZB01D v1ueQg1oP3D7nPKYRbnVc+nF/x0vt95aOxgRiE3qn8RhvmqYDLOeqlyQFyrJH+zNkQKr TUsP178/BTP5xdtA4nD887TgdCWqt/KXlnJoc= Original-Received: by 10.101.144.14 with SMTP id w14mr721861ann.109.1259883726790; Thu, 03 Dec 2009 15:42:06 -0800 (PST) Original-Received: from ?192.168.1.101? (h201.80.117.75.dynamic.ip.windstream.net [75.117.80.201]) by mx.google.com with ESMTPS id 36sm1283485yxh.31.2009.12.03.15.42.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Dec 2009 15:42:05 -0800 (PST) In-Reply-To: <87638naci6.fsf@hbox.dyndns.org> X-Mailer: Apple Mail (2.1077) X-Virus-Scanned: by amavisd-new X-BeenThere: mercurial-devel@selenic.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mercurial-devel-bounces@selenic.com Errors-To: mercurial-devel-bounces@selenic.com Xref: news.gmane.org gmane.comp.version-control.mercurial.devel:27326 gmane.emacs.devel:118216 Archived-At: On Dec 3, 2009, at 6:01 PM, Martin Geisler wrote: > Neal Becker writes: [snip] >> Crossposting to mercurial devel. Anyone have suggestions? My gut >> reaction is to say always use HGRCPATH='', but not really sure. > > That will indeed turn off customizations in ~/.hgrc. But the user will > also lose the ui.username setting which might not be what you want when > you make a commit :-) > > Brodie Rao has been working on an a patch that will allow you to set > HGPLAIN to make Mercurial revert to 'plain' behavior: > > http://bitbucket.org/brodie/mercurial-crew-mq/src/tip/script-mode This patch is still highly experimental. There are some things I need to rework, and it's not really a solution you can use right now because it's against hg itself. Setting HGRCPATH= is one option, but as Martin mentioned, you'll lose all user configuration: their username, ssh settings, diff options, merge settings, enabled extensions, etc. Another option is to run all commands like this: hg --config ui.debug=0 --config ui.quiet=0 --config ui.verbose=0 --config defaults.CMD= CMD You'll also want to set LANG=C and possibly deal with other LC_* envvars. For stderr output, perhaps diverting it to a buffer and ignoring it would be best. That particular extension warning won't change the return code of any command, which I assume is getting checked.