Page MenuHomePhabricator
Feed Advanced Search

Apr 22 2022

cspeckmim added a comment to T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing.

Browsing Diffusion (namely, loading a file while the published changeset is head, and trying to Skip past commit):

I couldn't immediately reproduce this; it's also probably a bit of a messy fix.

I'll plan to investigate further if possible. I believe in this case the repository was running in observed mode rather than hosted in case that might be a factor.

Apr 22 2022, 2:23 AM · Arcanist, Mercurial

Apr 20 2022

epriestley added a comment to T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing.

Browsing Revision

Apr 20 2022, 6:31 PM · Arcanist, Mercurial
epriestley added a revision to T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing: D21761: Fix an issue where Herald may fail to extract content from an empty commit.
Apr 20 2022, 4:53 PM · Arcanist, Mercurial
epriestley added a revision to T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing: D21760: Fix an issue where we may "min()" an empty array when viewing a revision with no changesets.
Apr 20 2022, 4:37 PM · Arcanist, Mercurial

Sep 23 2021

cspeckmim added a revision to T13668: Landing a string of dependent revisions which contains branched commits will result in stripping/pruning those branched commits: D21724: Update Mercurial's cascading of commit sets to rebase non-landed commits.
Sep 23 2021, 3:09 AM · Mercurial, Arcanist

Sep 22 2021

cspeckmim updated the task description for T13668: Landing a string of dependent revisions which contains branched commits will result in stripping/pruning those branched commits.
Sep 22 2021, 2:10 AM · Mercurial, Arcanist
cspeckmim created T13668: Landing a string of dependent revisions which contains branched commits will result in stripping/pruning those branched commits.
Sep 22 2021, 2:06 AM · Mercurial, Arcanist

Sep 16 2021

cspeckmim added a revision to T13665: The "arc amend" workflow does not work on Mercurial repositories: D21723: Make corrections to the "arc amend" workflow in Mercurial repositories to be compatible with PHP 5+.
Sep 16 2021, 6:54 PM · Mercurial, Arcanist

Sep 14 2021

cspeckmim updated the task description for T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing.
Sep 14 2021, 9:59 PM · Arcanist, Mercurial
cspeckmim updated the task description for T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing.
Sep 14 2021, 9:55 PM · Arcanist, Mercurial
cspeckmim created T13667: Landing a mercurial revision which has no changes causes errors on the revision page as well as history viewing.
Sep 14 2021, 9:49 PM · Arcanist, Mercurial

Sep 5 2021

cspeckmim closed T13665: The "arc amend" workflow does not work on Mercurial repositories as Resolved by committing rARCd246a0656259: Update ArcanistMercurialAPI to support getting the current commit ref.
Sep 5 2021, 7:25 PM · Mercurial, Arcanist

Sep 4 2021

cspeckmim added a revision to T13665: The "arc amend" workflow does not work on Mercurial repositories: D21716: Update ArcanistMercurialAPI to support getting the current commit ref.
Sep 4 2021, 4:56 AM · Mercurial, Arcanist

Sep 3 2021

cspeckmim updated the task description for T13665: The "arc amend" workflow does not work on Mercurial repositories.
Sep 3 2021, 9:47 PM · Mercurial, Arcanist
cspeckmim added a project to T13665: The "arc amend" workflow does not work on Mercurial repositories: Mercurial.
Sep 3 2021, 2:25 PM · Mercurial, Arcanist

Jul 26 2021

epriestley closed T13659: `arc land` may fail with missing rebase extension as Resolved.

I caught one cosmetic issue in D21711, but this works properly for me locally now. Thanks!

Jul 26 2021, 6:49 PM · Arcanist, Mercurial
epriestley added a revision to T13659: `arc land` may fail with missing rebase extension: D21711: Name extension as "arc-hg", not "arg-hg".
Jul 26 2021, 6:49 PM · Arcanist, Mercurial

Jul 21 2021

