- Nov 04, 2018
-
-
Yuya Nishihara authored
These attributes are important to provide a GUI prompt to user.
-
- Nov 08, 2018
-
-
Yuya Nishihara authored
This helps embedding '$' in the script.
-
- Jan 18, 2015
-
-
Yuya Nishihara authored
This provides a 'type' attribute to command-server clients, which seems more solid than relying on 'ui.<type>' labels. In future patches, type='progress' will be added to send raw progress information.
-
Yuya Nishihara authored
This is loosely based on the idea of the TortoiseHg's pipeui extension, which attaches ui.label to message text so the command-server client can capture prompt text, for example. https://bitbucket.org/tortoisehg/thg/src/4.7.2/tortoisehg/util/pipeui.py I was thinking that this functionality could be generalized to templating, but changed mind as doing template stuff would be unnecessarily complex. It's merely a status message, a simple serialization option should suffice. Since this slightly changes the command-server protocol, it's gated by a config knob. If the config is enabled, and if it's supported by the server, "message-encoding: <name>" is advertised so the client can stop parsing 'o'/'e' channel data and read encoded messages from the 'm' channel. As we might add new message encodings in future releases, client can specify a list of encoding names in preferred order. This patch includes 'cbor' encoding as example. Perhaps, 'json' should be supported as well.
-
- Nov 07, 2018
-
-
Yuya Nishihara authored
Spotted by the next patch.
-
- Jan 18, 2015
-
-
Yuya Nishihara authored
This will be set by the command server. See the next patch.
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
I was confused how it's working while reviewing fb490d798be0, "share: reload repo after adjusting it in postshare()."
-
- Nov 11, 2018
-
-
durin42 authored
Differential Revision: https://phab.mercurial-scm.org/D5254
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
Since 9aeb9e2d28a7, encoded filenames are filtered by the narrow matcher, which is clearly wrong.
-
Yuya Nishihara authored
This makes encoded filenames differ from the original names.
-
Matt Harbison authored
This reverts 1ea6772fb415.
-
Matt Harbison authored
This is useful in TortoiseHg for example, which has until recently just added all names in the `phasenames` list to the context menu that changes the phase. The ones not supported by the command would just error out.
-
- Nov 07, 2018
-
-
Boris Feld authored
We saw more of these a while back. Having more data available would be nice.
-
- Nov 10, 2018
-
-
Yuya Nishihara authored
-
- Nov 09, 2018
-
-
Martin von Zweigbergk authored
Upstream commit c5e6c1ba1c79 (hg: don't reuse repo instance after unshare(), 2018-09-12) poisoned the repo instance after unshare(). That made `hg unshare` fail with remotefilelog because we tried to close the fileserverclient after dispatch by accessing it via the repo. This patch fixes that by storing the reference to the fileserverclient at the beginning of dispatch. An analogous patch was sent for remotefilelog version in FB's hg-experimental as D5246. Differential Revision: https://phab.mercurial-scm.org/D5253
-
Martin von Zweigbergk authored
hg.share() now returns an already-reloaded repo, so let's just use that. (This would have failed test-subrepo-recursion.t without the previous patch.) Differential Revision: https://phab.mercurial-scm.org/D5252
-
Martin von Zweigbergk authored
When sharing a repo that's using remotefilelog, the update that happens at the end of the `hg share` call does not see the remote repo path that's copied in hg.postshare(). This patch reloads the repo after hg.postshare() to address that. This changes a subrepo test case. Note that `hg share -U; hg co tip` worked there before, so I don't see see why `hg share` should fail. I also don't know what a "locally referenced subrepo". So maybe this is fixing a bug? Hopefully it's not breaking something someone actually cares about at least. Maybe someone who knows and cares about subrepos can review this. Differential Revision: https://phab.mercurial-scm.org/D5251
-
Martin von Zweigbergk authored
The proper way to get the `hg strip` command has been via the "strip" extension since 2013. Differential Revision: https://phab.mercurial-scm.org/D5250
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D5249
-
Martin von Zweigbergk authored
They were added in https://bitbucket.org/facebook/hg-experimental/commits/fdcad37a6a68cfbaf5920f3eeaa0cc9cae42bd26, which says this: When remotefilelog moved from its own repo, the tests needed to be updated to adjust the PYTHONPATH to ensure the in-repo remotefilelog was loaded instead of the system one. This meant any local runs of remotefilelog tests would've been using the system remotefilelog unless the user had manually set the PYTHONPATH themselves. That doesn't seem relevant with remotefilelog in core. Differential Revision: https://phab.mercurial-scm.org/D5248
-
Martin von Zweigbergk authored
Differential Revision: https://phab.mercurial-scm.org/D5247
-
- Nov 08, 2018
-
-
Danny Hooper authored
The extra field prevents sequential invocations of fix from producing the same hash twice. Previously, this could cause problems because it would create an obsolescence cycle instead of the expected new successor. This change also adds an explicit check for whether a new revision should be committed. Until now, the code relied on memctx.commit() to quietly do nothing if the node already exists. Because of the new extra field, this no longer covers the case where we don't want to replace an unchanged node. Differential Revision: https://phab.mercurial-scm.org/D5245
-
Danny Hooper authored
This allows changes to the hashes produced by fix to not needlessly modify this area of the test. Differential Revision: https://phab.mercurial-scm.org/D5244
-
- Nov 07, 2018
-
-
Kyle Lippincott authored
I want to add tests after these tests that create a new repo and use it, and was confused for a bit as to why they were seeing different behavior than I expected. Differential Revision: https://phab.mercurial-scm.org/D5242
-
Kyle Lippincott authored
Differential Revision: https://phab.mercurial-scm.org/D5241
-
- Nov 06, 2018
-
-
Danny Hooper authored
This could be accomplished by using wrapper scripts, but that would diminish the usefulness of the incremental formatting logic. Configuring execution order along with other things in the hgrc is probably more convenient anyway. This change highlights some awkwardness with suboptions and default values, which should be addressed separately. Differential Revision: https://phab.mercurial-scm.org/D5237
-
- Nov 07, 2018
-
-
Augie Fackler authored
I'm curious how the import checker manages to be so much more pedantic in Python 3, but not enough to bother exploring. Differential Revision: https://phab.mercurial-scm.org/D5240
-
Martin von Zweigbergk authored
`sort -r` is better code "formatter" than `tac` since it's stable. It's also portable so we don't need to reimplement it in Python. Differential Revision: https://phab.mercurial-scm.org/D5239
-
Augie Fackler authored
Introduce a tac.py helper and use it. Sigh. Differential Revision: https://phab.mercurial-scm.org/D5238
-
- Nov 06, 2018
-
-
Augie Fackler authored
This has two lines that are poorly formatted, both right after PyObject_HEAD macros. It's possible that in the future there will be a feature to tell clang-format that a token includes an end-of-line character (in this case the ;), but for now I'm willing to live with two poorly-formatted lines in a struct definition in exchange for not thinking about how this file is formatted. Differential Revision: https://phab.mercurial-scm.org/D5234
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5233
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5232
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D5236
-
- Nov 05, 2018
-
-
Boris Feld authored
The option controls if we'll test the provided delta first. This is the current default behavior for unbundle.
-
Boris Feld authored
This source will use the stored delta.
-
Boris Feld authored
This source will use the smallest of the possible diff against parent.
-
Boris Feld authored
This source will use a diff against p2 if it exists and fall back to p1 otherwise.
-
Boris Feld authored
This source will use a diff against p1 in all case.
-
- Oct 19, 2018
-
-
Boris Feld authored
We want to test performance associated witch various way to add a new revision. They will be specified using this new argument.
-