Jordi Boggiano
beb9a5bd72
Code optimizations: avoid loops in match()
12 years ago
Jordi Boggiano
18492a1f84
Remove Pool::getMaxId and the solver's reliance on it
12 years ago
Jordi Boggiano
fb4183d5ad
Fix tests
12 years ago
Jordi Boggiano
d4aab7d5b6
Fix solver test
12 years ago
Jordi Boggiano
6573fd3f77
Add hint in solver exceptions as to what may be wrong
12 years ago
Jordi Boggiano
175d1939b5
Fix tests
12 years ago
Jordi Boggiano
e6f7150196
Change default minimum-stability to "stable", fixes #744
12 years ago
Jordi Boggiano
4fcc114f97
Merge pull request #808 from palex-fpt/not-equal-operator
...
Add '<>' operator to Version Parser
12 years ago
Nils Adermann
cc7632489d
Make problem report messages more readable
...
Added pretty strings to constraints
12 years ago
Alexey Prilipko
e130386612
Add '<>' operator for Version Parser
12 years ago
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
12 years ago
Nils Adermann
a08c2a0b9f
Corrected altered error message in test
12 years ago
Nils Adermann
67fde90666
Correctly sort operations within transactions using DFS
...
Fixes #655
12 years ago
Nils Adermann
a7f1605cdf
Add test for correct sorting when force installing deps
12 years ago
Nils Adermann
26e051cb76
Decisions are now encapsulated in a separate object
12 years ago
Nils Adermann
c869566868
Make ruleHash a protected member of rules
13 years ago
Nils Adermann
dd527a4049
Remove weak rules
...
Since we no longer have suggest/recommend rules and no longer use any update
or feature rules so packages are removed by default, we do not need weak rules
anymore.
13 years ago
Nils Adermann
451bab1c2c
Get rid of Literal object / literal id mix, use literals only to save memory
13 years ago
Jordi Boggiano
453b9a616b
Add test for Pool handling and refactor a couple things
13 years ago
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
13 years ago
Nils Adermann
15f43571b9
Rules of type feature are no longer needed
13 years ago
Nils Adermann
c37e126e14
Installed packages are now always removed unless otherwise requested
...
This means that an update request must always be accompanied by an install
request, otherwise the package might be removed rather than updated.
13 years ago
Nils Adermann
5daeacf0ac
We won't implement choice rules, you need to edit composer.json to choose
13 years ago
Jordi Boggiano
f7440076fa
Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
...
This reverts commit 2988152602
, reversing
changes made to adb4188e12
.
13 years ago
Nils Adermann
f4d5568937
Rules of type feature are no longer needed
13 years ago
Nils Adermann
2cb2cde096
Installed packages are now always removed unless otherwise requested
...
This means that an update request must always be accompanied by an install
request, otherwise the package might be removed rather than updated.
13 years ago
Nils Adermann
0e537b9c93
We won't implement choice rules, you need to edit composer.json to choose
13 years ago
Jordi Boggiano
06fb1b8083
Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576
13 years ago
Nils Adermann
a16aa68c1d
Rule literals are sorted, so first literal added is not first retrieved
...
Fixes #477
13 years ago
Nils Adermann
2c87fe5a22
Collect solver problems in Problem objects with human readable output.
13 years ago
Martin Hasoň
2b08df5192
Changed repository priority in the pool
13 years ago
Nils Adermann
f3ff53b17c
Create problems directly, rather than generating impossible rules
13 years ago
Nils Adermann
dd443cd570
Complete circular dependency with alternatives through virtual packages test
13 years ago
Nils Adermann
3e1749fbad
Readd update-all jobs and make them available through the request
13 years ago
Nils Adermann
9b8e62396c
Merge pull request #324 from edorian/installNonExistingPackage
...
Create an 'impossible rule' when installing non existent packages
13 years ago
Nils Adermann
3b06a22e69
Add getVersionConstraint test case to avoid version normalization issues
13 years ago
Volker Dusch
f304a0f129
Clean up the incomplete marker like suggested in https://github.com/composer/composer/pull/324#r465391
13 years ago
Nils Adermann
1ee5d99405
When changing watched literals of a rule, update the parent's next pointer
...
The previous rule was not previously updated to point to the next rule when
removing a middle rule from the watch tree for a literal. This resulted in
jumping from one literal's watch tree to another's, which could then jump
back to the original and cause infinite loop in a case like #265 .
Fixes #265
13 years ago
Volker Dusch
e20a79ac61
Fix TODO tags to confirm with the projects standard
13 years ago
Volker Dusch
eafe13d5a5
Create an impossible rule when trying to install something that doesn't exist.
...
The rule isn't acted upon yet (hence the incomplete test) but it is there as a reminder that this case needs to be handled.
13 years ago
Nils Adermann
e6143d1584
Add todos to explain why try/catch is inside the test
13 years ago
Nils Adermann
52d876e11e
Add SolverProblemsException and test basic solver failures
13 years ago
Volker Dusch
3fb75faa75
Now that no more update rules are created the code that handles them can be removed too.
...
Also adapted the tests that used TYPE_UPDATE exemplarily to use TYPE_FEATURE.
13 years ago
Volker Dusch
a8b2db64d5
Expaned the update tests to make sure a) Only requested updates execute and b) Installed repos with no actions get pruned from the jobqueue
13 years ago
Nils Adermann
8aa0127de8
Remove test of undefined behaviour for unknown types in rulesets
13 years ago
Nils Adermann
7609f27052
Merge branch 'add-tests' of https://github.com/l3l0/composer into new-master
...
* 'add-tests' of https://github.com/l3l0/composer :
Made fixes after review.
Made changes which fied warnings and errors in tests.
Fixed tests after update and merge of changes from upstream/master
Fixed code. Changes improved code testability
Added and extended some unit tests
13 years ago
Nils Adermann
460822fb96
Fix indentation of doc comment
13 years ago
Nils Adermann
3b54316e91
Add a test for the off by one error in solver conflict resolution
13 years ago
Leszek Prabucki
f59ca1e2f8
Made fixes after review.
13 years ago
Leszek Prabucki
de7f666118
Added and extended some unit tests
13 years ago