D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 updated this revision to Diff 13201. taapas1128 edited the summary of this revision. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5554?vs=13200=13201 REVISION DETAIL https://phab.mercurial-scm.org/D5554 AFFECTED FILES hgext/histedit.py

Re: [PATCH 3 of 3] progress: specify updatebar() function by constructor argument

2019-01-12 Thread Martin von Zweigbergk via Mercurial-devel
On Sat, Jan 12, 2019 at 10:48 PM Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara > # Date 1547357805 -32400 > # Sun Jan 13 14:36:45 2019 +0900 > # Node ID ed29a1a69f505fb8b35e8a36c220a50c99baa4cd > # Parent e13ab96098d053c755988b4e94e5c99b203f70e8 > progress: specify

Re: [PATCH 8 of 8] revset: introduce an API that avoids `formatspec` input serialization

2019-01-12 Thread Boris FELD
On 12/01/2019 06:00, Yuya Nishihara wrote: > On Fri, 11 Jan 2019 12:29:10 +0100, Boris Feld wrote: >> # HG changeset patch >> # User Boris Feld >> # Date 1546605681 -3600 >> # Fri Jan 04 13:41:21 2019 +0100 >> # Node ID 73926c4ab24d6c01723ed050601b134bdc89562f >> # Parent

Re: [PATCH 7 of 8] revset: detect integer list on parsing

2019-01-12 Thread Boris FELD
On 12/01/2019 05:38, Yuya Nishihara wrote: > On Fri, 11 Jan 2019 12:29:09 +0100, Boris Feld wrote: >> # HG changeset patch >> # User Boris Feld >> # Date 1546575973 -3600 >> # Fri Jan 04 05:26:13 2019 +0100 >> # Node ID 4a56fbdacff33c3985bbb84f2e19ddfbd48ed4fa >> # Parent

Re: [PATCH 4 of 8] revset: enforce "%d" to be interpreted as literal revision number (API)

2019-01-12 Thread Boris FELD
On 12/01/2019 05:04, Yuya Nishihara wrote: > On Fri, 11 Jan 2019 12:29:06 +0100, Boris Feld wrote: >> # HG changeset patch >> # User Boris Feld >> # Date 1547130238 -3600 >> # Thu Jan 10 15:23:58 2019 +0100 >> # Node ID 38733dd8559578267617514a42f253efabb6 >> # Parent

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 added a comment. I have extracted mockdate function as `tests/mockdate.py` and dealt with the commas and spaces. > def commiteditor(self): > """The editor to be used to edit the commit message.""" > > @@ -800,6 +804,8 @@ > > 1. date if self.firstdate():

Re: [PATCH 2 of 2] help: document rewrite.backup-bundle option

2019-01-12 Thread Martin von Zweigbergk via Mercurial-devel
On Sat, Jan 12, 2019 at 2:50 AM Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara > # Date 1547282866 -32400 > # Sat Jan 12 17:47:46 2019 +0900 > # Node ID ead5fb5b2f2908c77aee99cde8b298e407a6efc8 > # Parent f52ca65e212c9a56eb631c81434c4c1fe262ea68 > help: document

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 updated this revision to Diff 13200. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5554?vs=13199=13200 REVISION DETAIL https://phab.mercurial-scm.org/D5554 AFFECTED FILES hgext/histedit.py tests/mockmakedate.py

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 updated this revision to Diff 13199. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5554?vs=13198=13199 REVISION DETAIL https://phab.mercurial-scm.org/D5554 AFFECTED FILES hgext/histedit.py tests/mockmakedate.py

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 updated this revision to Diff 13198. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5554?vs=13197=13198 REVISION DETAIL https://phab.mercurial-scm.org/D5554 AFFECTED FILES hgext/histedit.py tests/mockmakedate.py