cspeckmim added a revision to T13659: `arc land` may fail with missing rebase extension: D21706: Update other usages of "hg rebase" to use the new extension-enabling function.
Jul 21 2021, 8:59 PM · Arcanist, Mercurial
epriestley added a comment to T13659: `arc land` may fail with missing rebase extension.

(After picking up D21697, the approach works properly in my environment where I originally ran into this, but there are a couple of rebase calls still present in ArcanistMercurialLandEngine that don't use the new API yet.)

Jul 21 2021, 4:44 PM · Arcanist, Mercurial

Jul 20 2021

cspeckmim added a revision to T13659: `arc land` may fail with missing rebase extension: D21697: Refactor how Mercurial runs commands that require extensions.
Jul 20 2021, 4:36 AM · Arcanist, Mercurial

Jul 19 2021

cspeckmim added a comment to T13659: `arc land` may fail with missing rebase extension.

I'm also surprised that rebase extension isn't enabled by default. I guess I have been turning it on in my default setup.

Jul 19 2021, 5:42 PM · Arcanist, Mercurial
cspeckmim claimed T13659: `arc land` may fail with missing rebase extension.

I like that idea. I'll take a look.

Jul 19 2021, 5:41 PM · Arcanist, Mercurial
epriestley added a comment to T13659: `arc land` may fail with missing rebase extension.

...perhaps we should consider a way to do this automatically or at least less-manually.

Jul 19 2021, 4:58 PM · Arcanist, Mercurial
epriestley triaged T13659: `arc land` may fail with missing rebase extension as Low priority.
Jul 19 2021, 4:32 PM · Arcanist, Mercurial

Mar 17 2021

epriestley moved T12618: Parse multiple commits and commit metadata from "hg log --patch" and "hg export" from Backlog to Diff Parsing on the Differential board.
Mar 17 2021, 7:07 PM · Arcanist, Mercurial, Differential, Conduit, Feature Request

Jun 11 2020

epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21351: Improve "--hold", save/restore state, bookmark creation, and some warnings for "arc land" in Mercurial.
Jun 11 2020, 12:08 AM · Mercurial, Arcanist

Jun 10 2020

epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21350: Correct some minor "arc land" workflow issues in Mercurial.
Jun 10 2020, 11:18 PM · Mercurial, Arcanist
epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21349: Use a "branchmap" call to identify remote branches in "arc-hg".
Jun 10 2020, 10:36 PM · Mercurial, Arcanist
epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21348: In "arc land" in Mercurial, inch closer to making complex branch/bookmark workflows function.
Jun 10 2020, 10:13 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

The current ls-remote script as written does not actually work; I think it only returns branches in the remote that:

Jun 10 2020, 10:04 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

The actual extension is a 100-line Python script...
The real Pandora's box this opens...

Jun 10 2020, 9:29 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

The real Pandora's box this opens is that now that arc is exposed to whatever issues arise with the raw Python/Mercurial API, there's a much weaker argument against not writing more extensions.

Jun 10 2020, 3:49 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I put the extension in phabricator/ earlier by accident, but that was just me goofing my local paths. The extension is purely client side: hg can do ls-remote just fine (it's just "do hg pull, but stop half way through"), there's just no UI command for it.

Jun 10 2020, 3:42 PM · Mercurial, Arcanist
cspeckmim added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

Would the use of an extension make additional setup necessary for observed repositories vs. hosted repositories, or are observed repositories out of scope for these set of changes?

Jun 10 2020, 3:35 PM · Mercurial, Arcanist
epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21344: In "arc land" in Mercurial, show a tidier "ls-remote" command.
Jun 10 2020, 3:30 PM · Mercurial, Arcanist

Jun 9 2020

epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I am considering reviving the command server since I don't remember it having any critical failures, but offhand:

Jun 9 2020, 5:44 PM · Mercurial, Arcanist
epriestley added a revision to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads: D21343: Disambiguate various types of Mercurial remote markers with "hg arc-ls-remote".
Jun 9 2020, 5:27 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I'm going to try writing a Mercurial extension instead.

Jun 9 2020, 4:23 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I believe this is roughly the form we end up with, which is completely ridiculous and extremely difficult to test or have any confidence in:

Jun 9 2020, 3:27 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

As a tool developer, this kind of thing is infuriating:

Jun 9 2020, 3:14 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

This is also made more complicated because Mercurial branches and bookmarks are all in a single shared namespace to some degree. I'm not sure what happens if you try to fetch a bookmark that conflicts with a local branch name (presumably: it renames it as "divergent"?) or try to fetch a branch which conflicts with a local bookmark name (presumably: fails in a way that's hard to detect?).

Jun 9 2020, 2:14 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

When the user specifies arc land --onto marker, I'd like to identify whether marker is a bookmark or branch.

Jun 9 2020, 1:58 PM · Mercurial, Arcanist
epriestley moved T13214: When there is no remote Mercurial URI, `hg paths default` exits with an error code from Backlog to arc land on the Arcanist board.
Jun 9 2020, 1:07 PM · Mercurial, Arcanist

Jun 5 2020

epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

Just extracting a few blocks of old code for reference:

Jun 5 2020, 6:26 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I may actually make the minimum version whichever version has this fix:

Jun 5 2020, 5:39 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

Today, arc land in Mercurial does not support the "merge" land strategy.

Jun 5 2020, 2:55 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

I am dropping support for versions of Mercurial older than 2.1.1 (released in May, 2012). This is the first version that: (a) has phases and (b) does not exit 1 when hg pull succeeds but fetches no changes.

Jun 5 2020, 2:15 PM · Mercurial, Arcanist
epriestley added a comment to T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.

After changes connected to T13546, the git workflow now looks like this:

Jun 5 2020, 6:15 AM · Mercurial, Arcanist

Jun 4 2020

epriestley moved T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads from Backlog to arc land on the Arcanist board.
Jun 4 2020, 3:09 AM · Mercurial, Arcanist

Feb 18 2019

vostok4 added a comment to T6118: Support for Mercurial extensions in hosted repositories.

I'd propose for simplicity that the focus switch from largefiles to lfs support for Mercurial repositories. lfs has been added to Phabricator for Git already T7789 and it seems that there'd be less work involved to piggyback on that.

Feb 18 2019, 10:55 PM · Mercurial, Diffusion

Oct 25 2018

epriestley triaged T13214: When there is no remote Mercurial URI, `hg paths default` exits with an error code as Low priority.
Oct 25 2018, 1:54 AM · Mercurial, Arcanist

May 16 2018

cspeckmim added a comment to T9548: Support Mercurial's bundle2 wire protocol.

Mercurial 4.6 has added hg help internals.bundle2 which will render a book to your console with details about the format/protocol. I did a high-speed skim and then tried out hg help internals.changegroup on a whim which produced an even longer book about the stream protocol (SSH only maybe?).

May 16 2018, 1:13 AM · Diffusion, Mercurial

Apr 11 2018

DanielO added a comment to T9450: "abort: not a Mercurial bundle" with Mercurial 3.5>=.

Actually turns out that the work around isn't reliable - I still get that error occasionally (I'm using SSH)

