[Bug 5989] New: pullbundles do not correctly keep phases

2018-09-24 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=5989 Bug ID: 5989 Summary: pullbundles do not correctly keep phases Product: Mercurial Version: 4.7.1 Hardware: PC OS: Windows Status: UNCONFIRMED Severity:

[Bug 5990] New: pullbundles: 'hg incoming' fails on bundle type

2018-09-24 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=5990 Bug ID: 5990 Summary: pullbundles: 'hg incoming' fails on bundle type Product: Mercurial Version: 4.7.1 Hardware: PC OS: Windows Status: UNCONFIRMED

Re: [PATCH 2 of 2] hgweb: register web.static to the config table

2018-09-24 Thread Anton Shestakov
On Sun, 23 Sep 2018 22:24:11 +0900 Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara > # Date 1537686948 -32400 > # Sun Sep 23 16:15:48 2018 +0900 > # Node ID d25a329a22d1521efa61fcfec7530b7f99d10a95 > # Parent 021347195627de0eed504c548cb4e629000a4726 > hgweb: register

D4618: wireprotov2: expose rich arguments metadata

2018-09-24 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG8e7e822e85ec: wireprotov2: expose rich arguments metadata (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4616: wireprotov2: advertise recognized path filter prefixes

2018-09-24 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGae20f52437e9: wireprotov2: advertise recognized path filter prefixes (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4621: wireprotov2: teach changesetdata to fetch ancestors until depth

2018-09-24 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGd3d333ab167a: wireprotov2: teach changesetdata to fetch ancestors until depth (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

[Bug 5991] New: pullbundles: preoutgoing and outgoing hook missing

2018-09-24 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=5991 Bug ID: 5991 Summary: pullbundles: preoutgoing and outgoing hook missing Product: Mercurial Version: 4.7.1 Hardware: PC OS: Linux Status: UNCONFIRMED

D4615: wireprotov2: declare command arguments richly

2018-09-24 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > wireprotov2server.py:547 > + > + ``required`` > + Bool indicating whether the argument is required. https://phab.mercurial-scm.org/D4617 no longer exists, so I'm taking this change as-is, but expect a follow-up (at least

[Bug 5992] New: push over ssh fails with "abort: not a Mercurial bundle" when remote hg is chg

2018-09-24 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=5992 Bug ID: 5992 Summary: push over ssh fails with "abort: not a Mercurial bundle" when remote hg is chg Product: Mercurial Version: 4.7 Hardware: PC OS: Linux

D4615: wireprotov2: declare command arguments richly

2018-09-24 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG0b61d21f05cc: wireprotov2: declare command arguments richly (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4642: localrepo: iteratively derive local repository type

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added a comment. In https://phab.mercurial-scm.org/D4642#71269, @yuja wrote: > > +Extensions should wrap these factory functions to customize repository type > > +creation. Note that an extension's wrapped function may be called even if > > +that extension is

D4619: wireprotov2: advertise set of valid values for requestable fields

2018-09-24 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGc30faea8d02d: wireprotov2: advertise set of valid values for requestable fields (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4654: error: introduce StorageError

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added a comment. In https://phab.mercurial-scm.org/D4654#71289, @yuja wrote: > > -class RevlogError(Hint, Exception): > > +class StorageError(Hint, Exception): > > +"""Raised when an error occurs in a storage layer. > > + > > +Usually subclassed by a

D4701: verify: start to abstract file verification

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Currently, the file storage interface has a handful of attributes that are exclusively or near-exclusively used by repo verification code. In order to support

D4711: localrepo: automatically load lfs extension when required (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY If an unrecognized requirement is present (possibly due to an unloaded extension), the user will get an error message telling them to go to

D4714: lfs: access revlog directly

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY LFS is monkeypatching filelog.filelog and is then accessing various filelog attributes in the monkeypatched function. This is all fine. But some of the

D4719: upgrade: use rawsize() instead of revlog index

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The revlog index is a very low-level data structure and it shouldn't be exposed to the storage interface - at least not in its current form. upgrade.py is

D4723: tests: use more complex file storage test

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The previous test was attempting to to test delta storage behavior. It didn't do a very good job at it because there was a good chance a delta wasn't being

D4721: changegroup: remove reordering control (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This logic - including the experimental bundle.reorder option - was originally added in

D4727: filelog: drop _generaldelta attribute (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY With changegroup moving to emitrevisions(), this revlog-specific attribute is no longer used and can be deleted. Good riddance. REPOSITORY rHG Mercurial

D4704: revlog: use proper version comparison during verify

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Verify appears to want to compare the changelog's revlog version number with the version number of filelogs and error if they are different. But what it was

D4705: localrepo: add missing join()

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg 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/D4705 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py

D4710: lfs: add repository feature denoting the use of LFS

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Whether LFS is enabled seems like a useful feature to expose. This will also facilitate some future work around LFS feature compatibility. REPOSITORY rHG

D4709: localrepo: define "features" on repository instances (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY There are a handful of attributes/methods on repository instances that describe the behavior of the repository. Furthermore, there is an unbound set of

D4615: wireprotov2: declare command arguments richly

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added inline comments. INLINE COMMENTS > wireprotov2server.py:602-605 > +if 'default' in meta and meta.get('required'): > +raise error.ProgrammingError('%s argument for command %s is > marked ' > + 'as required but has a

D4718: manifest: add rawsize() proxy (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY I'm not keen about doing this. But it unblocks efforts to remove "index" from the file storage interface. We will probably remove this once we have a better

D4722: revlog: new API to emit revision data

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY I recently refactored changegroup generation code to make it more storage agnostic. I made significant progress. But there is still a bit of work to be done.

Re: Potential BC break on largefiles/lfs

2018-09-24 Thread Gregory Szorc
On Thu, Sep 20, 2018 at 10:52 AM Matt Harbison wrote: > > On Sep 20, 2018, at 11:53 AM, Gregory Szorc > wrote: > > On Wed, Sep 19, 2018 at 8:28 PM Matt Harbison > wrote: > >> On Wed, 19 Sep 2018 21:41:20 -0400, Gregory Szorc >> wrote: >> >> > Currently, the largefiles and lfs extensions

D4720: filelog: drop index attribute (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The previous commit removed the last consumer of the "index" attribute on the file storage interface. The index is an extremely low-level data structure that

D4700: unionrepo: remove _constructmanifest()

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY It is unused after a previous refactor. Spotted in https://phab.mercurial-scm.org/D4641. REPOSITORY rHG Mercurial REVISION DETAIL

D4706: localrepo: validate directories before creating any

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY There is no meaningful change in behavior because wdir would already exist in the case where we raised RepoError. But I think the code is easier to read if we

D4712: lfs: don't add extension to hgrc after clone or share (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Now that repository loading in core supports automatically loading the lfs extension when the "lfs" requirement is present, we no longer need to update the

D4708: localrepo: support writing shared file (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Now that we can create a shared repository via creation options, we can handle other special actions related to share at repo creation time as well. One

D4716: lfs: don't add extension to hgrc after clone or share (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Now that repository loading in core supports automatically loading the lfs extension when the "lfs" requirement is present, we no longer need to update the

D4702: filelog: remove version attribute (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This was only used by verify code. The check it was used for is now implemented as part of the verifyintegrity() implementation. The attribute is now unused,

D4707: localrepo: support shared repo creation

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Previously, hg.share() had its own logic for creating a new repository on the filesystem. With the recent introduction of the createopts dict for passing

D4715: filelog: store filename directly on revlog instance

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This attribute is only used by LFS. It is used by one of the revlog flag processor functions, which gets an instance of the revlog - not the file storage type.

D4713: largefiles: automatically load largefiles extension when required (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This is very similar to what we just did for LFS but for largefiles. See recent commit messages for the rationale here. REPOSITORY rHG Mercurial REVISION

D4717: upgrade: report size of backing files, not internal storage size

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY upgrade.py is the only consumer of filelog.index, which I'd like to eliminate from the file storage interface. This commit changes the upgrade code to

D4724: wireprotov2server: port to emitrevisions()

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We now have a proper storage API to request data on multiple revisions. We can drop it into wire protocol version 2 with minimal effort. The new API

D4725: changegroup: port to emitrevisions() (issue5976)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We now have a unified API for emitting revision data from a storage backend. It handles sorting nodes and the complicated delta versus revision decisions for

D4726: revlog: drop emitrevisiondeltas() and associated functionality (API)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY emitrevisions() is the future! REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4726 AFFECTED FILES mercurial/changegroup.py

D4615: wireprotov2: declare command arguments richly

2018-09-24 Thread durin42 (Augie Fackler)
durin42 added a subscriber: indygreg. durin42 added a comment. > indygreg added inline comments. > > INLINE COMMENTS > >> wireprotov2server.py:602-605 >> +if 'default' in meta and meta.get('required'): >> +raise error.ProgrammingError('%s argument for

D4615: wireprotov2: declare command arguments richly

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added a comment. In https://phab.mercurial-scm.org/D4615#71677, @durin42 wrote: > No, actually - I was proposing *removing* `required` entirely, and *only* keying off the existence of a default. What you reduces us to only two valid states: required-with-no-default and

D4721: changegroup: remove reordering control (BC)

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added a subscriber: lothiraldan. indygreg added a comment. @lothiraldan: you are likely interested in this change because it is in the same space as sparse revlogs. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4721 To: indygreg, #hg-reviewers Cc:

D4728: keepalive: be more careful about self._rbuf when calling super impls

2018-09-24 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY In Python 3, HTTPResponse implements read() in terms of readinto(), which was calling back into our readinto(), which duplicates self._rbuf if it's not empty.

D4732: py3: use pycompat.strkwargs()

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Otherwise we get an error attempting to dispatch a command with arguments because we're passing a dict with bytes keys. REPOSITORY rHG Mercurial REVISION

D4731: py3: cast exception to bytes

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This was raising a TypeError on Python 3 and preventing most (all?) wireprotov2 commands from working. REPOSITORY rHG Mercurial REVISION DETAIL

D4701: verify: start to abstract file verification

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 added a comment. Not related to this patch specifically, but if you're redesigning verify APIs... One of the unresolved issues in LFS is how to handle verification. Right now, verify wants the actual blob data, so it downloads it one at a time, as needed, as part of

[PATCH 8 of 9 V2] py3: apply byteskwargs to contrib/perf

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537578867 14400 # Fri Sep 21 21:14:27 2018 -0400 # Node ID efe8b55207d20747f7083aa66976f9bbbd52fe27 # Parent 84c805bcb52ebf4450f04a3aaf0e125ee0c72326 py3: apply byteskwargs to contrib/perf diff --git a/contrib/perf.py b/contrib/perf.py ---

[PATCH 7 of 9 V2] py3: un-byteify strings around os.system() and os.devnull in contrib/perf

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537576080 14400 # Fri Sep 21 20:28:00 2018 -0400 # Node ID 84c805bcb52ebf4450f04a3aaf0e125ee0c72326 # Parent 3709e38b0d5b812e2f11f27f493e6f0e30def497 py3: un-byteify strings around os.system() and os.devnull in contrib/perf diff --git

D4710: lfs: add repository feature denoting the use of LFS

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg added a comment. In https://phab.mercurial-scm.org/D4710#71752, @mharbison72 wrote: > Is it worth doing this with largefiles too? (I can follow up when this settles out- I just wasn't sure what particular future work you had in mind, since the autoload on requires works

[PATCH 1 of 9 V2] py3: rename pycompat.getcwd() to encoding.getcwd() (API)

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537573703 14400 # Fri Sep 21 19:48:23 2018 -0400 # Node ID 1fcff747a558e32f9cb9d8411c256532455c10f8 # Parent d3d333ab167a5f0c23bd42a822732683d9afa221 py3: rename pycompat.getcwd() to encoding.getcwd() (API) We need to avoid os.getcwdb() on

[PATCH 2 of 9 V2] py3: don't use os.getcwdb() on Windows to avoid DeprecationWarnings

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537756604 14400 # Sun Sep 23 22:36:44 2018 -0400 # Node ID bf1934083fa5c3a97492ea112ddb23e8ccf78294 # Parent 1fcff747a558e32f9cb9d8411c256532455c10f8 py3: don't use os.getcwdb() on Windows to avoid DeprecationWarnings See also ac32685011a3.

[PATCH] py3: update missing module list in test-check-py3-compat.t for Windows

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537842750 14400 # Mon Sep 24 22:32:30 2018 -0400 # Node ID 48a1c0848e6abfaf707243567097710b262dbd09 # Parent 4527f507eb09ea26c9a419886c9e680ce1040642 py3: update missing module list in test-check-py3-compat.t for Windows diff --git

D4729: py3: whitelist two more passing tests

2018-09-24 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Caught by the ratchet, but initially only the non-legacy path of test-clone-uncompressed.t was passing. That required the

[Bug 5993] New: absorb -i can crash

2018-09-24 Thread mercurial-bugs
https://bz.mercurial-scm.org/show_bug.cgi?id=5993 Bug ID: 5993 Summary: absorb -i can crash Product: Mercurial Version: default branch Hardware: PC OS: Windows Status: UNCONFIRMED Severity: bug

D4711: localrepo: automatically load lfs extension when required (BC)

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 accepted this revision. mharbison72 added a comment. I agree with the rationale. Thanks for this. I guess we need to figure out how to handle push/pull upgrades before doing the same to clone, because all 3 need a wire protocol capability to work. And if we unconditionally

D4714: lfs: access revlog directly

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 accepted this revision. mharbison72 added a comment. Seems reasonable to me. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4714 To: indygreg, #hg-reviewers, mharbison72 Cc: mharbison72, mercurial-devel

[PATCH 5 of 9 V2] py3: switch contrib/perf from xrange to pycompat.xrange

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537575194 14400 # Fri Sep 21 20:13:14 2018 -0400 # Node ID 2f15c0bb3936f8f929e6af509778e3a6ef8ed704 # Parent f0849e47b29986ba6bc765226cba3bfb50c9c3ee py3: switch contrib/perf from xrange to pycompat.xrange diff --git a/contrib/perf.py

[PATCH 6 of 9 V2] py3: work around the lack of sys.maxint in contrib/perf

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537575373 14400 # Fri Sep 21 20:16:13 2018 -0400 # Node ID 3709e38b0d5b812e2f11f27f493e6f0e30def497 # Parent 2f15c0bb3936f8f929e6af509778e3a6ef8ed704 py3: work around the lack of sys.maxint in contrib/perf diff --git a/contrib/perf.py

D4728: keepalive: be more careful about self._rbuf when calling super impls

2018-09-24 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG1cf1680b0554: keepalive: be more careful about self._rbuf when calling super impls (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D4729: py3: whitelist two more passing tests

2018-09-24 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG94c25f694ec3: py3: whitelist two more passing tests (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4729?vs=11337=11339

D4710: lfs: add repository feature denoting the use of LFS

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 accepted this revision. mharbison72 added a comment. Is it worth doing this with largefiles too? (I can follow up when this settles out- I just wasn't sure what particular future work you had in mind, since the autoload on requires works without it.) REPOSITORY rHG Mercurial

mercurial@39791: 33 new changesets

2018-09-24 Thread Mercurial Commits
33 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/aeb2812f304d changeset: 39759:aeb2812f304d user:Matt Harbison date:Fri Sep 21 00:37:03 2018 -0400 summary: py3: fix a type error in hghave.has_hardlink

[PATCH 4 of 9 V2] py3: handle sysstr conversion around get/set attr in contrib/perf

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537575036 14400 # Fri Sep 21 20:10:36 2018 -0400 # Node ID f0849e47b29986ba6bc765226cba3bfb50c9c3ee # Parent 788eb3e31f3a6f5edca3125cc08dc74e75cb936e py3: handle sysstr conversion around get/set attr in contrib/perf diff --git

[PATCH 3 of 9 V2] py3: proxy posixfile objects to re-add a useful 'name' attribute on Windows

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537574587 14400 # Fri Sep 21 20:03:07 2018 -0400 # Node ID 788eb3e31f3a6f5edca3125cc08dc74e75cb936e # Parent bf1934083fa5c3a97492ea112ddb23e8ccf78294 py3: proxy posixfile objects to re-add a useful 'name' attribute on Windows This file

D4734: py3: add b'' prefixes to wire protocol test

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Otherwise the CBOR encoder fails on Python 3 due to lacking support for encoding str/unicode. 1. skip-blame just some b'' prefixes REPOSITORY rHG

[PATCH 9 of 9 V2] py3: convert arguments, cwd and env to native strings when spawning subprocess

2018-09-24 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1537678024 14400 # Sun Sep 23 00:47:04 2018 -0400 # Node ID 4527f507eb09ea26c9a419886c9e680ce1040642 # Parent efe8b55207d20747f7083aa66976f9bbbd52fe27 py3: convert arguments, cwd and env to native strings when spawning subprocess This keeps

D4710: lfs: add repository feature denoting the use of LFS

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 added a comment. In https://phab.mercurial-scm.org/D4710#71757, @indygreg wrote: > In https://phab.mercurial-scm.org/D4710#71752, @mharbison72 wrote: > > > Is it worth doing this with largefiles too? (I can follow up when this settles out- I just wasn't sure what

D4730: py3: ensure _start_response() is called with system string

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This was preventing HTTP 500's from being sent in Python 3. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4730 AFFECTED FILES

D4733: py3: cast exception to bytes

2018-09-24 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY In order to appease Python 3. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4733 AFFECTED FILES mercurial/wireprotoframing.py

D4642: localrepo: iteratively derive local repository type

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 added a comment. In https://phab.mercurial-scm.org/D4642#71399, @indygreg wrote: > In https://phab.mercurial-scm.org/D4642#71269, @yuja wrote: > > > > +Extensions should wrap these factory functions to customize repository type > > > +creation. Note that an

D4712: lfs: don't add extension to hgrc after clone or share (BC)

2018-09-24 Thread mharbison72 (Matt Harbison)
mharbison72 accepted this revision. mharbison72 added a comment. LGTM, thanks. INLINE COMMENTS > wrapper.py:211 > self.repo.vfs.append( > 'hgrc', > util.tonativeeol('\n[extensions]\nlfs=\n')) > The convert wrapper updates .hgrc too.