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
F15464900: D14531.id35151.diff
Wed, Apr 2, 1:02 PM
F15439579: D14531.id35151.diff
Wed, Mar 26, 8:08 AM
F15426552: D14531.id35152.diff
Sun, Mar 23, 9:35 AM
F15417353: D14531.id35151.diff
Thu, Mar 20, 4:43 PM
F15416403: D14531.id35151.diff
Thu, Mar 20, 10:54 AM
F15413346: D14531.diff
Wed, Mar 19, 6:12 PM
F15340731: D14531.id35151.diff
Sun, Mar 9, 4:26 PM
Unknown Object (File)
Feb 23 2025, 11:19 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.