[PATCH] revlog: document that mmap resources are released implicitly by GC

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547358986 -32400 # Sun Jan 13 14:56:26 2019 +0900 # Node ID eb6ba8bc27e0f8cc28268d6601b97f2c2a63c1c3 # Parent 81fb0d015830b5ddf89b398aa63e0b56501dc6ac revlog: document that mmap resources are released implicitly by GC It's okay-ish, but

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread taapas1128 (Taapas Agrawal)
taapas1128 updated this revision to Diff 13197. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5554?vs=13138=13197 REVISION DETAIL https://phab.mercurial-scm.org/D5554 AFFECTED FILES hgext/histedit.py tests/test-histedit-edit.t

[PATCH 2 of 2] histedit: remove trailing space from warning message

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547358375 -32400 # Sun Jan 13 14:46:15 2019 +0900 # Node ID 81fb0d015830b5ddf89b398aa63e0b56501dc6ac # Parent 9e4ccae74c4793f1e10f2b89991466247eb8e76a histedit: remove trailing space from warning message diff --git a/hgext/histedit.py

[PATCH 1 of 2] histedit: fix weird indent of i18n text

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547358284 -32400 # Sun Jan 13 14:44:44 2019 +0900 # Node ID 9e4ccae74c4793f1e10f2b89991466247eb8e76a # Parent ed29a1a69f505fb8b35e8a36c220a50c99baa4cd histedit: fix weird indent of i18n text diff --git a/hgext/histedit.py

[PATCH 3 of 3] progress: specify updatebar() function by constructor argument

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547357805 -32400 # Sun Jan 13 14:36:45 2019 +0900 # Node ID ed29a1a69f505fb8b35e8a36c220a50c99baa4cd # Parent e13ab96098d053c755988b4e94e5c99b203f70e8 progress: specify updatebar() function by constructor argument This makes it easy for ui

[PATCH 2 of 3] progress: change _updatebar() to take parameters as arguments

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547356895 -32400 # Sun Jan 13 14:21:35 2019 +0900 # Node ID e13ab96098d053c755988b4e94e5c99b203f70e8 # Parent ec7bc9f70e3982f30c2801d3af51d57c498b0851 progress: change _updatebar() to take parameters as arguments I want to move updatebar()

[PATCH 1 of 3] archival: construct progress helper through ui.makeprogress()

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547357171 -32400 # Sun Jan 13 14:26:11 2019 +0900 # Node ID ec7bc9f70e3982f30c2801d3af51d57c498b0851 # Parent 3f807237dc94925b7f92aeb6a822440856cc8b47 archival: construct progress helper through ui.makeprogress() No idea why we didn't.

