]> khamidou — GitHub mirrors - arcanist.git/commit
Don't parse mercurial usernames without email address as an email address
authorRichard van Velzen <rvanvelzen1@gmail.com>
Tue, 17 Jun 2014 18:46:42 +0000 (11:46 -0700)
committerepriestley <git@epriestley.com>
Tue, 17 Jun 2014 18:46:49 +0000 (11:46 -0700)
commit680ec3670cd9d9195debf3e9b674b1b232156e61
treea4c1c3d01525e47d507120e7b0988826565f821e
parentd7541c70ddc9637675b58a29a8697880d1532c3f
Don't parse mercurial usernames without email address as an email address

Summary:
This leads to information being lost when others do `arc patch` because the name is used as the email address.

For example:
  username = Richard van Velzen

Would give:
  'authorName' => null,
  'authorEmail' => 'Richard van Velzen'

Test Plan:
ran it through my head a couple of times, and tested it with the common options which all gave the expected result:
  'rvanvelzen@company.com',
  'Richard van Velzen',
  'Richard van Velzen <rvanvelzen@company.com>',
  'Richard van Velzen rvanvelzen@company.com',

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9605
src/repository/api/ArcanistMercurialAPI.php