mercurial@45710: 33 new changesets

2020-10-14 Thread Mercurial Commits
33 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/bd2df58366b1 changeset: 45678:bd2df58366b1 user:Martin von Zweigbergk date:Tue Oct 06 20:37:35 2020 -0700 summary: errors: name arguments to CommandError constructor https://www.mercurial-scm.org/repo

D9208: clonebundles: move a bundle of clone bundle related code to a new module

2020-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY In the process on general clone bundle automatically, we need to make some function available more widely. This is a good opportunity to extract a significant

D9209: clonebundle: move the manifest filename to a constant

2020-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I am about to add more reference to it, so I would rather have it an explicit constant. This allow to unify various call too. REPOSITORY rHG Mercurial BRANC

D9212: procutil: allow to specify arbitrary stdin bytes to runbgcommand

2020-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY For automatic clonebundles generation I need to pass arbitrary large amount of data to the process (eg: common nodes, target nodes). I am updating the `run

D9211: pycompat: add an entry for unnamedtmpfile

2020-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I am going to use unnamed temporary files to pass arbitrarily large input data to worker creating bundles. To do so, I need a unified API that work on py2 and

D9210: pycompat: update comment about unnamedtempfile

2020-10-14 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I found the comment clearer. I end up having to think about this for `TemporaryFile` and I update that one in the process. REPOSITORY rHG Mercurial BRANCH

D9207: record: when backing up, avoid generating very long filenames

2020-10-14 Thread spectral (Kyle Lippincott)
spectral created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY If the original file's path is longer than the individual filename maximum length (256 on Linux, I believe?), then this mechanism of "replace slashes with un

D9206: posix: avoid a leaked file descriptor in a unix domain socket exception case

2020-10-14 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9206 AFFECTED FILES mercurial/posix.py CHANGE DETAILS diff --git a/mercurial/

D9205: posix: use context managers in a couple of places

2020-10-14 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9205 AFFECTED FILES mercurial/posix.py CHANGE DETAILS diff --git a/mercurial/

D9204: tests: add notes about broken `hg log --follow ` with copies in extras

2020-10-14 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY I also removed some unnecessary `#if no-changeset` where the `#else` was the same :P REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://

[PATCH 7 of 7] revset: add diff(pattern) predicate for "grep --diff"

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1599556584 -32400 # Tue Sep 08 18:16:24 2020 +0900 # Node ID 86c34dc393abb0cd636ec03a2e81a26f4b0694d5 # Parent c71d4b4018af62936283b28ce4ed70cc9ea33840 revset: add diff(pattern) predicate for "grep --diff" I find this is useful in GUI log vi

[PATCH 6 of 7] stringutil: add function to compile stringmatcher pattern into regexp

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1601898039 -32400 # Mon Oct 05 20:40:39 2020 +0900 # Node ID c71d4b4018af62936283b28ce4ed70cc9ea33840 # Parent 18bb913c45acf3f8d1fcbc90e22853f8e5f8e767 stringutil: add function to compile stringmatcher pattern into regexp Prepares for adding

[PATCH 5 of 7] py3: fix stringmatcher() to byte-stringify exception message

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1602681048 -32400 # Wed Oct 14 22:10:48 2020 +0900 # Node ID 18bb913c45acf3f8d1fcbc90e22853f8e5f8e767 # Parent b6c30689b9fe9e5f53bceb7913c71ae98109c804 py3: fix stringmatcher() to byte-stringify exception message Spotted while writing regexp

[PATCH 4 of 7] stringutil: extract helper function that splits stringmatcher() pattern

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1601898814 -32400 # Mon Oct 05 20:53:34 2020 +0900 # Node ID b6c30689b9fe9e5f53bceb7913c71ae98109c804 # Parent 5b3013b8e40a903e7d31196c1e00877120339242 stringutil: extract helper function that splits stringmatcher() pattern diff --git a/merc

[PATCH 3 of 7] grep: extract main search loop as searcher method

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1599639458 -32400 # Wed Sep 09 17:17:38 2020 +0900 # Node ID 5b3013b8e40a903e7d31196c1e00877120339242 # Parent 09a598f9d9790918f47f66b6ce5e51f198510289 grep: extract main search loop as searcher method Still displayer part is in commands.gre

