68 Commits (597f834ae998ea80797879f4259e8e6accff4a4b)

Author SHA1 Message Date
Thomas Flori 597f834ae9 add getFileContent function
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.

By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Rafael Kassner 44634a689d HgDriver does not identify bitbucket mercurial repos correctly 8 years ago
Jordi Boggiano 2062070be9 Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008 8 years ago
Niels Keurentjes eb77c0b7f5 phpDoc cleanup, removed unused imports, variables and parameters. 8 years ago
Niels Keurentjes 49524bc4ba Centralize secure-http checking 8 years ago
Jordi Boggiano 7e1a23eef7 Add missing use statements 8 years ago
Jordi Boggiano 6f42b9c865 Disable git, svn, http protocols for VCS downloaders, fixes #4968 8 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 5133c3fe9a Merge pull request #3424 from kaktus42/master
return false if local file path does not exist in GitDriver and HgDriver
10 years ago
Jordi Boggiano 2b7b605839 Skip empty time values 10 years ago
kaktus42 116ccdac62 return false if local file path does not exist in GitDriver and HgDriver 10 years ago
Jordi Boggiano e61e62908e Merge remote-tracking branch 'frederikbosch/patch-1' 10 years ago
Jordi Boggiano 91ac3e1426 Add support for unixy paths in git/hg local repo urls, closes #3294 10 years ago
frederik d1d40502bf ProcessExecutor::escape 10 years ago
frederik 7ae1430689 #3297 ProcessUtil class using ProcessUtil of Symfony Console 10 years ago
Jordi Boggiano effacc1185 Do not realpath relative local URLs, fixes #2916 10 years ago
Matthias Pigulla f626f55f41 No need to create hg working copies just to parse tags/branches 11 years ago
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 11 years ago
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 11 years ago
Sebastian Schawohl 4198688f54 Change date format when getting log from mercurial
Use rfc3339date format instead of rfc822date to avoid exceptions from
DateTime constructor because of localized dates.

fix #2346
11 years ago
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 11 years ago
Andrey Utkin 340e960614 Allow svn repositories to reside deeper than module root 11 years ago
Christoph cebd43e735 fixed detection of inactive branches in hg 12 years ago
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 12 years ago
Jordi Boggiano 326fcbcab7 Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923 12 years ago
Jordi Boggiano 3116c979d3 Fix undefined var, fixes #1235 12 years ago
Jordi Boggiano fde3477563 Report issues in HgDriver as well 12 years ago
Zsolt Szeberenyi 5201564c0f Added support for hg bookmarks 12 years ago
Joseph Bielawski 4772db1460 Add missing `use` in HgDriver
Closes #1165
12 years ago
Jordi Boggiano 6bd7ca0230 Fix typos and simplify code 12 years ago
Jordi Boggiano 35245eb817 Add support for local urls and better error reporting to HgDriver 12 years ago
Robert Schönthal 0cd453449b minor changes to JsonFile::parseJson for Drivers 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 12 years ago
Jordi Boggiano d21032ace5 CS fixes 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jerome Tamarelle f0ea097134 Remove umask 12 years ago
Jerome Tamarelle 8b408449f6 Create ~/.composer/cache.hg directory if not exists 12 years ago
Jerome Tamarelle 23ef8a419a Fix var scope in HgDriver 12 years ago
Jérôme Tamarelle d200481037 Fix tmp dir for HgDriver 12 years ago
Jerome Tamarelle da823f5f19 Store vcs repositories in composer home to prevent permission issues 12 years ago
Jerome Tamarelle 949728f812 Remove redundant __contruct from VcsDriver implementations and move init code to initialize method 12 years ago
Jordi Boggiano 6d5b4d606c Add warning in verbose mode if drivers can not be used because of missing openssl 12 years ago
Jordi Boggiano 3e22084ea4 Overhaul VcsDrivers, introduce TransportException for remote filesystem errors 12 years ago
Per Bernhardt 9a17899608 Although the tag "tip" does not provide a valid package version (see VersionParser), the implementation of HgDriver::getSource uses tip as the prefered label for the branch that tip is currently on.
This is not a problem at first hand because you can install a new package correctly with "tip" as source reference.

The problem is that any new revision on that branch won't lead to a new package, because the package will always refer to the same reference "tip".

Therefore you cannot update your project to the new version with "composer update".
13 years ago
Jordi Boggiano e2199b2b03 Fixed automatic date parsing of versions 13 years ago
Brian Clozel 23d85f1900 fix typo 13 years ago
Brian Clozel 33a0ba69de fix issue #251 - Using $this not in object context 13 years ago
Jordi Boggiano 702d415472 Fix usage of the ProcessExecutor 13 years ago
Jordi Boggiano e218b811e0 Convert static Process into an executor that can be injected 13 years ago
Jordi Boggiano 6492118f29 Merge remote-tracking branch 'francoispluchino/master'
Conflicts:
	src/Composer/Repository/Vcs/GitDriver.php
	src/Composer/Repository/Vcs/HgDriver.php
	src/Composer/Repository/Vcs/SvnDriver.php
13 years ago