mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
No description
0cb1b7efad
Summary: Previously, running arc lint on a set of changes that only existed in your working copy threw an exception in mercurial repos. It was trying to use the revset "...." (i.e. the range from . to .), which didn't parse. Even if I fix that it still doesn't work because getRawDiffText did not include the working copy changes (which it does in git). I removed the check so the function now acts the same as in git and arc lint works on working copy changes. I've seen this error before in other places so hopefully this change will also fix any other areas, that depended on getRawDiffText working the same as git. The logic I removed was added in D1954 to support diffing against uncommited changes. That workflow should be unchanged. arc diff will still prompt the user if there are uncommited changes, and the user can still choose to abort or continue. Let me know if I missed something important which makes this a bad idea. Test Plan: Edited a file in the working directory of a hg repo. arc lint Verified lint ran successfully. Also ran arc diff and land with and without working copy changes to make sure they still work. I'd kill for some tests in this area... Reviewers: epriestley, vrana Reviewed By: epriestley CC: dschleimer, bos, sid0, aran, Korvin Maniphest Tasks: T1631 Differential Revision: https://secure.phabricator.com/D5130 |
||
---|---|---|
bin | ||
externals | ||
resources | ||
scripts | ||
src | ||
.arcconfig | ||
.divinerconfig | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
NOTICE | ||
README |
WHAT IS ARCANIST? Arcanist is the command-line tool for Phabricator. It allows you to interact with Phabricator installs to send code for review, download patches, transfer files, view status, make API calls, and various other things. You can find a complete user guide here: http://www.phabricator.com/docs/phabricator/article/Arcanist_User_Guide.html For more information about Phabricator, see: http://phabricator.org/ LICENSE Arcanist is released under the Apache 2.0 license except as otherwise noted.