]> khamidou — GitHub mirrors - arcanist.git/commit
Don't give Mercurial empty string as a remote name
authorepriestley <git@epriestley.com>
Wed, 18 Nov 2015 17:57:07 +0000 (09:57 -0800)
committerepriestley <git@epriestley.com>
Sat, 21 Nov 2015 17:54:05 +0000 (09:54 -0800)
commitb32149495b852d846127d002a7131fc67d4fbd47
tree03e0d07f477d184307f3e15c6d6a8bcd22bde661
parenta77a77817a0399cb2c543f3a6aa03883cebf8837
Don't give Mercurial empty string as a remote name

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.

Reviewers: chad

Reviewed By: chad

Subscribers: cspeckmim

Maniphest Tasks: T9807

Differential Revision: https://secure.phabricator.com/D14531
src/workflow/ArcanistLandWorkflow.php