D5561: revlog: always enable generaldelta on version 2 revlogs

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGe7a2cc84dbc0: revlog: always enable generaldelta on version 2 revlogs (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5564: revlog: use separate variables to track version flags

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG3f807237dc94: revlog: use separate variables to track version flags (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5563: revlog: inline opener options logic into _loadindex()

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGe3cfe0702eac: revlog: inline opener options logic into _loadindex() (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5562: revlog: store mmaplargeindex as an instance attribute

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGd0de4fdd87aa: revlog: store mmaplargeindex as an instance attribute (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5560: revlog: rename v to versionflags

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG6439cefaeb64: revlog: rename v to versionflags (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5560?vs=13156=13192

D5559: revlog: always process opener options

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGcecf3f8bccd3: revlog: always process opener options (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5559?vs=13155=13191

D5558: internals: minor rewriting of revlogs documentation

2019-01-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGd8fe67db5234: internals: minor rewriting of revlogs documentation (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5559: revlog: always process opener options

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > I'm not sure when ``opener.options`` would ever be explicitly > set to None. It is definitely not possible to construct a repo > this way because ``localrepo.resolvestorevfsoptions()`` always > returns a dict and ``localrepo.makelocalrepository()`` always

Re: D5559: revlog: always process opener options

2019-01-12 Thread Yuya Nishihara
> I'm not sure when ``opener.options`` would ever be explicitly > set to None. It is definitely not possible to construct a repo > this way because ``localrepo.resolvestorevfsoptions()`` always > returns a dict and ``localrepo.makelocalrepository()`` always > sets ``opener.options`` to

D5564: revlog: use separate variables to track version flags

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. Queued up to this, thanks. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5564 To: indygreg, #hg-reviewers Cc: yuja, mercurial-devel ___ Mercurial-devel mailing list

Re: D5564: revlog: use separate variables to track version flags

2019-01-12 Thread Yuya Nishihara
Queued up to this, thanks. ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

D5561: revlog: always enable generaldelta on version 2 revlogs

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > - if self._initempty: > - # changelogs don't benefit from generaldelta +if self._initempty and (self.version & 0x == revlog.REVLOGV1): +# changelogs don't benefit from generaldelta. Perhaps, `debugdeltachain()` and `debugrevlog()` has to

Re: D5561: revlog: always enable generaldelta on version 2 revlogs

2019-01-12 Thread Yuya Nishihara
> -if self._initempty: > -# changelogs don't benefit from generaldelta > +if self._initempty and (self.version & 0x == revlog.REVLOGV1): > +# changelogs don't benefit from generaldelta. Perhaps, `debugdeltachain()` and `debugrevlog()` has to be updated

Re: [PATCH 2 of 2 V2] extdiff: add --mode option

2019-01-12 Thread Yuya Nishihara
On Sat, 12 Jan 2019 09:26:25 -0800, Ludovic Chabant wrote: > Thanks for the comments! > > > Maybe need to check the .gui flag of the tool. Otherwise the console > > would be messed up if the tool wasn't a GUI program. > > Good point, although the existing extdiff code doesn't seem to be checking

D5490: commit: remove ignore whitespace option on --interactive (issue6042)

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > > It was intentionally added by https://phab.mercurial-scm.org/rHG3f1dccea9510c122cf9ab0e7a5a19ceed3600a7f (with no tests.) > > Do you want me to add tests for that? If yes, please mention the things I need to take care of on >writing those tests.

Re: D5490: commit: remove ignore whitespace option on --interactive (issue6042)

2019-01-12 Thread Yuya Nishihara
> > It was intentionally added by > https://phab.mercurial-scm.org/rHG3f1dccea9510c122cf9ab0e7a5a19ceed3600a7f > (with no tests.) > > Do you want me to add tests for that? If yes, please mention the things I > need to take care of on >writing those tests. I think you can reuse the

D5569: tests: make HGCATAPULTSERVERPIPE imply HGTESTCATAPULTSERVERPIPE

2019-01-12 Thread spectral (Kyle Lippincott)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG4f0ae5c64c1b: tests: make HGCATAPULTSERVERPIPE imply HGTESTCATAPULTSERVERPIPE (authored by spectral, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5552: tests: add test for warning on histedit with tagged commits

2019-01-12 Thread navaneeth.suresh (Navaneeth Suresh)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG172296c6db91: tests: add test for warning on histedit with tagged commits (authored by navaneeth.suresh, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D5552?vs=13134=13188#toc

D5570: hg-docker: fix Python 3.4 compatibility (for CentOS 7)

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > +if p.returncode: > +raise Exception('failed to build docker image: %s %s' % (p.stdout, p.stderr)) Can you change the exception type? test-check-code.t complains about it. REPOSITORY rHG Mercurial REVISION DETAIL

Re: D5570: hg-docker: fix Python 3.4 compatibility (for CentOS 7)

2019-01-12 Thread Yuya Nishihara
> +if p.returncode: > +raise Exception('failed to build docker image: %s %s' % (p.stdout, > p.stderr)) Can you change the exception type? test-check-code.t complains about it. ___ Mercurial-devel mailing list

D5490: commit: remove ignore whitespace option on --interactive (issue6042)

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > - a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -237,6 +237,7 @@ def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, filterfn, *pats, **opts): opts = pycompat.byteskwargs(opts) +ignorews = opts.get('ignorews', False) It isn't nice to mix command

Re: D5490: commit: remove ignore whitespace option on --interactive (issue6042)

2019-01-12 Thread Yuya Nishihara
> --- a/mercurial/cmdutil.py > +++ b/mercurial/cmdutil.py > @@ -237,6 +237,7 @@ > def dorecord(ui, repo, commitfunc, cmdsuggest, backupall, > filterfn, *pats, **opts): > opts = pycompat.byteskwargs(opts) > +ignorews = opts.get('ignorews', False) It isn't nice to mix command

Re: D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread Yuya Nishihara
> + $ cat >> testmocks.py << EOF > + > # mock out util.makedate() to supply testable values > + > import os > + > from mercurial import pycompat, util > + > from mercurial.utils import dateutil > + > > + > def mockmakedate(): > + > filename = os.path.join(os.environ['TESTTMP'],

D5554: histedit: added rewrite.update-timestamp to fold and mess

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. > + $ cat >> testmocks.py << EOF > + > # mock out util.makedate() to supply testable values > + > import os > + > from mercurial import pycompat, util > + > from mercurial.utils import dateutil > + > > + > def mockmakedate(): > + >

D5552: tests: add test for warning on histedit with tagged commits

2019-01-12 Thread yuja (Yuya Nishihara)
yuja added a comment. Queued, thanks. > + $ echo '[extensions]' >> $HGRCPATH > + $ echo 'histedit =' >> $HGRCPATH Removed these lines. The extension is enabled at the beginning. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5552 To:

Re: D5552: tests: add test for warning on histedit with tagged commits

2019-01-12 Thread Yuya Nishihara
Queued, thanks. > + $ echo '[extensions]' >> $HGRCPATH > + $ echo 'histedit =' >> $HGRCPATH Removed these lines. The extension is enabled at the beginning. ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org

Re: [PATCH 2 of 2 V2] extdiff: add --mode option

2019-01-12 Thread Ludovic Chabant
Thanks for the comments! > Maybe need to check the .gui flag of the tool. Otherwise the console > would be messed up if the tool wasn't a GUI program. Good point, although the existing extdiff code doesn't seem to be checking that, no? So should I do that in a separate patch? > Well, I think

D5550: rust-cpython: bindings for MissingAncestors

2019-01-12 Thread kevincox (Kevin Cox)
kevincox added inline comments. INLINE COMMENTS > ancestors.rs:170 > +bases_vec.push(rev.to_py_object(py).into_object()); > +} > +Ok(PyTuple::new(py, bases_vec.as_slice())) This could be a `.collect()` call. Something like: let bases_vec: Vec =

[PATCH 2 of 2] ui: proxy protect/restorestdio() calls to update internal flag

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1537965712 -32400 # Wed Sep 26 21:41:52 2018 +0900 # Node ID 8e956cead2023a3afdfb3f06a08b24290dffc244 # Parent c5a71f1cdd3278159500360435863ee01c842cf4 ui: proxy protect/restorestdio() calls to update internal flag It should be better to

[PATCH 1 of 2] ui: move protectedstdio() context manager from procutil

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1537964953 -32400 # Wed Sep 26 21:29:13 2018 +0900 # Node ID c5a71f1cdd3278159500360435863ee01c842cf4 # Parent ead5fb5b2f2908c77aee99cde8b298e407a6efc8 ui: move protectedstdio() context manager from procutil This is a follow-up series for

[PATCH 2 of 2] help: document rewrite.backup-bundle option

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547282866 -32400 # Sat Jan 12 17:47:46 2019 +0900 # Node ID ead5fb5b2f2908c77aee99cde8b298e407a6efc8 # Parent f52ca65e212c9a56eb631c81434c4c1fe262ea68 help: document rewrite.backup-bundle option diff --git a/hgext/histedit.py

[PATCH 1 of 2] repair: move ui.history-editing-backup to [rewrite] section

2019-01-12 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1547282616 -32400 # Sat Jan 12 17:43:36 2019 +0900 # Node ID f52ca65e212c9a56eb631c81434c4c1fe262ea68 # Parent 4f675c12d083a23049d75930bb765ed8bd27cd2c repair: move ui.history-editing-backup to [rewrite] section Since we have the "rewrite"