Re: [PATCH 07 of 10 shelve-ext v4] shelve: add shelve type saving and loading

2017-03-25 Thread Kostia Balytskyi
On 21/03/2017 21:56, Augie Fackler wrote: > On Sat, Mar 11, 2017 at 01:00:26PM -0800, Kostia Balytskyi wrote: >> # HG changeset patch >> # User Kostia Balytskyi >> # Date 1489250294 28800 >> # Sat Mar 11 08:38:14 2017 -0800 >> # Node ID

Re: [PATCH 5 of 5] statfs: make getfstype() raise OSError

2017-03-25 Thread Jun Wu
The series makes the CPython code cleaner. Marked as prereviewed. I was making "getfstype" a pure C function, so it's possible to be reused directly for non-cpython code (as a side effect, it does not have Python error handling). The new "describefstype" provides enough support if we want a pure

[PATCH 3 of 4] ui: defer setting pager related properties until the pager has spawned

2017-03-25 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1490490720 14400 # Sat Mar 25 21:12:00 2017 -0400 # Node ID 84bda5db69dbe3d550f45ccd6d6eda2aad760ee4 # Parent a263702b064a5a3ce1ca74b227e8e624e4b05874 ui: defer setting pager related properties until the pager has

[PATCH 1 of 4] color: fix grammar in help text

2017-03-25 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1490462963 14400 # Sat Mar 25 13:29:23 2017 -0400 # Node ID 22533c3af63d5a67d9210596eafd4b99ab9c7904 # Parent c60091fa1426892552dd6c0dd4b9c49e3c3da045 color: fix grammar in help text diff --git a/hgext/color.py

Re: A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Mike Hommey
On Sat, Mar 25, 2017 at 06:24:26PM -0700, Jun Wu wrote: > May I ask what version of Python are you using? If it's < 2.7.4, the EINTR > issue is expected. 2.7.13. > > Excerpts from Mike Hommey's message of 2017-03-26 09:08:25 +0900: > > On Sat, Mar 25, 2017 at 10:34:02AM -0700, Gregory Szorc

Re: A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Jun Wu
May I ask what version of Python are you using? If it's < 2.7.4, the EINTR issue is expected. Excerpts from Mike Hommey's message of 2017-03-26 09:08:25 +0900: > On Sat, Mar 25, 2017 at 10:34:02AM -0700, Gregory Szorc wrote: > > On Sat, Mar 25, 2017 at 4:19 AM, Mike Hommey

Re: A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Mike Hommey
On Sat, Mar 25, 2017 at 10:34:02AM -0700, Gregory Szorc wrote: > On Sat, Mar 25, 2017 at 4:19 AM, Mike Hommey wrote: > > > Hi, > > > > I don't know about you, but occasionally, I've hit "stream ended > > unexpectedly (got m bytes, expected n)" errors that didn't make sense. >

Re: [PATCH 02 of 10 shelve-ext v4] shelve: add an ability to write key-val data to a new type of shelve files

2017-03-25 Thread Kostia Balytskyi
On 21/03/2017 21:48, Augie Fackler wrote: > On Sat, Mar 11, 2017 at 01:00:21PM -0800, Kostia Balytskyi wrote: >> # HG changeset patch >> # User Kostia Balytskyi >> # Date 1489186989 28800 >> # Fri Mar 10 15:03:09 2017 -0800 >> # Node ID

Re: [PATCH 10 of 10 shelve-ext v4] shelve: add logic to preserve active bookmarks

2017-03-25 Thread Kostia Balytskyi
On 21/03/2017 21:52, Augie Fackler wrote: > On Sat, Mar 11, 2017 at 01:00:29PM -0800, Kostia Balytskyi wrote: >> # HG changeset patch >> # User Kostia Balytskyi >> # Date 1489250294 28800 >> # Sat Mar 11 08:38:14 2017 -0800 >> # Node ID

[PATCH] hardlink: check directory's st_dev instead of files

