Page MenuHomePhabricator

Don't give Mercurial empty string as a remote name
ClosedPublic

Authored by epriestley on Nov 21 2015, 5:34 PM.
Tags
None
Referenced Files
F14024318: D14531.diff
Thu, Nov 7, 8:12 AM
F14008681: D14531.diff
Wed, Oct 30, 4:23 AM
F14005214: D14531.id35152.diff
Sun, Oct 27, 9:20 AM
F13998858: D14531.diff
Thu, Oct 24, 11:33 AM
Unknown Object (File)
Oct 7 2024, 12:56 PM
Unknown Object (File)
Oct 4 2024, 1:47 AM
Unknown Object (File)
Oct 1 2024, 5:15 AM
Unknown Object (File)
Sep 29 2024, 2:04 PM
Subscribers

Details

Summary

Fixes T9807. We currently run commands like this in some cases:

hg push -r master ''

From T9807, it seems that older Mercurial treated '' in the same way it would treat no argument, while newer Mercurial does not.

Passing '' is unusual and not intended.

Test Plan

From T9807, @cspeckmim confirmed that running this command without the '' works, and @jgelgens tested the patch itself.

I didn't actually run this code myself, since I don't have Mercurial 3.6.1 installed and the fix seems straightfoward.

Diff Detail

Repository
rARC Arcanist
Branch
hgnew
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8965
Build 10525: Run Core Tests
Build 10524: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Don't give Mercurial empty string as a remote name.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
epriestley added a subscriber: cspeckmim.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 21 2015, 5:35 PM
This revision was automatically updated to reflect the committed changes.