D5370: rust: core implementation of missingancestors (no bindings)

2018-12-15 Thread gracinet (Georges Racinet)
gracinet abandoned this revision. gracinet marked an inline comment as done. gracinet added a comment. This Differential has been superseded by https://phab.mercurial-scm.org/D5414 through https://phab.mercurial-scm.org/D5417 REPOSITORY rHG Mercurial REVISION DETAIL

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-12 Thread gracinet (Georges Racinet)
gracinet marked 11 inline comments as done. gracinet added a comment. @yuja trying to submit the v2 with phabsend instead of arcanist… hope it'll be linked properly INLINE COMMENTS > kevincox wrote in ancestors.rs:201 > Isn't this loop redundant with the retain call above? indeed, must

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread yuja (Yuya Nishihara)
yuja added a comment. > @yuja: do you mean one of those Differential Revisions of this system for each commit, sure I can do. I don't know how Phabricator is working, but probably yes. I meant we want https://phab.mercurial-scm.org/D5370, https://phab.mercurial-scm.org/D5371, and

Re: D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread Yuya Nishihara
> @yuja: do you mean one of those Differential Revisions of this system for > each commit, sure I can do. I don't know how Phabricator is working, but probably yes. I meant we want D5370, D5371, and D5372 instead of a folded D5370. I think phabsend will do that way. > With respect to

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread gracinet (Georges Racinet)
gracinet added a comment. @yuja: do you mean one of those Differential Revisions of this system for each commit, sure I can do. With respect to rust-cpython bindings, I'm currently waiting for feedback on https://github.com/dgrunwald/rust-cpython/issues/164 Perhaps you'd have an idea

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread yuja (Yuya Nishihara)
yuja added a comment. Quickly scanned, and looks generally good to me. > rust: iterator version of Graph.parents > rust: translation of missingancestors > rust: translated random test of missingancestors Can you send these as separate patches? > An alternative would

Re: D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread Yuya Nishihara
Quickly scanned, and looks generally good to me. > rust: iterator version of Graph.parents > rust: translation of missingancestors > rust: translated random test of missingancestors Can you send these as separate patches? > An alternative would have been to expose to Python >

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-06 Thread kevincox (Kevin Cox)
kevincox added a comment. I think sticking close to the python version makes sense for the initial version. Then improvements can be made in follow-ups. INLINE COMMENTS > gracinet wrote in lib.rs:26 > The reason I've preferred to implement it directly is that `into_iter()` > iterates on

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-05 Thread gracinet (Georges Racinet)
gracinet added a comment. I'll include your remark in the upcoming v2, thanks again ! INLINE COMMENTS > kevincox wrote in ancestors.rs:159 > Is always having an item in the set actually saving many corner cases? It > seems like you usually check for empty sets anyways. Not sure about this,

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-04 Thread kevincox (Kevin Cox)
kevincox added a comment. Overall looks good to me. Just a couple of points. - Using random numbers for tests without a seed that is logged will create failures which are basically impossible to reproduce. - A lot of the comments are comparing to the python, I don't know how useful

D5370: rust: core implementation of missingancestors (no bindings)

2018-12-04 Thread gracinet (Georges Racinet)
gracinet created this revision. Herald added subscribers: mercurial-devel, mjpieters, kevincox, durin42. Herald added a reviewer: hg-reviewers. REVISION SUMMARY rust: iterator version of Graph.parents This is handy for callers that want to simply do: for p in graph.parents_iter(rev)