[PATCH 1 of 1] Add support for ui.one_filesystem in hgrc

Martin Geisler mg at lazybytes.net
Wed Mar 31 06:14:58 CDT 2010


Dirkjan Ochtman <dirkjan at ochtman.nl> writes:

> On Tue, Mar 30, 2010 at 23:57, Lars Damerow <lars at pixar.com> wrote:
>> # HG changeset patch
>> # User Lars R. Damerow <lars at pixar.com>
>> # Date 1269980725 25200
>> # Node ID bc43b3bdaac0239b0294c9a7b7ec918c8df56f2d
>> # Parent  ef3668450cd0075978e2d11ec991aab557d9c59c
>> Add support for ui.one_filesystem in hgrc
>>
>> This patch makes Mercurial pay attention to the ui.one_filesystem
>> hgrc variable. When that variable is set to true, Mercurial will stop
>> looking for a repo directory when it attempts to cross a filesystem
>> boundary.
>
> I like the idea, but not the name... Can't think of a better one right
> now, though.

find(1) command calls this -mount or -xdev, though I don't think those
names more intuitive. rsync(1) calls it -x, --one-file-system. Perhaps
we could call it ui.cross-filesystems and let it default to True. The
user will then do

  [ui]
  cross-filesystems = False

in his hgrc file. In any case, we should update doc/hgrc.1.txt too.

BTW, I know we have a mixture of "foobar", "foo_bar", and "foo-bar"
names in our hgrc files. I much prefer the last form since it's easy to
write and easy to read.

-- 
Martin Geisler

Fast and powerful revision control: http://mercurial.selenic.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100331/e69ebaa7/attachment.pgp>


More information about the Mercurial-devel mailing list