Apr 11 2018, 2:48 AM · Mercurial
DanielO added a comment to T9450: "abort: not a Mercurial bundle" with Mercurial 3.5>=.

The same problem occurred on my site with the latest Phabricator and the latest Mercurial 3.7.2 installed on both sides.

Interestingly, it can be cured setting a special development debug flag for in the Mercurial configuration file:
in /etc/mercurial/hgrc or in vcs-user's ${HOME}/.hgrc adding the following snippet

[devel]
bundle2.debug = true

caused a hg push to a hosted Phabricator repository to work without a problem. But do not ask me, why.

Apr 11 2018, 2:14 AM · Mercurial

Mar 11 2018

kvaster added a comment to T13036: Fix issues with recent Mercurial wire protocol versions.

For recent versions of mercurial to work over http I had to force httpheader=1024 in code which filters bundle2 capabilities.

Mar 11 2018, 8:21 PM · Mercurial

Mar 5 2018

epriestley moved T12618: Parse multiple commits and commit metadata from "hg log --patch" and "hg export" from Backlog to Diff Parsing on the Arcanist board.
Mar 5 2018, 2:16 PM · Arcanist, Mercurial, Differential, Conduit, Feature Request
epriestley moved T12841: Using `arc patch` on a revision with dependency leaves bookmark on the applied commit from Backlog to arc patch on the Arcanist board.
Mar 5 2018, 2:15 PM · Arcanist, Mercurial, Bug Report