2017-03-25 Thread Jun Wu
# HG changeset patch # User Jun Wu # Date 1490475382 25200 # Sat Mar 25 13:56:22 2017 -0700 # Node ID b288a611eff957d3f03b06c419c16721f4fb5016 # Parent c60091fa1426892552dd6c0dd4b9c49e3c3da045 # Available At https://bitbucket.org/quark-zju/hg-draft # hg pull

Re: Hardlinks and Docker

2017-03-25 Thread Jun Wu
Excerpts from Jun Wu's message of 2017-03-25 12:19:46 -0700: > Excerpts from Gregory Szorc's message of 2017-03-25 10:54:10 -0700: > > Jun, et al: > > > > The recent patches around hardlink detection are great! However, there are > > still some failures executing tests in certain Docker

[PATCH] statfs: detect more filesystems on Linux

2017-03-25 Thread Jun Wu
# HG changeset patch # User Jun Wu # Date 1490471935 25200 # Sat Mar 25 12:58:55 2017 -0700 # Node ID 99337cfe021d5222a9420ae0d7e9b29c2d03573b # Parent c60091fa1426892552dd6c0dd4b9c49e3c3da045 # Available At https://bitbucket.org/quark-zju/hg-draft # hg pull

Re: [PATCH 7 of 7 V5] hgweb: expose a followlines UI in filerevision view (RFC)

2017-03-25 Thread Gregory Szorc
On Sat, Mar 25, 2017 at 12:34 PM, Gregory Szorc wrote: > On Sat, Mar 25, 2017 at 2:21 AM, Denis Laxalde wrote: > >> # HG changeset patch >> # User Denis Laxalde >> # Date 1489594320 -3600 >> # Wed Mar 15 17:12:00 2017

Re: [PATCH 7 of 7 V5] hgweb: expose a followlines UI in filerevision view (RFC)

2017-03-25 Thread Gregory Szorc
On Sat, Mar 25, 2017 at 2:21 AM, Denis Laxalde wrote: > # HG changeset patch > # User Denis Laxalde > # Date 1489594320 -3600 > # Wed Mar 15 17:12:00 2017 +0100 > # Node ID ec77aa4ff2993057b604bdffb449d2d179525a9f > # Parent

Re: Hardlinks and Docker

2017-03-25 Thread Jun Wu
Excerpts from Gregory Szorc's message of 2017-03-25 10:54:10 -0700: > Jun, et al: > > The recent patches around hardlink detection are great! However, there are > still some failures executing tests in certain Docker configurations, such > as when using the overlay2 storage driver (overlayfs). >

Re: A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Gregory Szorc
On Sat, Mar 25, 2017 at 4:19 AM, Mike Hommey wrote: > Hi, > > I don't know about you, but occasionally, I've hit "stream ended > unexpectedly (got m bytes, expected n)" errors that didn't make sense. > Retrying would always work. > > Recently, I was trying to use

Hardlinks and Docker

2017-03-25 Thread Gregory Szorc
Jun, et al: The recent patches around hardlink detection are great! However, there are still some failures executing tests in certain Docker configurations, such as when using the overlay2 storage driver (overlayfs). --- /mnt/hg/tests/test-hardlinks.t +++ /mnt/hg/tests/test-hardlinks.t.err @@

Re: A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Gregory Szorc
On Sat, Mar 25, 2017 at 4:19 AM, Mike Hommey wrote: > Hi, > > I don't know about you, but occasionally, I've hit "stream ended > unexpectedly (got m bytes, expected n)" errors that didn't make sense. > Retrying would always work. > > Recently, I was trying to use

[PATCH 3 of 4] templates: add "changeset.obsolete" label in command line style

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1490434829 -3600 # Sat Mar 25 10:40:29 2017 +0100 # Node ID 94a70894c394268b845f427f7643738a70e336bb # Parent c4c825f1402861e4b988395ac3deebcc6b5292cf # Available At https://bitbucket.org/dlax/hg-work # hg pull

