Commit Graph
89494 Commits
Author SHA1 Message Date
anna a927ecf5d1 method refs: check constructor refs qualifiers (IDEA-92722) 2012-10-10 17:19:43 +02:00
anna 0706510a1e method refs: correct static flag detection in case of default constructors (IDEA-92735) 2012-10-10 17:19:42 +02:00
Sergey Evdokimov 741ebbc9d1 Support Maven 3: use CustomMaven3ArtifactFactory 2012-10-10 19:17:55 +04:00
irengrig 443313d528 Merge remote branch 'origin/master' 2012-10-10 19:14:21 +04:00
irengrig 5f6812cfd3 Merge remote branch 'origin/master' 2012-10-10 19:12:19 +04:00
Kirill Likhodedov 8f8e80e8bf [git tests] output git version only on startup of the tests 2012-10-10 19:11:10 +04:00
irengrig b15ed1a1dd vcs server db layer: sqlite, xerial jdbc driver for accessing,
db schema creation,
read/write project roots & vcses, append revisions + simple tests
2012-10-10 19:09:01 +04:00
Alexander Lobas 0407bc043c XCode 4.5 2012-10-10 18:56:30 +04:00
Alexander Lobas 4b02405987 XCode 4.5 2012-10-10 18:43:47 +04:00
Kirill Likhodedov 1168b70686 [git tests] setup username
Only in GitBranchWorkerTest for now.
2012-10-10 18:42:54 +04:00
Kirill Likhodedov ec6f3d2734 [git tests] Print Git version to the log at the startup. 2012-10-10 18:42:53 +04:00
Sergey Evdokimov 0cbb7017a6 Support Maven 3: use CustomMaven3RepositoryMetadataManager 2012-10-10 18:34:52 +04:00
Sergey Evdokimov c23e81486d Support Maven 3: use CustomMaven3ModelInterpolator 2012-10-10 18:21:09 +04:00
Sergey Evdokimov 93a38a4d1b Support Maven 3: resolving of module dependency 2012-10-10 18:16:51 +04:00
Kirill Likhodedov e4715f29d5 GitBranchWorkerTest: rearrange methods, extract prepareRemoteRepo() method 2012-10-10 17:32:04 +04:00
Nadya.Zabrodina 2385019c12 Hg: remove unused incomplete action, remove javadocs 2012-10-10 17:21:20 +04:00
anna 7b93d1e6ee disable change method signature quick fix in silly case (IDEA-92600) 2012-10-10 15:10:45 +02:00
anna 9911c0d3c9 method refs: correctly check receiver type in functional interface method (IDEA-92702) 2012-10-10 15:10:44 +02:00
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