Jan 25 2018

epriestley closed T13036: Fix issues with recent Mercurial wire protocol versions as Resolved.

Presuming this is resolved since we've seen at least some confirmation that it fixed issues and aren't aware of any remaining outstanding problems.

Jan 25 2018, 2:56 AM · Mercurial

Jan 16 2018

epriestley updated the task description for T8768: Under Mercurial, `arc patch` mishandles files with spaces in them .
Jan 16 2018, 10:20 PM · Git, Mercurial, Arcanist
epriestley added a comment to T8768: Under Mercurial, `arc patch` mishandles files with spaces in them .

I'm not totally sure all variants of this are fixed, but I don't know how to reproduce any remaining issues.

Jan 16 2018, 10:15 PM · Git, Mercurial, Arcanist
epriestley closed T8768: Under Mercurial, `arc patch` mishandles files with spaces in them as Resolved by committing rARC2e02332216c6: Add trailing tabs when generating synthetic Git diffs for files with spaces.
Jan 16 2018, 9:57 PM · Git, Mercurial, Arcanist
epriestley added a comment to T8768: Under Mercurial, `arc patch` mishandles files with spaces in them .

I filed a summary of this in the Mercurial upstream to waste someone else's time so I feel better:

Jan 16 2018, 5:21 PM · Git, Mercurial, Arcanist
epriestley added a comment to T8768: Under Mercurial, `arc patch` mishandles files with spaces in them .

This is an explicit behavior in Mercurial and dates from 2007:

Jan 16 2018, 4:49 PM · Git, Mercurial, Arcanist
epriestley added a revision to T8768: Under Mercurial, `arc patch` mishandles files with spaces in them : D18869: Add trailing tabs when generating synthetic Git diffs for files with spaces.
Jan 16 2018, 4:26 PM · Git, Mercurial, Arcanist
epriestley added a comment to T8768: Under Mercurial, `arc patch` mishandles files with spaces in them .

The rule Git uses appears to literally be "does the filename include a space":

Jan 16 2018, 4:01 PM · Git, Mercurial, Arcanist
epriestley renamed T8768: Under Mercurial, `arc patch` mishandles files with spaces in them from `arc patch` fails to add two files starting by the same word, then a space on hg to Under Mercurial, `arc patch` mishandles files with spaces in them .
Jan 16 2018, 3:42 PM · Git, Mercurial, Arcanist

Jan 9 2018

epriestley closed T8303: Mercurial hooks as Invalid.

I'm going to close this since it was mostly answered and the remaining questions (about custom extension development) are outside the scope of modern support. See T13039 for a followup about numeric fields in Herald.

Jan 9 2018, 4:55 PM · Mercurial, Diffusion
epriestley updated the task description for T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads.
Jan 9 2018, 4:44 PM · Mercurial, Arcanist
epriestley closed T9555: Exception with 'arc land' after manually rebasing a revision and resolving conflicts, leaves repository in unclean state as Invalid.

Ah, thanks! This is probably effectively covered by T9948 anyway -- one of the major changes for the Git flavor of that (T9657) was "put things back the way they were when anything goes wrong, even if we discard merge/rebase work", and that seems like a better behavior. I'll make a note there just in case.

