Commit Graph
89476 Commits
Author SHA1 Message Date
anna 635ebe4e27 method refs: varargs in receiver position supported (IDEA-92711) 2012-10-10 15:10:43 +02:00
anna b929c5ad2f wildcards in receiver type supported (IDEA-92699) 2012-10-10 15:10:42 +02:00
Roman Shevchenko e946c087fb Better name for data flow test suite 2012-10-10 14:51:36 +02:00
Roman Shevchenko 1ed7dd703a To JB dictionary 2012-10-10 14:51:36 +02:00
irengrig 1701ea1c38 Merge remote branch 'origin/master' 2012-10-10 16:30:01 +04:00
irengrig 96b7ab9ea4 IDEA-50300 CVS: after update with -A the previously switched file is shown as switched until Refresh
thanks to Bas for help
2012-10-10 16:22:35 +04:00
Kirill Likhodedov 684f0da706 GitImpl.stashPop: don't forget to add listeners.
Otherwise conflict on unstash is treated as error, although the conflict resolver starts fine afterwards.
2012-10-10 16:22:31 +04:00
Kirill Likhodedov 05515fbbcf Git branches refactoring, tests and some minor fixes.
REFACTORING:
* Split the GitBrancher into 3 parts:
  - Extract all UI interactivity to the GitBranchUiHandler interface. Implement in GitBranchUiHandlerImpl.
  - Extract firing a background task into GitBrancher, which would be the public interface for branch operations.
  - Put the actual work into GitBranchWorker.
  - Remove the result handler from those GitBrancher methods which had it, until it is clear in what situation we need this result handler.
* Extract deletion of the remote branch into GitDeleteRemoteBranchOperation.
* Several improvements to lessen the dependency from platform:
  - move convertPathsToChanges from GitUtil to GitBranchOperation: it is used only there.
  - PlatformFacade.getVirtualFileForPath(). This is not the best idea, but other would be too much effort for now.
  - Use Git interface instead of direct GitHandler usage in several cases (stash save and pop, diff, history).
* Pass the PlatformFacade in many many Git components and classes instead of calling <platform component>.getInstance().

FIX a few bugs that were discovered during refactoring & testing:
* in multi-repository setup, if deletion succeeded for the first repository, and was denied for the second, don't collect information from already deleted branches.
* if a branch is not fully merged, and user denies force deletion, don't show notification about deletion failure.
* Make update of repository info (current revison, branch, etc.) before any active branch operation to make sure we perform operations based on actual information.

TESTING:
* Rewrite GitBranchOperationsTest to GitBranchWorkerTest instead that is platform independent and fast.
* Enhance GitExecutor with more commands useful to work with the file system.
* Introduce GitScenarios that would create some popular scenarios used in multiple tests, e. g.:
  - create a branch and commit something there;
  - make some unmerged files in the working tree;
  - make the situation when local changes would be overwritten by merge
