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
Unknown Object (File)
Wed, Sep 4, 5:21 AM
Unknown Object (File)
Mon, Sep 2, 1:34 PM
Unknown Object (File)
Sun, Sep 1, 9:16 AM
Unknown Object (File)
Sat, Aug 31, 3:52 PM
Unknown Object (File)
Fri, Aug 30, 6:17 PM
Unknown Object (File)
Fri, Aug 30, 1:08 PM
Unknown Object (File)
Fri, Aug 30, 3:41 AM
Unknown Object (File)
Fri, Aug 30, 3:41 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.