|
@@ -42,4 +42,13 @@ abstract class SolverOperation implements OperationInterface
|
|
|
{
|
|
|
return $this->reason;
|
|
|
}
|
|
|
+
|
|
|
+ protected function formatVersion(PackageInterface $package)
|
|
|
+ {
|
|
|
+ if (!$package->isDev() || !in_array($package->getSourceType(), array('hg', 'git'))) {
|
|
|
+ return $package->getPrettyVersion();
|
|
|
+ }
|
|
|
+
|
|
|
+ return $package->getPrettyVersion().' '.substr($package->getSourceReference(), 0, 6);
|
|
|
+ }
|
|
|
}
|