* Transform GitTestPlatformFacade, GitTestRepositoryManager to Groovy.
* GitMockVirtualFile: use a single instance of the file system. Otherwise files comparison fails in some cases.
2012-10-10 16:22:30 +04:00
Kirill Likhodedov 6cc70316fc GitTestRunEnv: don't fail on every fatal error, just on index.lock error.
Fatal errors may be handled by the code being tested to provide user-friendly reaction on a failure, and we may want to test this reaction.
2012-10-10 16:22:29 +04:00
Kirill Likhodedov 40c5981269 MockChangesListManager: extend ChangeListManagerEx, implement more methods. 2012-10-10 16:22:29 +04:00
Kirill Likhodedov d6dea84645 Extract interface from SaveAndSyncHandler to allow easily implement it in tests 2012-10-10 16:22:28 +04:00
Kirill Likhodedov 89ae4b828b ChangeListManagerImpl: pull freezeImmediately up to ChangeListManagerEx 2012-10-10 16:22:28 +04:00
Kirill Likhodedov 6ca636cb17 Extract interface from SaveAndSyncHandler to allow easily implement it in tests 2012-10-10 16:22:27 +04:00
Kirill Likhodedov 61efd84a6b remove unused code 2012-10-10 16:22:26 +04:00
Vladimir Krivosheev 66278b154c cleanup, nullability 2012-10-10 16:10:04 +04:00
Alexey Kudravtsev 7afca2c35f empty list iterator 2012-10-10 16:08:12 +04:00
Alexey Kudravtsev 8d8d25c3d6 notnull, cleanup 2012-10-10 16:08:11 +04:00
Alexey Kudravtsev 5726d507ed reformat of many injected fragments: do not recreate range markers for each (exception "too many RMs" otherwise) 2012-10-10 16:08:10 +04:00
Alexey Kudravtsev c7e7c0ffd2 optimisation toArray 2012-10-10 16:08:09 +04:00
Alexey Kudravtsev 5af5379bef optimisation toArray 2012-10-10 16:08:08 +04:00
Eugene Kudelevsky 332d3f9761 androidLarge.png is not dead (used in AndroidModuleBuilder) 2012-10-10 15:56:02 +04:00
Oleg Sukhodolsky fa04a8ab71 Fixing lookahead generation: zzBufferLLength() should wrap results in brackets 2012-10-10 15:41:36 +04:00
nik 85383755b9 fixed reimporting maven project with test-jar dependencies (IDEA-92674) 2012-10-10 15:27:33 +04:00
nik 0fc27d86de external compiler: test added 2012-10-10 15:27:33 +04:00
Sergey Evdokimov 6cc802230a Remove dead code. 2012-10-10 15:23:41 +04:00
Sergey Evdokimov 64cb491dcd Remove dead code. 2012-10-10 15:23:08 +04:00
Sergey Evdokimov ea64ab20b8 Don't process plugins from build.getPluginManagement() 2012-10-10 15:19:29 +04:00
Roman Shevchenko 334f995903 Extra border dropped 2012-10-10 13:13:50 +02:00
Roman Shevchenko b13e8b0d7a Move try-with-resources data flow test to right place 2012-10-10 13:03:57 +02:00
Roman Shevchenko 4dd466fde6 Cleanup 2012-10-10 13:03:57 +02:00
Eugene Kudelevsky f24fc7ba67 remove CamelHumpMatcher.forceStartMatching from android tests 2012-10-10 14:47:39 +04:00
Eugene Kudelevsky 2ad8cfdffa EA-39798 read access 2012-10-10 14:47:38 +04:00
Eugene Kudelevsky 14a33cd590 IDEA-90562 avoid file blocking issue 2012-10-10 14:47:37 +04:00
Dmitry Avdeev 1a42a4ef35 cleanup 2012-10-10 14:09:32 +04:00
Dmitry Avdeev 17d4eff6d2 preserving selection 2012-10-10 14:09:31 +04:00
Dmitry Avdeev 5369311967 blinking suppressed 2012-10-10 14:09:30 +04:00
Dmitry Avdeev 07729bfe1e applying selection 2012-10-10 14:09:29 +04:00
Dmitry Avdeev 6dddb3280e saving/restoring selection 2012-10-10 14:09:28 +04:00
Yann Cébron 9bc85c43c1 javadoc 2012-10-10 11:20:42 +02:00
Roman Shevchenko 0dc1191c25 IDEA-92588 (check for AutoCloseable on interface extraction) 2012-10-10 10:35:51 +02:00
Roman Shevchenko 37941c490f Cleanup 2012-10-10 09:44:36 +02:00
Evgeny Zakrevsky aa3bf48a13 cleanup 2012-10-10 06:39:53 +04:00
Evgeny Zakrevsky a86e9f53a1 Tasks. Faster search in mantis. Task cache and updating time increased. 2012-10-10 06:37:40 +04:00
Evgeny Zakrevsky 3ea06f5d17 rename 2012-10-10 02:25:02 +04:00
Evgeny Zakrevsky ed8ca38d25 Merge remote-tracking branch 'origin/master' 2012-10-10 02:16:01 +04:00
Evgeny Zakrevsky a1497d73ab Tasks search improved for Mantis and Generic Connector 2012-10-10 02:11:13 +04:00
Bas Leijdekkers f541ed314a IDEA-71293 (Inspections / Imports / Redundant Import: no warning for type import redundant due to static import) 2012-10-09 22:28:43 +02:00
Bas Leijdekkers 8dd16279c1 IDEA-71186 (Inspections / Imports / Redundant import: false positive with static imports of deeply nested elements) 2012-10-09 21:37:51 +02:00
Dmitry Jemerov bb1a413d86 casing 2012-10-09 21:27:58 +02:00
Dmitry Jemerov 253967845c new dummy project is internal action (IDEA-92604) 2012-10-09 21:27:57 +02:00