[PATCH 2 of 4] templatekw: add an "obsolete" keyword

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1490434451 -3600 # Sat Mar 25 10:34:11 2017 +0100 # Node ID c4c825f1402861e4b988395ac3deebcc6b5292cf # Parent 130358da2eb894aa04e3bb731d0ccae84205c2ba # Available At https://bitbucket.org/dlax/hg-work # hg pull

[PATCH 4 of 4] summary: display obsolete state of parents

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1490437808 -3600 # Sat Mar 25 11:30:08 2017 +0100 # Node ID af7190c42c1cd6ba16a9bd83ad54208d89f343fe # Parent 94a70894c394268b845f427f7643738a70e336bb # Available At https://bitbucket.org/dlax/hg-work # hg pull

Re: [PATCH 01 of 11 V2] scmutil: add a method to convert environment variables to config items

2017-03-25 Thread Ryan McElroy
On 3/25/17 4:16 AM, Yuya Nishihara wrote: On Wed, 22 Mar 2017 08:52:32 -0700, Jun Wu wrote: Excerpts from Ryan McElroy's message of 2017-03-22 11:16:40 +: This function is fine, but scmutil feels like the wrong place for it. Why is it not in config.py? This same question applies to

Re: [PATCH 2 of 2] rebase: don't require destination if commands.rebase.requiredest=False

2017-03-25 Thread Ryan McElroy
On 3/25/17 4:52 AM, Yuya Nishihara wrote: On Fri, 24 Mar 2017 18:49:14 -0700, Jun Wu wrote: This looks good to me. Thanks for the fix! Excerpts from Martin von Zweigbergk's message of 2017-03-24 16:35:08 -0700: # HG changeset patch # User Martin von Zweigbergk # Date

Re: [PATCH 2 of 2 V2] show: new extension for displaying various repository data

2017-03-25 Thread Ryan McElroy
On 3/25/17 5:22 AM, Yuya Nishihara wrote: On Thu, 23 Mar 2017 11:38:45 -0400, Augie Fackler wrote: On Thu, Mar 23, 2017 at 12:16:16AM +0900, Yuya Nishihara wrote: On Tue, 21 Mar 2017 23:52:42 -0700, Gregory Szorc wrote: On Tue, Mar 21, 2017 at 11:49 PM, Gregory Szorc

Re: [PATCH] findrenames: sort files not by object id but by path for stable result

2017-03-25 Thread Ryan McElroy
On 3/23/17 2:00 PM, Yuya Nishihara wrote: On Wed, 22 Mar 2017 16:14:01 +, Ryan McElroy wrote: On 3/22/17 1:48 PM, Yuya Nishihara wrote: # HG changeset patch # User Yuya Nishihara # Date 1426413536 -32400 # Sun Mar 15 18:58:56 2015 +0900 # Node ID

A possible explanation for random "stream ended unexpectedly (got m bytes, expected n)"

2017-03-25 Thread Mike Hommey
Hi, I don't know about you, but occasionally, I've hit "stream ended unexpectedly (got m bytes, expected n)" errors that didn't make sense. Retrying would always work. Recently, I was trying to use signal.setitimer and a signal handler for some memory profiling on git-cinnabar, which uses

[PATCH 1 of 5] hghave: use util.getfstype

2017-03-25 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1490433747 -32400 # Sat Mar 25 18:22:27 2017 +0900 # Node ID 32202fca1b0a8f3dd4debb9b35daff002c454f75 # Parent c60091fa1426892552dd6c0dd4b9c49e3c3da045 hghave: use util.getfstype diff --git a/tests/hghave.py b/tests/hghave.py

[PATCH 4 of 5] statfs: rename pygetfstype to getfstype

2017-03-25 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1490430251 -32400 # Sat Mar 25 17:24:11 2017 +0900 # Node ID 69a0abd9c61f0dae12d60b4f6fd4ada8288bd451 # Parent d4f6c6d3f77d40eff1eb597642b10629d31ee1a7 statfs: rename pygetfstype to getfstype There's no ambiguity now. diff

[PATCH 5 of 5] statfs: make getfstype() raise OSError

