From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel,gmane.comp.version-control.mercurial.devel Subject: Re: C-x v i bug Date: Thu, 3 Dec 2009 21:34:46 -0800 (PST) Message-ID: <200912040534.nB45YkG6002638@godzilla.ics.uci.edu> References: <200912031604.nB3G4nU1026058@godzilla.ics.uci.edu> <200912031828.nB3IS3xQ027198@godzilla.ics.uci.edu> <87638naci6.fsf@hbox.dyndns.org> <1B794147-1B60-4F5B-A972-09C73F8ECB6E@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259905007 911 80.91.229.12 (4 Dec 2009 05:36:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2009 05:36:47 +0000 (UTC) Cc: Martin Geisler , Neal Becker , mercurial-devel@selenic.com, emacs-devel@gnu.org To: Brodie Rao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 04 06:36:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGQqN-00063W-9m for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2009 06:36:39 +0100 Original-Received: from localhost ([127.0.0.1]:35225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGQqM-00084X-Q9 for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2009 00:36:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGQqE-00084K-Mm for emacs-devel@gnu.org; Fri, 04 Dec 2009 00:36:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGQq9-0007u6-7U for emacs-devel@gnu.org; Fri, 04 Dec 2009 00:36:29 -0500 Original-Received: from [199.232.76.173] (port=53758 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGQq9-0007tu-1T for emacs-devel@gnu.org; Fri, 04 Dec 2009 00:36:25 -0500 Original-Received: from colin-baker-v0.ics.uci.edu ([128.195.1.153]:43515) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGQq8-0001ck-I2 for emacs-devel@gnu.org; Fri, 04 Dec 2009 00:36:24 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nB45YkYF009560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Dec 2009 21:34:46 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nB45YkG6002638; Thu, 3 Dec 2009 21:34:46 -0800 (PST) In-Reply-To: <1B794147-1B60-4F5B-A972-09C73F8ECB6E@gmail.com> (Brodie Rao's message of "Thu, 3 Dec 2009 18:42:03 -0500") Original-Lines: 42 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nB45YkYF009560 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.561, required 5, autolearn=disabled, ALL_TRUSTED -1.44, GAPPY_SUBJECT 2.00) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118236 gmane.comp.version-control.mercurial.devel:27330 Archived-At: Brodie Rao writes: > 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 Let's first talk about the original problem that started this discussion. When a file in a directory that is under mercurial control is opened in emacs, emacs runs "hg status FILE" so that it knows if it's registered or not, if it's modified, etc. Any user settings in .hgrc should be irrelevant to the above. Right? It's desirable that this is as fast as possible, so processing .hgrc, initializing plugins will just waste time. After that emacs will want to know the version number for the file, for that it runs "hg log -l1 FILE", and parse it from the output. Any user settings in .hgrc should be irrelevant for this command. Right? [too bad that the status and version number are not available from a single command...]