]> khamidou — GitHub mirrors - arcanist.git/log
arcanist.git
15 years agoAggregate display of postponed tests
slawekbiel [Thu, 28 Apr 2011 18:46:20 +0000 (11:46 -0700)]
Aggregate display of postponed tests

Summary:
Displaying each postponed test separately was spammy.
Now it will only display a single line with the total count

Test Plan:
~/local/arcanist/bin/arc unit --sandcastle-tests
35 tests to run.
Completed 'ParentInfoTestCase.php'
Interrupted 'MentionsUntagTestCase.php'
    PASS  ParentInfoTestCase
  POSTPONED  34 tests

Reviewed By: sgrimm
Reviewers: jungejason, sgrimm
CC: sgrimm
Revert Plan:
sure

Other Notes:

Differential Revision: 173

15 years agoadd short option for fetching git revision hash
slawekbiel [Wed, 27 Apr 2011 21:10:19 +0000 (14:10 -0700)]
add short option for fetching git revision hash

Summary:
Sometimes we need to show abbreviated hashes, passing --short is more
reliable than substring of fixed number of characters.

Test Plan:
- called with and without the parameter, got correct results
           -

Reviewed By: jungejason
Reviewers: jungejason
CC: jungejason
Revert Plan:
sure

Other Notes:

Differential Revision: 170

15 years agoStop this from failing on directories, etc.; u-u-u-u-ultra clown.
epriestley [Mon, 11 Apr 2011 23:13:22 +0000 (16:13 -0700)]
Stop this from failing on directories, etc.; u-u-u-u-ultra clown.

15 years agoLoad more context for lint only if the files actually exist.
epriestley [Mon, 11 Apr 2011 21:53:48 +0000 (14:53 -0700)]
Load more context for lint only if the files actually exist.

15 years agoArc cover handles a file that is added and modified correctly.
tuomaspelkonen [Mon, 11 Apr 2011 20:54:00 +0000 (13:54 -0700)]
Arc cover handles a file that is added and modified correctly.

Summary:
Modifying a new file and running 'arc cover' before committing the
modifications confused arc. The problem was that 'unstaged' status
erased 'added' status and this caused problems.

Test Plan:
Tested that arc cover ignores added files when they are modified, but
old files that are modified are still handled correctly by arc cover.

Reviewed By: epriestley
Reviewers: epriestley
CC: jungejason, epriestley
Differential Revision: 122

15 years agoLoad files which we don't directly examine, since there are some common cases
epriestley [Sun, 10 Apr 2011 23:05:44 +0000 (16:05 -0700)]
Load files which we don't directly examine, since there are some common cases
where we either generate an entire file or an external script examines it.

15 years agoImprove workflow for missing certificates.
epriestley [Sun, 10 Apr 2011 20:09:31 +0000 (13:09 -0700)]
Improve workflow for missing certificates.

15 years agoImprove lint rendering
adonohue [Sat, 9 Apr 2011 02:10:27 +0000 (19:10 -0700)]
Improve lint rendering

Summary:
Declare victory like it's the United States.

Test Plan:
www copyright, apache copyright, control keyword whitespace and trailing
whitespace lint warnings

Reviewed By: epriestley
Reviewers: epriestley
CC: epriestley
Differential Revision: 117

15 years agoFix repository UUID parsing.
epriestley [Wed, 6 Apr 2011 05:27:32 +0000 (22:27 -0700)]
Fix repository UUID parsing.

15 years agoShip up repository UUIDs with diffs.
epriestley [Wed, 6 Apr 2011 03:12:37 +0000 (20:12 -0700)]
Ship up repository UUIDs with diffs.

15 years agoCorrectly detect uncommitted files in Git
epriestley [Wed, 6 Apr 2011 02:27:05 +0000 (19:27 -0700)]
Correctly detect uncommitted files in Git

Summary:
I simplified this code at some point and broke it horribly
in the process. Mask in the right flag here and combine the maps
correctly. This solves the great mystery of increased developer
clowniness.

