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
F17742963: D14531.diff
Mon, Jul 21, 1:19 PM
Unknown Object (File)
Jun 20 2025, 5:46 AM
Unknown Object (File)
Jun 18 2025, 2:12 AM
Unknown Object (File)
Jun 17 2025, 4:42 AM
Unknown Object (File)
May 10 2025, 6:36 AM
Unknown Object (File)
May 1 2025, 4:32 AM
Unknown Object (File)
Apr 26 2025, 3:25 AM
Unknown Object (File)
Apr 24 2025, 11:44 AM
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.