Jan 9 2018, 4:42 PM · Arcanist, Mercurial

Jan 8 2018

cspeckmim added a comment to T9555: Exception with 'arc land' after manually rebasing a revision and resolving conflicts, leaves repository in unclean state.

I tried a few scenarios for this and wasn't able to reproduce

  1. Single commit in diff that creates conflict
  2. Multiple commits in diff that all create conflicts
  3. Single commit in diff where first commit does not create conflict but second does
Jan 8 2018, 5:58 PM · Arcanist, Mercurial

Jan 5 2018

epriestley moved T8768: Under Mercurial, `arc patch` mishandles files with spaces in them from Backlog to arc patch on the Mercurial board.
Jan 5 2018, 6:56 PM · Git, Mercurial, Arcanist
epriestley moved T12453: Using `arc patch` will leave behind a bookmark when answering 'No' in attempt to apply to current state in Mercurial repository from Backlog to arc patch on the Mercurial board.
Jan 5 2018, 6:56 PM · Arcanist, Mercurial, Bug Report
epriestley moved T12841: Using `arc patch` on a revision with dependency leaves bookmark on the applied commit from Backlog to arc patch on the Mercurial board.
Jan 5 2018, 6:56 PM · Arcanist, Mercurial, Bug Report
epriestley moved T9555: Exception with 'arc land' after manually rebasing a revision and resolving conflicts, leaves repository in unclean state from Backlog to arc land on the Mercurial board.
Jan 5 2018, 6:55 PM · Arcanist, Mercurial
epriestley moved T9948: Modernize "arc land" for Mercurial: bookmark-to-branch, branch-to-self, multiple heads from Backlog to arc land on the Mercurial board.
Jan 5 2018, 6:55 PM · Mercurial, Arcanist

Jan 4 2018

epriestley added a comment to T13036: Fix issues with recent Mercurial wire protocol versions.

After D18857, I'm not aware of any remaining, reproducible issues with Mercurial. If you're still encountering protocol issues after upgrading through D18857, let me know how to reproduce the problem you're seeing.

Jan 4 2018, 10:32 PM · Mercurial
epriestley closed T9548: Support Mercurial's bundle2 wire protocol as Resolved.

T13036 is a more focused rebrand of this issue, since this has a lot of philosophy and not a lot of actionable reproduction steps. The three line fix in D18857 may have resolved these issues.

Jan 4 2018, 10:30 PM · Diffusion, Mercurial
epriestley added a comment to T13036: Fix issues with recent Mercurial wire protocol versions.

Mercurial's protocol negotiation presumably considers the size of the change being transmitted in selecting the protocol format

Jan 4 2018, 10:28 PM · Mercurial
epriestley added a revision to T13036: Fix issues with recent Mercurial wire protocol versions: D18859: Add a couple of clarifying comments to the Mercurial protocol parser.
Jan 4 2018, 10:13 PM · Mercurial
epriestley added a revision to T13036: Fix issues with recent Mercurial wire protocol versions: D18857: Fix a Mercurial wire protocol parser issue when we receive a length frame before any data.
Jan 4 2018, 10:06 PM · Mercurial
epriestley added a comment to T13036: Fix issues with recent Mercurial wire protocol versions.

I think D18857 fixes the pipe issues. Here's the problem:

Jan 4 2018, 10:04 PM · Mercurial
epriestley added a revision to T13036: Fix issues with recent Mercurial wire protocol versions: D18856: Remove an obsolete comment about Mercurial SSH error behavior.
Jan 4 2018, 8:50 PM · Mercurial
epriestley added a revision to T13036: Fix issues with recent Mercurial wire protocol versions: D18855: Remove nonfunctional Mercurial "bundle2" capability filtering from SSH pathway.
Jan 4 2018, 8:27 PM · Mercurial
epriestley added a comment to T13036: Fix issues with recent Mercurial wire protocol versions.

