]> khamidou — GitHub mirrors - arcanist.git/log
arcanist.git
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.

15 years agoUse caching to provide a huge perf boost to phutil_mapper.
epriestley [Wed, 26 Jan 2011 02:05:15 +0000 (18:05 -0800)]
Use caching to provide a huge perf boost to phutil_mapper.

15 years agoInclude CSS and JS in PhutilLintEngine.
epriestley [Tue, 25 Jan 2011 19:32:57 +0000 (11:32 -0800)]
Include CSS and JS in PhutilLintEngine.

15 years agoAdd ArcanistDiffUtils.
epriestley [Tue, 25 Jan 2011 00:46:19 +0000 (16:46 -0800)]
Add ArcanistDiffUtils.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoExpose diff IDs to post-diff workflows.
epriestley [Sat, 22 Jan 2011 00:17:30 +0000 (16:17 -0800)]
Expose diff IDs to post-diff workflows.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoEnable PhutilModuleLinter to recover more gracefully from broken modules.
epriestley [Tue, 18 Jan 2011 04:18:42 +0000 (20:18 -0800)]
Enable PhutilModuleLinter to recover more gracefully from broken modules.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoBasic 'shell-complete' workflow.
epriestley [Sat, 15 Jan 2011 04:00:11 +0000 (20:00 -0800)]
Basic 'shell-complete' workflow.

Summary:
Adds data-driven shell completion help to arcanist.

Test Plan:
ran various commands in git and svn working copies,
output seemed reasonable

Differential Revision: 201754
Reviewed By: adonohue
Reviewers: mroch, adonohue
Commenters: crackerjack
CC: epriestley, adonohue, achao
Revert Plan:
OK

15 years agoImplement lint check that filename matches only declared interface/class.
adonohue [Fri, 14 Jan 2011 22:28:01 +0000 (14:28 -0800)]
Implement lint check that filename matches only declared interface/class.

Differential Revision: 201593
Reviewed By: epriestley

15 years agoDisable phutil filename check. To be implemented as a more pervasive check.
adonohue [Fri, 14 Jan 2011 21:26:01 +0000 (13:26 -0800)]
Disable phutil filename check. To be implemented as a more pervasive check.

Differential Revision: 201587
Reviewed By: epriestley

15 years agoClarify confusing error message about missing .arcconfig vs missing conduit.
epriestley [Thu, 13 Jan 2011 23:36:15 +0000 (15:36 -0800)]
Clarify confusing error message about missing .arcconfig vs missing conduit.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoCorrect some references to '--diff-only', now '--preview'.
epriestley [Thu, 13 Jan 2011 23:31:37 +0000 (15:31 -0800)]
Correct some references to '--diff-only', now '--preview'.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoProvide a better error message for 'arc patch' when patches fail.
epriestley [Thu, 13 Jan 2011 21:21:33 +0000 (13:21 -0800)]
Provide a better error message for 'arc patch' when patches fail.

Summary:
Be more clear about what happened.

Test Plan:
ran 'arc patch' on good/bad patches

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

15 years agoFix a typo ish.
epriestley [Thu, 13 Jan 2011 01:20:45 +0000 (17:20 -0800)]
Fix a typo ish.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoUpdate arcanist to use the PhutilSymbolLoader.
epriestley [Wed, 12 Jan 2011 23:45:17 +0000 (15:45 -0800)]
Update arcanist to use the PhutilSymbolLoader.

Summary: This should also fix the bug with double help for certain commands

Test Plan:

Reviewers:

CC:

15 years agoAdd SVN pre-commit hook support.
epriestley [Wed, 12 Jan 2011 09:49:48 +0000 (01:49 -0800)]
Add SVN pre-commit hook support.

Summary: Basic support for an SVN pre-commit hook. Still very skeletal.

Test Plan:

Reviewers:

CC:

15 years agoShip unresolved unit test information to Differential.
epriestley [Wed, 12 Jan 2011 06:13:31 +0000 (22:13 -0800)]
Ship unresolved unit test information to Differential.

Summary:

Test Plan:

Reviewers:

CC:

15 years agoShip lint warnings to Differential.
epriestley [Wed, 12 Jan 2011 04:21:17 +0000 (20:21 -0800)]
Ship lint warnings to Differential.

Summary: Send skipped lint warnings to Differential. This also fixes a nasty
bug with lint excluding too many warnings based on line changes.

Test Plan: meta

Reviewers:

CC:

Differential Revision: 200387

15 years agoIntegrate with file.upload over conduit to ship binary changes to Differential.
epriestley [Tue, 11 Jan 2011 21:02:38 +0000 (13:02 -0800)]
Integrate with file.upload over conduit to ship binary changes to Differential.

Summary: support binary upload in the new arc so we can show image diffs, e.g.

Test Plan:

Reviewers:

CC:

15 years agoFix an issue in Subversion with a root working copy which is actually a symlink.
epriestley [Tue, 11 Jan 2011 22:26:21 +0000 (14:26 -0800)]
Fix an issue in Subversion with a root working copy which is actually a symlink.

Summary: lol svn lol

Test Plan:

Reviewers:

CC:

15 years agoWork around an issue with older diffs in the Facebook database.
epriestley [Mon, 10 Jan 2011 22:15:08 +0000 (14:15 -0800)]
Work around an issue with older diffs in the Facebook database.

Summary: We have some diffs which predate property tracking and are shipping
down sketch data, work around it in the client for now.

Test Plan:

Reviewers:

CC:

15 years agoAdd --never-apply-patches and --apply-patches to lint.
epriestley [Mon, 10 Jan 2011 22:03:12 +0000 (14:03 -0800)]
Add --never-apply-patches and --apply-patches to lint.

Summary: These flags let you force the behavior of 'arc lint' instead of
prompting. Also made the amend behavior default to false since I've screwed
this up about 300 times in the mere hours I've been using git as a primary VCS.

Test Plan: ran arc lint with these flags

Reviewers:

CC:

15 years agoAvoid path change collision issue when diffing an unusual edge case out of
epriestley [Mon, 10 Jan 2011 20:41:58 +0000 (12:41 -0800)]
Avoid path change collision issue when diffing an unusual edge case out of
svn.

Summary: when you "svn cp" with a revision, we end up with some path collision
problems. This isn't a complete fix but it gets the change to Differential,
at least.

Test Plan:

Reviewers:

CC:

15 years agoImprove phutil module linter behavior for vanished modules and missing or
epriestley [Mon, 10 Jan 2011 08:07:58 +0000 (00:07 -0800)]
Improve phutil module linter behavior for vanished modules and missing or
broken __init__.php.

Summary: This allows phutilmodulelinter to generate missing __init__.php and
recover from missing modules without horrible fataltown.

Test Plan:

Reviewers:

CC:

15 years agoRemove XHPAST from arcanist.
epriestley [Mon, 10 Jan 2011 06:11:31 +0000 (22:11 -0800)]
Remove XHPAST from arcanist.

Summary: see corresponding commit in libphutil

Test Plan: linted and analyzed both libraries, got more sensible build behavior

Reviewers:

CC:

15 years agoProvide a git commit template.
epriestley [Mon, 10 Jan 2011 04:42:37 +0000 (20:42 -0800)]
Provide a git commit template.

Summary: adds a Differential-suitable git commit template.

Test Plan: meta

Reviewers:

CC:

15 years agoFix some problems with the module linter that would cause various conflicting
epriestley [Mon, 10 Jan 2011 04:40:13 +0000 (20:40 -0800)]
Fix some problems with the module linter that would cause various conflicting
warnings raised in __init__.php to overwrite eachother in uncomfortable ways.

15 years agoFix a couple of lint issues, and update to version 2 (github).
epriestley [Sun, 9 Jan 2011 23:51:04 +0000 (15:51 -0800)]
Fix a couple of lint issues, and update to version 2 (github).

15 years agoInitial commit.
epriestley [Sun, 9 Jan 2011 23:22:25 +0000 (15:22 -0800)]
Initial commit.