Re: [PATCH 3 of 8 "] compression: introduce a `storage.revlog.zlib.level` configuration

2019-04-28 Thread Matt Harbison
On Sun, 31 Mar 2019 11:36:19 -0400, Pierre-Yves David wrote: # HG changeset patch # User Pierre-Yves David # Date 1553708127 -3600 # Wed Mar 27 18:35:27 2019 +0100 # Node ID df7c537a8d07d6c1d4e7aa7604af30a57717bcf6 # Parent 0779dd6ec612bf7dcb5ca4628b42409dad2cde29 # EXP-Topic

D6329: gendoc: nest command headers under category headers

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6329 AFFECTED FILES doc/gendoc.py CHANGE DETAILS diff --git a/doc/gendoc.py b/doc/gendoc.py ---

D6328: minirst: support subsubsubsubsections (header level 5) with marker ''''

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6328 AFFECTED FILES mercurial/minirst.py CHANGE DETAILS diff --git a/mercurial/minirst.py

D6327: gendoc: guarantee that all commands were processed.

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The new logic renders the commands belonging to each category in turn. Commands with an unregistered category are at risk of getting skipped because their

D6326: gendoc: group commands by category in man page and HTML help

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Make Mercurial's man page and HTML help group commands by category, and present the categories in a helpful order. `hg help` already does this; this patch uses

D6325: gendoc: indent loop to make next patch more legible

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6325 AFFECTED FILES doc/gendoc.py CHANGE DETAILS diff --git a/doc/gendoc.py b/doc/gendoc.py ---

D6324: help: register the 'gpg' command category and give it a description

2019-04-28 Thread Sietse (Sietse Brouwer)
Sietse created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY help.py expects extensions to register their command category in the CATEGORY_ORDER and CATEGORY_NAMES variables. Once gendoc.py orders commands by category, in

Re: [PATCH 1 of 2] rust: published the three extension crates to crates.io

2019-04-28 Thread Yuya Nishihara
On Thu, 25 Apr 2019 15:11:23 +0200, Georges Racinet wrote: > On 4/23/19 2:36 PM, Yuya Nishihara wrote: > >> Besides third party dependencies to hg-core or even hg-cpython > >> appearing, here's a reason for them not being purely internal: > >> downstream packagers may need to rely on the crates.io

Re: [PATCH STABLE] hghave: deal with "rc" release

2019-04-28 Thread Yuya Nishihara
On Thu, 25 Apr 2019 21:19:51 +0200, Pierre-Yves David wrote: > # HG changeset patch > # User Pierre-Yves David > # Date 1556212622 -7200 > # Thu Apr 25 19:17:02 2019 +0200 > # Branch stable > # Node ID fcaf2e87d89a2f4b12dfde47c29183a04436c442 > # Parent

D6323: tests: demonstrate that rename is followed to wrong parent from merge

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG618b9ffefa87: tests: demonstrate that rename is followed to wrong parent from merge (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6322: test: demonstrate failure to follow rename with shadowed linkrev

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG7bb2f358a13b: test: demonstrate failure to follow rename with shadowed linkrev (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6311: branchcache: store the maximum tip in a variable inside for loop

2019-04-28 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG9893d7aa7420: branchcache: store the maximum tip in a variable inside for loop (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6321: tests: slightly modify a linkrev test to prepare for expanding it

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG20fce2742399: tests: slightly modify a linkrev test to prepare for expanding it (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6320: copies: process files in deterministic order for stable tests

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG390ec72b8ea4: copies: process files in deterministic order for stable tests (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6312: branchcache: update the filteredhash if we update the tiprev

2019-04-28 Thread yuja (Yuya Nishihara)
yuja added a comment. > if ntiprev > self.tiprev: > self.tiprev = ntiprev > self.tipnode = cl.node(ntiprev) > > +self.filteredhash = scmutil.filteredhash(repo, self.tiprev) > > if not self.validfor(repo): > # cache key are not valid anymore

Re: D6312: branchcache: update the filteredhash if we update the tiprev

2019-04-28 Thread Yuya Nishihara
> if ntiprev > self.tiprev: > self.tiprev = ntiprev > self.tipnode = cl.node(ntiprev) > +self.filteredhash = scmutil.filteredhash(repo, self.tiprev) > > if not self.validfor(repo): > # cache key are not valid anymore and

Re: [PATCH v3] py3: properly reject non-encoded strings given to hgweb

2019-04-28 Thread Yuya Nishihara
On Sun, 28 Apr 2019 04:22:53 +, Ludovic Chabant wrote: > # HG changeset patch > # User Ludovic Chabant > # Date 1555683992 0 > # Fri Apr 19 14:26:32 2019 + > # Branch stable > # Node ID 6805ebb0f1f6a7f34a74732ee6f6ec14e8824e42 > # Parent 3611368a1af3037427eb59635c7dad8dab67c606 >

Re: [PATCH v3] py3: handle meta-path finders that only use pre-python3.4 API

2019-04-28 Thread Yuya Nishihara
On Sun, 28 Apr 2019 04:18:45 +, Ludovic Chabant wrote: > # HG changeset patch > # User Ludovic Chabant > # Date 1555683918 0 > # Fri Apr 19 14:25:18 2019 + > # Branch stable > # Node ID 3611368a1af3037427eb59635c7dad8dab67c606 > # Parent 4a8d9ed864754837a185a642170cde24392f9abf >

D6255: copies: calculate mergecopies() based on pathcopies()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz added a comment. In https://phab.mercurial-scm.org/D6255#91851, @martinvonz wrote: > I'll spend a bit more time to see if I can figure out why pathcopies() and mergecopies() walk file ancestor differently. The way mergecopies() does it is faster, so I'l see if I can use that

D6255: copies: calculate mergecopies() based on pathcopies()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14943. martinvonz edited the summary of this revision. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6255?vs=14809=14943 REVISION DETAIL https://phab.mercurial-scm.org/D6255 AFFECTED FILES mercurial/copies.py

D6276: copies: clarify mutually exclusive cases in _chain() with a s/if/elif/

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14950. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6276?vs=14848=14950 REVISION DETAIL https://phab.mercurial-scm.org/D6276 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6277: copies: filter out copies from non-existent source later in _chain()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14951. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6277?vs=14849=14951 REVISION DETAIL https://phab.mercurial-scm.org/D6277 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6274: copies: document cases in _chain()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14948. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6274?vs=14846=14948 REVISION DETAIL https://phab.mercurial-scm.org/D6274 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6275: copies: delete a redundant cleanup step in _chain()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14949. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6275?vs=14847=14949 REVISION DETAIL https://phab.mercurial-scm.org/D6275 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6256: copies: inline _computenonoverlap() in mergecopies()

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14944. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6256?vs=14810=14944 REVISION DETAIL https://phab.mercurial-scm.org/D6256 AFFECTED FILES hgext/remotefilelog/__init__.py mercurial/copies.py

D6269: copies: ignore heuristics copytracing when using changeset-centric algos

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14947. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6269?vs=14813=14947 REVISION DETAIL https://phab.mercurial-scm.org/D6269 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6266: copies: replace .items() by .values() where appropriate

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14945. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6266?vs=14811=14945 REVISION DETAIL https://phab.mercurial-scm.org/D6266 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6268: copies: move check for experimental.copytrace== earlier

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 14946. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6268?vs=14812=14946 REVISION DETAIL https://phab.mercurial-scm.org/D6268 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git

D6323: tests: demonstrate that rename is followed to wrong parent from merge

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This test case shows another way that copies are handled differently between `hg st` (pathcopies()) and `hg co -m` (mergecopies). The reason is that

D6322: test: demonstrate failure to follow rename with shadowed linkrev

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This shows a difference in handling of copies between `hg st` (pathcopies()) and `hg co -m`. The issue here is that mergecopies() uses the unadjusted

D6321: tests: slightly modify a linkrev test to prepare for expanding it

2019-04-28 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The test case checks that the copy tracing code doesn't get confused by linkrevs when walking a file's ancestors. This patch chnages the test slightly so a