[PATCH 2 of 7] scmutil: move walkchangerevs() from cmdutil

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1601785077 -32400 # Sun Oct 04 13:17:57 2020 +0900 # Node ID 09a598f9d9790918f47f66b6ce5e51f198510289 # Parent d36d703c291e45670245384440993ff70ad17da4 scmutil: move walkchangerevs() from cmdutil It's no longer a command-level function, but

[PATCH 1 of 7] grep: extract public function to register file to be skipped

2020-10-14 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1599638684 -32400 # Wed Sep 09 17:04:44 2020 +0900 # Node ID d36d703c291e45670245384440993ff70ad17da4 # Parent 0428978bca22dc1173577ca6247d588182805b78 grep: extract public function to register file to be skipped The main grep loop will be e

Re: [PATCH V2] mergestate: add `allextras()` to get all extras

2020-10-14 Thread Yuya Nishihara
On Wed, 14 Oct 2020 13:47:17 +0530, Pulkit Goyal wrote: > # HG changeset patch > # User Pulkit Goyal <7895pul...@gmail.com> > # Date 1602313984 -19800 > # Sat Oct 10 12:43:04 2020 +0530 > # Node ID 4884022d4ad9b918f863946f6557fac47c664af7 > # Parent 04de8a1ec08f380fda794dda3b3f2ed1ccfd442b >

Re: [PATCH V2] mergestate: document `o` merge record state in _mergestate_base docs

2020-10-14 Thread Yuya Nishihara
On Wed, 14 Oct 2020 13:40:43 +0530, Pulkit Goyal wrote: > # HG changeset patch > # User Pulkit Goyal <7895pul...@gmail.com> > # Date 1601991694 -19800 > # Tue Oct 06 19:11:34 2020 +0530 > # Node ID c3ffbf50856b954e3a8be968b9a93000b03b1843 > # Parent 04de8a1ec08f380fda794dda3b3f2ed1ccfd442b >

Re: [PATCH V2] mergestate: make filename argument optional in _mergestate_base.extras()

2020-10-14 Thread Pulkit Goyal
On Wed, Oct 14, 2020 at 1:46 PM Pulkit Goyal <7895pul...@gmail.com> wrote: > > # HG changeset patch > # User Pulkit Goyal <7895pul...@gmail.com> > # Date 1602313984 -19800 > # Sat Oct 10 12:43:04 2020 +0530 > # Node ID 16290c7c8eea7f859aade5c8c2f9af357da97164 > # Parent 04de8a1ec08f380fda794d

[PATCH V2] mergestate: add `allextras()` to get all extras

2020-10-14 Thread Pulkit Goyal
# HG changeset patch # User Pulkit Goyal <7895pul...@gmail.com> # Date 1602313984 -19800 # Sat Oct 10 12:43:04 2020 +0530 # Node ID 4884022d4ad9b918f863946f6557fac47c664af7 # Parent 04de8a1ec08f380fda794dda3b3f2ed1ccfd442b # EXP-Topic merge-newnode-final mergestate: add `allextras()` to get a

[PATCH V2] mergestate: make filename argument optional in _mergestate_base.extras()

2020-10-14 Thread Pulkit Goyal
# HG changeset patch # User Pulkit Goyal <7895pul...@gmail.com> # Date 1602313984 -19800 # Sat Oct 10 12:43:04 2020 +0530 # Node ID 16290c7c8eea7f859aade5c8c2f9af357da97164 # Parent 04de8a1ec08f380fda794dda3b3f2ed1ccfd442b # EXP-Topic merge-newnode-final mergestate: make filename argument opt

[PATCH V2] mergestate: document `o` merge record state in _mergestate_base docs

2020-10-14 Thread Pulkit Goyal
# HG changeset patch # User Pulkit Goyal <7895pul...@gmail.com> # Date 1601991694 -19800 # Tue Oct 06 19:11:34 2020 +0530 # Node ID c3ffbf50856b954e3a8be968b9a93000b03b1843 # Parent 04de8a1ec08f380fda794dda3b3f2ed1ccfd442b mergestate: document `o` merge record state in _mergestate_base docs