Test Plan:
Ran 'arc diff' in a working copy with staged but
uncommitted files, got an error message (previously, I didn't).

Reviewed By: aran
Reviewers: mroch, aran
CC: aran
Differential Revision: 104

15 years agoImprove 'arc' error message when failing to load a library
jungejason [Mon, 4 Apr 2011 23:26:46 +0000 (16:26 -0700)]
Improve 'arc' error message when failing to load a library

Summary:
display better message about the .arcconfig. The message will
be something like this now:
  Usage Exception: Failed to load library "phabricator" at location
  "srcaaaaa/". Please check the "phutil_libraries" setting in your
  .arcconfig file. Refer to page
  http://phabricator.com/docs/arcanist/article/Setting_Up_.arcconfig.html
  for more info.

Test Plan:
modify the .arcconfig file to test it. Also make sure it
works for correct settings.

Reviewed By: epriestley
Reviewers: epriestley
CC: jungejason, epriestley
Differential Revision: 99

15 years agoJSON output for Lint
Aran Donohue [Mon, 4 Apr 2011 01:04:20 +0000 (18:04 -0700)]
JSON output for Lint

Summary:
Refactor ArcanistLintRenderer into three independent classes, and let
the Workflow select between them based on its 'output' parameter.

Test Plan:
Introduce a Lint warning and lint with no --output, with --output summary and
with --output JSON.

Reviewed By: epriestley
Reviewers: epriestley
CC: aran, epriestley
Differential Revision: 96

15 years agoExpand ArcanistDiffParser to accept awkward Diffusion + SVN workflows.
epriestley [Thu, 31 Mar 2011 02:33:50 +0000 (19:33 -0700)]
Expand ArcanistDiffParser to accept awkward Diffusion + SVN workflows.

15 years agoAdd an empty file lint test.
epriestley [Wed, 23 Mar 2011 03:51:45 +0000 (20:51 -0700)]
Add an empty file lint test.

15 years agoSpecial case ArcanistTextLinter for completely empty files.
epriestley [Tue, 22 Mar 2011 18:08:59 +0000 (11:08 -0700)]
Special case ArcanistTextLinter for completely empty files.

15 years ago[Adding postpone status for unittests]
slawekbiel [Tue, 22 Mar 2011 00:29:12 +0000 (17:29 -0700)]
[Adding postpone status for unittests]

Summary:
That's for the tests that will be run asynchronously.

Test Plan:
run arc unit with some tests that returned postponed status - they showed up.
Background was yellow.

Reviewed By: epriestley
CC: epriestley
Revert Plan:
sure

Other Notes:

Differential Revision: 77

15 years agoImprove the error message for ERR-NO-CERTIFICATE
jungejason [Wed, 16 Mar 2011 22:17:07 +0000 (15:17 -0700)]
Improve the error message for ERR-NO-CERTIFICATE

Summary:
list the hosts for which the .arcrc file have certificate and
which conduit-uri the user is trying to access.

Test Plan:
test the case where a cert is missing.

Reviewed By: epriestley
CC: epriestley
Differential Revision: 76

15 years agoDetect SVN 1.6 "tree-conflicts".
epriestley [Sun, 20 Mar 2011 22:06:55 +0000 (15:06 -0700)]
Detect SVN 1.6 "tree-conflicts".

15 years agoUse phutil_console_confirm() correctly, not vestigal $this->confirm().
epriestley [Sat, 19 Mar 2011 19:15:28 +0000 (12:15 -0700)]
Use phutil_console_confirm() correctly, not vestigal $this->confirm().

Summary:

Test Plan:
$ arc patch --diff 553961

    Patch deletes file 'html/miniprofile.php', but the file does not exist in
    the working copy. Continue anyway? [y/N] y

    Patch deletes file 'html/index.php', but the file does not exist in the
    working copy. Continue anyway? [y/N] y

 OKAY  Successfully applied patch to the working copy.

Reviewers:

CC:

15 years agoFix symbol reference in arcconfig.diviner (thanks, jason!)
epriestley [Fri, 18 Mar 2011 02:19:31 +0000 (19:19 -0700)]
Fix symbol reference in arcconfig.diviner (thanks, jason!)

15 years agoResolve paths when running "--lintall"
epriestley [Mon, 14 Mar 2011 22:03:50 +0000 (15:03 -0700)]
Resolve paths when running "--lintall"

Summary: this was all kinds of fail when running from a subdirectory or on
invalid paths. Detect nonexistent paths; resolve valid paths.

Test Plan: ran "arc lint --lintall" on a file from a subdirectory, and on a
file which did not exist. Received patches and an error, respectively

Reviewers: arudolph

CC:

Differential Revision: 72

15 years agoasukhachev's patch for 'arc amend' not being overeager.
epriestley [Tue, 15 Mar 2011 00:39:12 +0000 (17:39 -0700)]
asukhachev's patch for 'arc amend' not being overeager.

15 years agoMake all the working-copy-paths errors extremely explicit.
epriestley [Sun, 13 Mar 2011 02:16:15 +0000 (18:16 -0800)]
Make all the working-copy-paths errors extremely explicit.

15 years agoMake some UI things less confusing and reduce the amount of horrific torture
epriestley [Sun, 13 Mar 2011 01:57:35 +0000 (17:57 -0800)]
Make some UI things less confusing and reduce the amount of horrific torture
that arc apparently inflicts upon users.

Summary:

Test Plan: .

Reviewers:

CC:

Differential Revision: 223104

15 years agoDetect use of "+" on a string literal in PHP.
epriestley [Thu, 10 Mar 2011 23:11:41 +0000 (15:11 -0800)]
Detect use of "+" on a string literal in PHP.

Summary:
This is realistically always wrong and the author means "."

Test Plan:
lint / unit

Reviewed By: crackerjack
Reviewers: crackerjack, aran
CC: crackerjack
Differential Revision: 68

15 years agoArcanist: Apply symlink patches correctly
epriestley [Tue, 8 Mar 2011 05:33:36 +0000 (21:33 -0800)]
Arcanist: Apply symlink patches correctly

Summary:
When an arcbundle includes a symlink, we fail to apply it correctly
when applying to a subversion working copy.

Test Plan:
created a diff which added a symlink, removed it locally, bundled
and applied the patch, got a good symlink out

Reviewed By: aran
Reviewers: aran
CC: epriestley, aran
Differential Revision: 63

15 years agoMerge branch 'patch'
epriestley [Tue, 8 Mar 2011 06:09:11 +0000 (22:09 -0800)]
Merge branch 'patch'

15 years agoFix 'arc patch' when adding files in new directories
epriestley [Tue, 8 Mar 2011 04:21:16 +0000 (20:21 -0800)]
Fix 'arc patch' when adding files in new directories

Summary:
If you apply an arcbundle to a subversion working copy which adds
files in new subdirectories, we fail to create and add the parent directories
so the whole operation fails. Make sure we create and add any missing parent
directories before apply patches.

Test Plan:
Applied Facebook diff #542056 to www@rE349795 cleanly, while it
failed previously.

Reviewed By: aran
Reviewers: aran
CC: aran
Differential Revision: 62

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Tue, 8 Mar 2011 06:04:29 +0000 (22:04 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoArcanist: parse SVN "replaced" status
epriestley [Tue, 8 Mar 2011 03:03:27 +0000 (19:03 -0800)]
Arcanist: parse SVN "replaced" status

Summary:
SVN has a special 'replaced' status which was not being parsed
correctly. Parse it correctly.

Test Plan:
Replaced a file, ran arc diff, got a sensible diff.

Reviewed By: aran
Reviewers: aran
CC: aran
Differential Revision: 60

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Tue, 8 Mar 2011 04:21:09 +0000 (20:21 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoGet rid of explicit timezone silliness.
epriestley [Tue, 8 Mar 2011 04:20:48 +0000 (20:20 -0800)]
Get rid of explicit timezone silliness.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoExplicitly use "--format=medium" when running 'git log'
epriestley [Mon, 7 Mar 2011 23:37:38 +0000 (15:37 -0800)]
Explicitly use "--format=medium" when running 'git log'

Summary:
Git (the world's hardest revision control system) allows you to change
output formats by accident and/or without your direct knowledge. Protect users
from themselves.

Test Plan:
Changed "pretty" in [format] to "format:quack" so every log just
outputs the word "quack". Ran "arc diff" successfully.

Reviewed By: aran
Reviewers: aran
CC: epriestley, aran
Differential Revision: 56

15 years agoMake XHPAST parse-depth warning an actual warning.
epriestley [Mon, 7 Mar 2011 19:21:29 +0000 (11:21 -0800)]
Make XHPAST parse-depth warning an actual warning.

Summary:
XHPAST encounters a parse-depth problem on some files because PHP
5.2 has an un-overridable parse depth limit for JSON. The text of this error
says it is a "warning" but we currently raise an error. Make it a warning
instead.

The JSON depth is 20 until PHP 5.2.3, where it becomes 128. After PHP 5.3
it defaults to 512 and is user-configurable, which will allow us to resolve
this issue in nearly all cases.

Since I made if/else express as a list in the AST, this only actually arises
in long binary chains, most commonly string concatenation, like:

  $out = 'a'.'a'.'a'.'a'...

...where each string is a variable or HTML tag and the program is constructing
a complicated document.

At some point I'll add some PHP 5.3 massaging to the XHPAST decoder itself to
raise this limit to something more huge.

Test Plan:
Ran "arc lint --lintall" on a file with a very deep binary
expression tree ("1 + 1 + 1 ...") and received a warning instead of an error.

Reviewed By: aran
Reviewers: pad, aran
CC: epriestley, aran
Differential Revision: 54

15 years agoFix issue with svn-hook-pre-commit when resolving .arcconfig for nested
epriestley [Sat, 5 Mar 2011 08:42:46 +0000 (00:42 -0800)]
Fix issue with svn-hook-pre-commit when resolving .arcconfig for nested
directories

Summary:
If you had changes to a directory covered by a .arcconfig residing
inside another directory also covered by an .arcconfig, the hook would
incorrectly attribute the first file it attempted to resolve to the topmost
.arcconfig because it failed to break out of the loop after resolving it.

All other files would be correctly attributed, because they'd hit the cache.

Test Plan:
Created an svn repository and checked it out locally. Created a
structure like this:

  .arcconfig
  shallow
  a/
   b/
    c/
     .arcconfig
     d/
      deep
      deep2
      deep3

Made modifications to "deep", "deep2", and "deep3". Received an error message
about multiple .arcconfig changes, attributing one file to the topmost
arcconfig and the other two to the deeper one.

Applied patch.

Commit now goes through. Made a commit affecting 'shallow' and 'deep' and
'deep2', commit was correctly blocked and files were attributed to the
corresponding .arcconfigs.

Reviewed By: mroch
Reviewers: mroch
CC: mroch
Differential Revision: 50

15 years agoRestore the --edit workflow somewhat properly. (2)
epriestley [Fri, 4 Mar 2011 22:51:39 +0000 (14:51 -0800)]
Restore the --edit workflow somewhat properly. (2)

Summary: summary999

Test Plan: test2

Reviewers:

CC:

Differential Revision: 219938

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Fri, 4 Mar 2011 00:11:10 +0000 (16:11 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoMake 'arc' work for users without the POSIX PHP installed.
epriestley [Thu, 3 Mar 2011 03:31:40 +0000 (19:31 -0800)]
Make 'arc' work for users without the POSIX PHP installed.

Summary:
Some PHP installs don't have this by default. Do a conditional check
since this functionality is noncritical.

Test Plan:
will make srash test

Differential Revision: 43
Reviewed By: aran
Reviewers: rash67, aran, jungejason
CC: aran
15 years agoMake 'arc' work for users without the POSIX PHP installed.
epriestley [Thu, 3 Mar 2011 03:31:40 +0000 (19:31 -0800)]
Make 'arc' work for users without the POSIX PHP installed.

Summary: Some PHP installs don't have this by default. Do a conditional check
since this functionality is noncritical.

Test Plan: will make srash test

Reviewers: rash67, aran, jungejason

CC:

Differential Revision: 43

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Thu, 3 Mar 2011 03:31:36 +0000 (19:31 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoUpdated .divinerconfig.
epriestley [Wed, 2 Mar 2011 23:25:45 +0000 (15:25 -0800)]
Updated .divinerconfig.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoPossible workaround for null 'changes'.
epriestley [Mon, 28 Feb 2011 19:33:22 +0000 (11:33 -0800)]
Possible workaround for null 'changes'.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Sun, 27 Feb 2011 04:54:21 +0000 (20:54 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoFix a couple of warnings raised by HipHop.
epriestley [Sun, 27 Feb 2011 04:53:24 +0000 (20:53 -0800)]
Fix a couple of warnings raised by HipHop.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoRespect @nolint
adonohue [Fri, 25 Feb 2011 01:59:49 +0000 (17:59 -0800)]
Respect @nolint

Summary:
Respect @nolint annotations

Test Plan:
New "test case"

Differential Revision: 41
Reviewed By: epriestley
Reviewers: epriestley
CC: epriestley
15 years agoMerge branch 'master' of github.com:facebook/arcanist
adonohue [Fri, 25 Feb 2011 02:36:43 +0000 (18:36 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoRespect @nolint
adonohue [Fri, 25 Feb 2011 01:59:49 +0000 (17:59 -0800)]
Respect @nolint

Summary:
Respect @nolint annotations

Test Plan:
New "test case"

Differential Revision: 41
Reviewed By: epriestley
Reviewers: epriestley
CC: epriestley
15 years agoImprove error messages when trying to parse bad .arcconfig files.
epriestley [Fri, 25 Feb 2011 00:34:27 +0000 (16:34 -0800)]
Improve error messages when trying to parse bad .arcconfig files.

Summary: Haiping is getting a pretty confusing error message when trying to
commit.

Test Plan: Created a mock repository, installed the hook, made commits against
directories with bad .arcconfigs.

Reviewers:

CC:

15 years agoStop arc from destroying files under HPHPi.
epriestley [Thu, 24 Feb 2011 22:08:49 +0000 (14:08 -0800)]
Stop arc from destroying files under HPHPi.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMake arcanist more flexible about SVN base revisions
epriestley [Wed, 23 Feb 2011 20:06:22 +0000 (12:06 -0800)]
Make arcanist more flexible about SVN base revisions

Summary: When running "arc diff" in a mixed-base-revision working copy, we
prevent the operation. Relax this restriction so that having a different root
revision is okay, so long as all affected files share the same revision. This
facilitates multiple similar edits without updates.

Test Plan: Reverted a file to an older revision in an SVN working copy, ran
"arc diff", was rejected. Applied patch, ran "arc diff", diff went through and
was recorded with the right SVN base revision in the database.

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Tue, 22 Feb 2011 01:00:05 +0000 (17:00 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoCorrectly parse conflicted files out of SVN XML.
epriestley [Tue, 22 Feb 2011 00:59:37 +0000 (16:59 -0800)]
Correctly parse conflicted files out of SVN XML.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoPartially restore --edit to stop it from stomping all over everything.
epriestley [Sun, 20 Feb 2011 06:07:12 +0000 (22:07 -0800)]
Partially restore --edit to stop it from stomping all over everything.

Summary: We sync from local right now, which is fairly terrible. But
fixing this correctly is also not trivial and I don't have the right
primitives yet.

Test Plan:

Reviewers:

CC:

15 years agoSome documentation.
epriestley [Sat, 19 Feb 2011 19:36:08 +0000 (11:36 -0800)]
Some documentation.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoProvide a "--conduit-uri" override for testing, and tweak some documentation.
epriestley [Sat, 19 Feb 2011 06:17:41 +0000 (22:17 -0800)]
Provide a "--conduit-uri" override for testing, and tweak some documentation.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoResolve further subtlety with untracked files.
epriestley [Sat, 19 Feb 2011 01:08:10 +0000 (17:08 -0800)]
Resolve further subtlety with untracked files.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Sat, 19 Feb 2011 00:52:52 +0000 (16:52 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoDon't send untracked files to lint or unit workflows when running 'arc diff'.
epriestley [Sat, 19 Feb 2011 00:52:27 +0000 (16:52 -0800)]
Don't send untracked files to lint or unit workflows when running 'arc diff'.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoDon't reject commits which fail to trigger any linters.
epriestley [Thu, 17 Feb 2011 20:45:15 +0000 (12:45 -0800)]
Don't reject commits which fail to trigger any linters.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoRespect --no-ansi and disable ansi for non-TTY terminals.
epriestley [Thu, 17 Feb 2011 07:41:03 +0000 (23:41 -0800)]
Respect --no-ansi and disable ansi for non-TTY terminals.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoPrep this for actual production installs.
epriestley [Thu, 17 Feb 2011 07:14:55 +0000 (23:14 -0800)]
Prep this for actual production installs.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Thu, 17 Feb 2011 05:04:16 +0000 (21:04 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoBasic documentation for ".arcconfig".
epriestley [Thu, 17 Feb 2011 05:03:32 +0000 (21:03 -0800)]
Basic documentation for ".arcconfig".

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMove this block into a more sensible branch.
epriestley [Thu, 17 Feb 2011 02:49:45 +0000 (18:49 -0800)]
Move this block into a more sensible branch.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoFix two common points of confusion:
epriestley [Thu, 17 Feb 2011 02:47:17 +0000 (18:47 -0800)]
Fix two common points of confusion:
- show "push upstream" instructions after arc amend
- parse 'diffcamp revision'

Summary:

Test Plan:

Reviewers:

CC:

15 years agoAdd @nocommit and tests to Text linter.
epriestley [Thu, 17 Feb 2011 01:26:51 +0000 (17:26 -0800)]
Add @nocommit and tests to Text linter.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoRestore hook configuration in lint unit tests. Make working copy setup an
epriestley [Wed, 16 Feb 2011 19:53:34 +0000 (11:53 -0800)]
Restore hook configuration in lint unit tests. Make working copy setup an
external.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoExpose the already-functional "--engine" flag for the unit workflow.
epriestley [Wed, 16 Feb 2011 19:53:13 +0000 (11:53 -0800)]
Expose the already-functional "--engine" flag for the unit workflow.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoImprove bash completion for commands like 'arc lint' and 'arc unit'.
epriestley [Wed, 16 Feb 2011 19:51:06 +0000 (11:51 -0800)]
Improve bash completion for commands like 'arc lint' and 'arc unit'.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoSupport --load-phutil-library in arcanist.
epriestley [Wed, 16 Feb 2011 18:07:48 +0000 (10:07 -0800)]
Support --load-phutil-library in arcanist.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMore SVN hook docs.
epriestley [Wed, 16 Feb 2011 18:06:44 +0000 (10:06 -0800)]
More SVN hook docs.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoInch toward a defensibly documented project state.
epriestley [Tue, 15 Feb 2011 23:10:53 +0000 (15:10 -0800)]
Inch toward a defensibly documented project state.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoAdd lint support to 'arc svn-hook-pre-commit'.
epriestley [Tue, 15 Feb 2011 22:57:24 +0000 (14:57 -0800)]
Add lint support to 'arc svn-hook-pre-commit'.

Summary: The biggest blocker on getting rid of arc in trunk is that the lint
rules in the commit hooks are still running the old version. Push arc
commit hook support toward some reasonable state of approximately working.

Test Plan:

Reviewers:

CC:

15 years agoProvide coverage for the xhpast $a->b->c parsing bug exposed by tautolinting the
epriestley [Mon, 14 Feb 2011 00:43:32 +0000 (16:43 -0800)]
Provide coverage for the xhpast $a->b->c parsing bug exposed by tautolinting the
codebase.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoFix greediness in Apache License linter.
epriestley [Sun, 13 Feb 2011 19:57:14 +0000 (11:57 -0800)]
Fix greediness in Apache License linter.

Summary: The multi-line comment regexp was potentially too greedy. See
"greedy.lint-test".
- Made it less greedy.
- Added test coverage.
- Fixed an issue with the Apache license getting applied with too much
  whitespace against C files.

Test Plan: Ran unit tests.

Reviewers: aran

CC:

Differential Revision: 36

15 years agoTweak license linter to support licenses on line immediately after <?php
adonohue [Sat, 12 Feb 2011 01:48:06 +0000 (17:48 -0800)]
Tweak license linter to support licenses on line immediately after <?php

Summary:
Tweak license linter to support licenses on line immediately after <?php

Test Plan:
Corrupt an apache license and re-lint twice.

Differential Revision: 34
Reviewed By: epriestley
Reviewers: epriestley

15 years agoRefactor Apache license linter to parameterize the license itself.
adonohue [Sat, 12 Feb 2011 00:03:00 +0000 (16:03 -0800)]
Refactor Apache license linter to parameterize the license itself.

Summary:
Refactor Apache license linter to parameterize the license itself.

Test Plan:
meta

- begin *PUBLIC* platform impact section -
Bugzilla: #
- end platform impact -

Differential Revision: 33
Reviewed By: epriestley
Reviewers: epriestley

15 years agoAlign Arcanist against phabricator.com.
epriestley [Thu, 10 Feb 2011 01:07:19 +0000 (17:07 -0800)]
Align Arcanist against phabricator.com.

Summary:
dogfood etc

Test Plan:
meta

Differential Revision: 28
Reviewed By: tomo
Reviewers: aran, tomo

15 years agoBasic doc config for arcanist.
epriestley [Thu, 10 Feb 2011 01:06:24 +0000 (17:06 -0800)]
Basic doc config for arcanist.

15 years agoDon't try to mark committed when running "arc amend --show".
epriestley [Wed, 9 Feb 2011 17:39:17 +0000 (09:39 -0800)]
Don't try to mark committed when running "arc amend --show".

15 years agoMake Arcanist understand a phid-based response from
epriestley [Wed, 9 Feb 2011 17:19:22 +0000 (09:19 -0800)]
Make Arcanist understand a phid-based response from
differential.parsecommitmessage.

15 years agoUse the '(?P<' syntax instead of '(?<' for capturing named subgroups.
epriestley [Wed, 9 Feb 2011 17:12:21 +0000 (09:12 -0800)]
Use the '(?P<' syntax instead of '(?<' for capturing named subgroups.

15 years agoTautological expression lint.
epriestley [Sun, 6 Feb 2011 21:04:01 +0000 (13:04 -0800)]
Tautological expression lint.

15 years agoStop arc from triggering bogus exceptions.
epriestley [Sun, 6 Feb 2011 07:32:04 +0000 (23:32 -0800)]
Stop arc from triggering bogus exceptions.

15 years agoHook up conduit auth.
epriestley [Sun, 6 Feb 2011 06:44:30 +0000 (22:44 -0800)]
Hook up conduit auth.

15 years agoTreat empty update message as user abort on 'arc diff' workflow
epriestley [Sat, 5 Feb 2011 00:06:18 +0000 (16:06 -0800)]
Treat empty update message as user abort on 'arc diff' workflow

Summary:
"-m ''" will still let you do a truly empty update if
you are insistent on that.

Test Plan:
meta

Differential Revision: 209194
Reviewed By: dschleimer
Reviewers: dschleimer
CC: epriestley
Revert Plan:
OK

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Fri, 4 Feb 2011 00:00:05 +0000 (16:00 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoAdd a missing 'static' qualifier.
epriestley [Thu, 3 Feb 2011 23:59:45 +0000 (15:59 -0800)]
Add a missing 'static' qualifier.

15 years agoImprove argument passthru behavior to make added args available to test engines.
epriestley [Wed, 2 Feb 2011 04:32:10 +0000 (20:32 -0800)]
Improve argument passthru behavior to make added args available to test engines.

Summary:
When you add new arguments to the unit command, they need to be
threaded through to the unit engine. This enables you to specify passthru
command which will be shipped through the callstack.

Test Plan:
Ran 'arc diff --maxtests 8 --apply-patches --trace' and verified
resulting behavior was correct.

Differential Revision: 207877
Reviewed By: dschleimer
Reviewers: dschleimer
CC: dschleimer
Revert Plan:
OK

15 years agoMake change amending explicit in arc lint
epriestley [Sun, 30 Jan 2011 01:18:32 +0000 (17:18 -0800)]
Make change amending explicit in arc lint

Summary:
This should only happen on the 'diff' workflow.

Test Plan:
ran 'arc lint' and didn't get prompted to amend, ran 'arc diff' and got yelled
at for uncommitted changes, committed, ran 'arc diff' and got prompted to amend

Differential Revision: 206696
Reviewed By: adonohue
Reviewers: adonohue
CC: adonohue
Revert Plan:
OK

15 years agoMake "arc export" work from a local git repo
epriestley [Sat, 29 Jan 2011 20:45:37 +0000 (12:45 -0800)]
Make "arc export" work from a local git repo

Summary:

Test Plan:

Reviewers:

CC:

15 years agoExpose XHPAST parse tree down the line to other parsers.
epriestley [Fri, 28 Jan 2011 23:18:19 +0000 (15:18 -0800)]
Expose XHPAST parse tree down the line to other parsers.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Fri, 28 Jan 2011 19:38:45 +0000 (11:38 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoFix a bogus idx() call.
epriestley [Fri, 28 Jan 2011 19:37:44 +0000 (11:37 -0800)]
Fix a bogus idx() call.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoMerge branch 'master' of github.com:facebook/arcanist
epriestley [Thu, 27 Jan 2011 01:47:00 +0000 (17:47 -0800)]
Merge branch 'master' of github.com:facebook/arcanist

15 years agoDon't apply apache license lint rules if there is no copyright holder.
epriestley [Thu, 27 Jan 2011 01:46:17 +0000 (17:46 -0800)]
Don't apply apache license lint rules if there is no copyright holder.

15 years ago[easy] remove no-op from ArcanistLinter#raiseLintAtPath
adonohue [Thu, 27 Jan 2011 01:25:25 +0000 (17:25 -0800)]
[easy] remove no-op from ArcanistLinter#raiseLintAtPath

Summary:
Remove extra call to getActivePath

Test Plan:
Inspection

Differential Revision: 205579
Reviewed By: epriestley
Reviewers: epriestley
CC: epriestley
Revert Plan:
OK

15 years agoBlanket exclude 'externals/' directory from linting in the PhutilLintEngine.
epriestley [Wed, 26 Jan 2011 17:58:16 +0000 (09:58 -0800)]
Blanket exclude 'externals/' directory from linting in the PhutilLintEngine.

15 years agoDon't issue lint about strangely named classes just because they have some
epriestley [Wed, 26 Jan 2011 15:03:52 +0000 (07:03 -0800)]
Don't issue lint about strangely named classes just because they have some
word character in them.