D6279: tests: make log style a little easier to read in test-copytrace-heuristics.t

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Revision numbers are much shorter and easier to read (especially compared to the full nodeids that were used here), so I switched to that. That's also what

D6280: tests: avoid cryptic nodeids in tests/test-rename-merge1.t

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY These two nodeids had not been part of any output before, so one can't know which revision they refer to without adding something like `hg log` before them.

D6278: tests: defines aliases for `hg log` calls in test-copytrace-heuristics.t

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This also makes the test cases more consistent since a few had missed the ":" in "changeset:" that the others used. REPOSITORY rHG Mercurial REVISION

[PATCH] buildrpm: bump bundled Python version to 2.7.16 when building for centos{5, 6}

2019-04-18 Thread Antonio Muci via Mercurial-devel
# HG changeset patch # User Antonio Muci # Date 1555633465 -7200 # Fri Apr 19 02:24:25 2019 +0200 # Branch stable # Node ID 76724fb64a22ca2c68e165e71914827601339300 # Parent 84b5ad5fc2aa81d114d0c8ff869367104e997dd3 buildrpm: bump bundled Python version to 2.7.16 when building for

D6233: rust-discovery: implementing and exposing stats()

2019-04-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG1b0be75cb61f: rust-discovery: implementing and exposing stats() (authored by gracinet, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6232: rust-discovery: cpython bindings for the core logic

2019-04-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG13b64247f48f: rust-discovery: cpython bindings for the core logic (authored by gracinet, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D6232?vs=14721=14854#toc REPOSITORY

D6231: rust-discovery: starting core implementation

2019-04-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG10b465d61556: rust-discovery: starting core implementation (authored by gracinet, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D6229: rust-dagops: range of revisions

2019-04-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG3bdb21bbf791: rust-dagops: range of revisions (authored by gracinet, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D6229?vs=14740=14850#toc REPOSITORY rHG Mercurial

D6230: rust-dagops: roots

2019-04-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGbe0733552984: rust-dagops: roots (authored by gracinet, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6230?vs=14741=14851 REVISION DETAIL

D6232: rust-discovery: cpython bindings for the core logic

2019-04-18 Thread yuja (Yuya Nishihara)
yuja added a comment. > +def addinfo(, sample: PyObject) -> PyResult { > +let mut missing: Vec = Vec::new(); > +let mut common: Vec = Vec::new(); > +for info in sample.iter(py)? { // info is a pair (Revision, bool) > +let mut revknown =

Re: D6232: rust-discovery: cpython bindings for the core logic

2019-04-18 Thread Yuya Nishihara
> +def addinfo(, sample: PyObject) -> PyResult { > +let mut missing: Vec = Vec::new(); > +let mut common: Vec = Vec::new(); > +for info in sample.iter(py)? { // info is a pair (Revision, bool) > +let mut revknown = info?.iter(py)?; > +let rev:

Re: D6233: rust-discovery: implementing and exposing stats()

2019-04-18 Thread Yuya Nishihara
> On 4/18/19 1:29 AM, yuja (Yuya Nishihara) wrote: > > yuja added a comment. > > > > > > Can't apply by `:D6233`. Can you rebase? > > Just rebased everything onto 644eaffab9db. > > > > > % hg pimp :D6233 > > applying patch from stdin > > patching file mercurial/setdiscovery.py >

D6183: copies: add config option for writing copy metadata to file and/or changset

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz added a comment. In https://phab.mercurial-scm.org/D6183#91062, @indygreg wrote: > An idea to consider (which may have been proposed already) is to write a *no copy metadata* entry into extras when writing copy metadata to the changelog. If we did things this way, a new

D6183: copies: add config option for writing copy metadata to file and/or changset

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz added a comment. In https://phab.mercurial-scm.org/D6183#91060, @indygreg wrote: > I support experimenting with putting copy metadata in the changelog. And the patches before this one did a lot of work to allow copy metadata to be read from alternate sources, which is great,

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

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY _changesetforwardcopies() repeatedly calls _chain(). That is very expensive because _chain() does lookups in the manifest. I hope to split up the function in

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

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

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

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

D6274: copies: document cases in _chain()

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

D6274: copies: document cases in _chain()

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz added inline comments. INLINE COMMENTS > copies.py:120-125 > +# 1 a b -- > +# 2 a b b a->b > +# 3 a b a- > +# 4 a b c a->c > +# 5 - a b- > +# 6 a a b a->b I just realized that using `a`, `b`,

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

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY If the 'b' dict has a rename from 'x' to 'y', it shouldn't be possible for 'x' to be both (a key) in 'a' and in 'src'. That would mean that 'x' is a file in

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

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The check is redundant since https://phab.mercurial-scm.org/rHGd5edb5d3a337b85f56c3efc448482af87c9df3c2 (copies: filter out copies when target is not in

D6274: copies: document cases in _chain()

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
martinvonz 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/D6274 AFFECTED FILES mercurial/copies.py CHANGE DETAILS diff --git a/mercurial/copies.py

D6218: narrow: send specs as bundle2 data instead of param (issue5952) (issue6019)

2019-04-18 Thread idlsoft (Sandu Turcan)
idlsoft added a comment. This is nitpicking, but there is a duplicate `_NARROWACL_SECTION` definition in narrowbundle2.py, I think only the one in exchange.py should remain. Btw it's still 'narrowhgacl' from the old days. REPOSITORY rHG Mercurial REVISION DETAIL

European Mini-Sprint summary (2019-04)

2019-04-18 Thread Pierre-Yves David
Hi everybody, For those interested, I wrote a summary of the mini-sprint we held 2 weeks go. https://octobus.net/blog/2019-04-17-mercurial-mini-sprint-2019-04.html I also copy pasted the text below in case someone want to comment inline. Cheers, --- From April 4th to April 7th, a group of

Re: [PATCH 3 of 3] rust-filepatterns: call new Rust implementations from Python

2019-04-18 Thread Raphaël Gomès
This patch stack was re-sent using Phabricator as D6271, D6272 and D6273. On 4/17/19 2:00 AM, Raphaël Gomès wrote: # HG changeset patch # User Raphaël Gomès # Date 1555442904 -7200 # Tue Apr 16 21:28:24 2019 +0200 # Node ID ba9a1dd508c6c167d0c920ece643854c5bc6b6e7 # Parent

D6272: rust-filepatterns: add `rust-cpython` bindings for `filepatterns`

2019-04-18 Thread Raphaël Gomès
Alphare created this revision. Herald added subscribers: mercurial-devel, mjpieters, kevincox, durin42. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This change adds the `rust-cpython` interface for top-level functions and exceptions in the filepatterns module. Contrary to the

D6273: rust-filepatterns: call new Rust implementations from Python

2019-04-18 Thread Raphaël Gomès
Alphare created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This change adds the import to the `rust-cpython` bindings and uses them when appropriate. A wrapper function has been defined in the case of `_regex` to

D6271: rust-filepatterns: add a Rust implementation of pattern-related utils

2019-04-18 Thread Raphaël Gomès
Alphare created this revision. Herald added subscribers: mercurial-devel, kevincox, durin42. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This change introduces Rust implementations of two functions related to pattern handling, all located in `match.py`: - `_regex` -

D6265: narrow: also warn when not deleting untracked or ignored files

2019-04-18 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGaa8f83923aef: narrow: also warn when not deleting untracked or ignored files (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

Re: D6233: rust-discovery: implementing and exposing stats()

2019-04-18 Thread Georges Racinet
On 4/18/19 1:29 AM, yuja (Yuya Nishihara) wrote: > yuja added a comment. > > > Can't apply by `:D6233`. Can you rebase? Just rebased everything onto 644eaffab9db. > > % hg pimp :D6233 > applying patch from stdin > patching file mercurial/setdiscovery.py > Hunk #1 succeeded

D6270: WIP using children_cache instead of dagops::range if present

2019-04-18 Thread gracinet (Georges Racinet)
gracinet abandoned this revision. gracinet added a comment. Unwanted phabsend on that one (decidedly prematurate, sorry). REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6270 To: gracinet, #hg-reviewers Cc: durin42, kevincox, mercurial-devel

D6270: WIP using children_cache instead of dagops::range if present

2019-04-18 Thread gracinet (Georges Racinet)
gracinet created this revision. Herald added subscribers: mercurial-devel, kevincox, durin42. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6270 AFFECTED FILES rust/hg-core/src/discovery.rs CHANGE DETAILS diff --git

D6262: rust-discovery: using from Python code

2019-04-18 Thread gracinet (Georges Racinet)
gracinet updated this revision to Diff 14837. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6262?vs=14799=14837 REVISION DETAIL https://phab.mercurial-scm.org/D6262 AFFECTED FILES mercurial/setdiscovery.py CHANGE DETAILS diff --git

[Bug 6121] New: Evolve and Topic have a shared global enabled state

2019-04-18 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=6121 Bug ID: 6121 Summary: Evolve and Topic have a shared global enabled state Product: Mercurial Version: unspecified Hardware: PC OS: Mac OS Status: UNCONFIRMED