summaryrefslogtreecommitdiff
path: root/morphlib/localrepocache_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Echo stderr of subcommands that do network IO when --verbose is usedSam Thursfield2014-10-291-3/+8
| | | | | | | | | | | | Morph can appear to hang in situations where it is actually waiting on a slow network operation. This change gives users a way to see the output of the subcommands that are doing the network IO (either 'wget', 'git clone' or 'git remote update'). The status information goes onto stderr, because that is where the subcommands write it. Morph tends to put its status output on stdout, but (a) some commands are machine-parsed, such as `serialise-artifact` and (b) it's tricky to get Git to put status output on stdout.
* Refactored localrepocacheDaniel Firth2013-12-201-35/+25
|
* Avoid caching repos that are on the local machine anywaySam Thursfield2012-11-121-0/+5
| | | | | Currently the message is still displayed "Updating xxx" but no update is actually done.
* Use tarballs instead of bundlesDaniel Silverstone2012-09-251-8/+27
| | | | | | | This makes a non-backward-compatible change to morph which switches it to using tarballs instead of bundles when initialising cached git repositories. This is faster because it doesn't require index-pack --fix-thin operations on the machine running morph.
* Update unit tests for bare repo caches.Daniel Silverstone2012-09-141-3/+3
| | | | Update the unit tests so that they pass with the new bare repository caches.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-9/+8
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Fix unit tests to raise cliapp.AppException the right wayLars Wirzenius2012-06-071-1/+1
|
* morph: remove dead code and replace Execute with app.runcmdRichard Maw2012-05-301-2/+4
|
* Change LocalRepoCache to use the new RepoAliasResolver.Jannis Pohlmann2012-05-041-16/+3
|
* Remove %s from one of the url patterns, to improve test coverageLars Wirzenius2012-05-041-1/+1
|
* Remove use of baseurls in LocalRepoCacheLars Wirzenius2012-05-041-0/+6
| | | | The tests, they still fail.
* Implement repo-alias expansionLars Wirzenius2012-05-041-2/+2
| | | | | | | | Changed the delimieter between push and pull patterns to be #, since = is reasonably frequent in URLs, and # should never be necessary in git urls. Oh my how many tests now fail.
* Add tests for repo-alias expansionLars Wirzenius2012-05-041-0/+7
|
* Update LocalRepoCache tests to use repo aliases instead of baseurlsLars Wirzenius2012-05-041-6/+6
|
* Fix LocalRepoCache tests.Jannis Pohlmann2012-04-191-3/+3
|
* localrepocache tests: fake_git accept cwdRichard Maw2012-04-111-1/+1
|
* localrepocache unit tests: fix the bundle urlRichard Maw2012-04-111-1/+1
| | | | | Bundle urls generated by lorry end with .bndl, this was fixed but the test was not adjusted, doh!
* tests: clones should have origin url not be bundleRichard Maw2012-04-111-3/+7
|
* localrepocache: return error descriptionRichard Maw2012-04-111-2/+3
| | | | | | | | Also change _fetch to throw its exception as since it is more pythonic to throw exceptions than return exit status, other error handling needed to be caught, so it hsa been kept consistent. This required the tests to throw an exception as well
* Create cache directory when needed in LocalRepoCacheLars Wirzenius2012-04-101-0/+11
|
* Fix unit test to remember it's created a file when faking a downloadLars Wirzenius2012-04-101-0/+1
|
* Remove downloaded bundle after it has been clonedLars Wirzenius2012-04-091-0/+6
|
* Add bundle support to LocalRepoCacheLars Wirzenius2012-04-091-1/+25
|
* Add a LocalRepoCache classLars Wirzenius2012-04-091-0/+98
Jannis and I discussed a refactoring of most of morph's internals to reduce coupling and increase cohesion. This is one of the results: we'll want a couple of classes to manage locally cached git repositories. This commit adds the LocalRepoCache class to manage a the git cache directory. Later on, we'll add the CachedRepo class to represent individual repositories.