Here's some evidence [that filtering bundle2] doesn't work:
we attempt to filter the protocol and tell the client that we don't support bundle2

Jan 4 2018, 8:20 PM · Mercurial
epriestley triaged T13036: Fix issues with recent Mercurial wire protocol versions as Normal priority.
Jan 4 2018, 7:59 PM · Mercurial
epriestley renamed T10900: Repository content search with `hg grep` returns matches found in old versions of files from Grep file content returns matches found in old versions of files to Repository content search with `hg grep` returns matches found in old versions of files.
Jan 4 2018, 7:40 PM · Mercurial, Diffusion
epriestley moved T10900: Repository content search with `hg grep` returns matches found in old versions of files from Backlog to Far Future on the Mercurial board.
Jan 4 2018, 7:40 PM · Mercurial, Diffusion
epriestley added a comment to T10900: Repository content search with `hg grep` returns matches found in old versions of files.

Actually, this is less crazy than I thought.

Jan 4 2018, 7:39 PM · Mercurial, Diffusion
epriestley added a comment to T10900: Repository content search with `hg grep` returns matches found in old versions of files.

This appears to date back to the introduction of the feature in D5738, where I suggested we use ancestors() without a legitimate reason (or maybe very old Mercurial had weird behavior).

Jan 4 2018, 7:26 PM · Mercurial, Diffusion
epriestley moved T10753: Remove Mercurial daemon working copy operations from Backlog to Clustering on the Mercurial board.
Jan 4 2018, 7:19 PM · Infrastructure, Daemons, Diffusion, Mercurial
epriestley moved T6118: Support for Mercurial extensions in hosted repositories from Backlog to Far Future on the Mercurial board.
Jan 4 2018, 7:14 PM · Mercurial, Diffusion
epriestley merged task T6112: Arcanist can not upload binaries when use Mercurial on Windows into T8298: Fix Windows Escaping.
Jan 4 2018, 7:14 PM · Mercurial, Arcanist
epriestley closed T7407: Problem with Mercurial 3.1.2 as Invalid.

We can't reproduce this, and can't fix issues we can't reproduce.

Jan 4 2018, 7:12 PM · Mercurial

Nov 21 2017

quark.zju added a comment to T13012: Mercurial "--config" and "--debugger" command injection vulnerability.

That's a good point! I wish it was designed like that since the beginning. I guess it won't happen with the current compatibility rules since it is likely to break automation.

Nov 21 2017, 11:03 PM · Mercurial, Security
epriestley added a comment to T13012: Mercurial "--config" and "--debugger" command injection vulnerability.

In theory, you could require --config appear between hg and foo in hg foo .... This is already a valid position for --config (for example, hg --config x=y foo is valid), and already not a valid position for foo flags (for example, hg --branch default log is not valid).

Nov 21 2017, 9:26 PM · Mercurial, Security
quark.zju added a comment to T13012: Mercurial "--config" and "--debugger" command injection vulnerability.

https://phab.mercurial-scm.org/D1483 should make it possible to use -- to defend against non-flag user input. For inputs that are flags, use the form --flag=X and avoid --flag X.

Nov 21 2017, 9:09 PM · Mercurial, Security

Nov 13 2017

epriestley closed T13012: Mercurial "--config" and "--debugger" command injection vulnerability as Resolved.

We'll use the hardened mode once it's available, but I don't think we expect to take any further action here until then.

Nov 13 2017, 9:01 PM · Mercurial, Security

Nov 10 2017

epriestley updated the task description for T13012: Mercurial "--config" and "--debugger" command injection vulnerability.
Nov 10 2017, 5:04 PM · Mercurial, Security
epriestley updated the task description for T13012: Mercurial "--config" and "--debugger" command injection vulnerability.
Nov 10 2017, 5:03 PM · Mercurial, Security
epriestley updated the task description for T13012: Mercurial "--config" and "--debugger" command injection vulnerability.
Nov 10 2017, 4:58 PM · Mercurial, Security