2017-03-25 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1490430323 -32400 # Sat Mar 25 17:25:23 2017 +0900 # Node ID 05dc34258f021523bc1de5c403f671fa4d1b9905 # Parent 69a0abd9c61f0dae12d60b4f6fd4ada8288bd451 statfs: make getfstype() raise OSError It's better for getfstype()

[PATCH 3 of 5] statfs: refactor inner function as a mapping from statfs to string

2017-03-25 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1490430201 -32400 # Sat Mar 25 17:23:21 2017 +0900 # Node ID d4f6c6d3f77d40eff1eb597642b10629d31ee1a7 # Parent ca3ea70b04791670fa70eabc2531629b4d82d7a2 statfs: refactor inner function as a mapping from statfs to string The

[PATCH 2 of 5] statfs: simplify handling of return value

2017-03-25 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1490429592 -32400 # Sat Mar 25 17:13:12 2017 +0900 # Node ID ca3ea70b04791670fa70eabc2531629b4d82d7a2 # Parent 32202fca1b0a8f3dd4debb9b35daff002c454f75 statfs: simplify handling of return value Py_BuildValue() can translate

[PATCH 7 of 7 V5] hgweb: expose a followlines UI in filerevision view (RFC)

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1489594320 -3600 # Wed Mar 15 17:12:00 2017 +0100 # Node ID ec77aa4ff2993057b604bdffb449d2d179525a9f # Parent 2f75006a7f31c97d29fd6dd9b72fa7cc9e7ab840 # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 5 of 7 V5] hgweb: add a 'linerange' parameter to webutil.diffs()

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1489414549 -3600 # Mon Mar 13 15:15:49 2017 +0100 # Node ID 5b6a965fd0e2a1d0607672c5c6de70856e15df9f # Parent 7f68dc6319094b00f78ede75a01af62801f6a765 # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 4 of 7 V5] hgweb: handle a "linerange" request parameter in filelog command

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1484844060 -3600 # Thu Jan 19 17:41:00 2017 +0100 # Node ID 7f68dc6319094b00f78ede75a01af62801f6a765 # Parent 137ff409f34ad82bc0840e4161de1b9f502811b7 # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 1 of 7 V5] hgweb: handle "parity" internally in webutil.diffs()

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1489398019 -3600 # Mon Mar 13 10:40:19 2017 +0100 # Node ID ffd1a15d456342caba744f5049b97862fcb697c7 # Parent 527a247f114f8af37326805fd6cce923f9ac6453 # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 6 of 7 V5] hgweb: filter diff hunks when 'linerange' and 'patch' are specified in filelog

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1489414640 -3600 # Mon Mar 13 15:17:20 2017 +0100 # Node ID 2f75006a7f31c97d29fd6dd9b72fa7cc9e7ab840 # Parent 5b6a965fd0e2a1d0607672c5c6de70856e15df9f # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 2 of 7 V5] hgweb: add a "patch" query parameter to filelog command

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1489398073 -3600 # Mon Mar 13 10:41:13 2017 +0100 # Node ID a7b9bc1af8b81c332cf34960f581359e6942ca17 # Parent ffd1a15d456342caba744f5049b97862fcb697c7 # Available At https://hg.logilab.org/users/dlaxalde/hg #

[PATCH 3 of 7 V5] revset: factor out linerange processing into a utility function

2017-03-25 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1487957948 -3600 # Fri Feb 24 18:39:08 2017 +0100 # Node ID 137ff409f34ad82bc0840e4161de1b9f502811b7 # Parent a7b9bc1af8b81c332cf34960f581359e6942ca17 # Available At https://hg.logilab.org/users/dlaxalde/hg #

Re: [PATCH 4 of 4 V2] obsolete: allow cycles

2017-03-25 Thread Simon Farnsworth
On 23/03/2017 22:15, Jun Wu wrote: Excerpts from Augie Fackler's message of 2017-03-23 17:53:39 -0400: On Wed, Mar 22, 2017 at 1:42 AM, Jun Wu wrote: As for alternatives, a correct solution needs to refer to the marker it is replacing. Since cycles should be rare, can we record