summaryrefslogtreecommitdiff
path: root/lorry
Commit message (Collapse)AuthorAgeFilesLines
...
| * Make lorry not bundle or push by defaultSam Thursfield2015-01-091-11/+13
| | | | | | | | | | | | | | | | It doesn't make sense to have Lorry push to a random default mirror server: users running Lorry without setting up any configuration are likely to be testers/developers that don't want it to randomly push stuff to places. It especially doesn't make sense to refer to the Codethink 'roadtrain' server which was decommissioned several years ago.
* | Redownload a tarball if it exists but is 0 bytes longSam Thursfield2015-01-091-1/+7
| | | | | | | | | | | | This is a safety measure. Commit 8bddb0996c44ce8ce989359a7b4c9ff102466ef2 should mean that this can't happen, but 'lorry' runs unattended so we really don't want it to break.
* | Delete downloaded tarballs on failureSam Thursfield2015-01-091-4/+9
|/ | | | | | Previously if a tarball lorry failed, a 0-byte tar file would be kept around and subsequent calls to lorry would return success without actually importing anything.
* Unconditionally update svn refspecsRichard Maw2014-11-051-20/+20
| | | | | | Similar to the url config change, if we need to change the refspecs for which branches to pull, then we need to apply them at every run, rather than just the first run.
* Make hg pulls use URL from spec, not defaultbaserock/richardmaw/lars-url-change-fixLars Wirzenius2014-11-051-1/+6
|
* Make Subversion lorrying obey URL changesLars Wirzenius2014-11-051-0/+8
|
* Only set GIT_SSL_NO_VERIFY on specific git invocationsbaserock/liw/new-lc-2Lars Wirzenius2014-04-221-4/+5
|
* Run ssh via a wrapper that disables host key checking, for CVSLars Wirzenius2014-04-161-2/+6
|
* Disable bzr certificate checkingLars Wirzenius2014-04-151-4/+7
|
* Set GIT_SSL_NO_VERIFY=true when running gitLars Wirzenius2014-04-141-1/+5
|
* Fix bug in command line option descriptionliw/daemoniseRichard Ipsum2014-01-061-2/+2
|
* Update copyright noticesrichardipsum/improve_backupsRichard Ipsum2013-12-171-1/+1
|
* Modify lorry backup behaviour and rename testsRichard Ipsum2013-12-171-17/+34
|
* Add --force to hg-fast-export usageDaniel Silverstone2013-04-101-1/+1
|
* Add --insecure to hg callsDaniel Silverstone2013-04-041-2/+2
|
* Ensure we only set stdin if it's not already setDaniel Silverstone2013-03-131-1/+2
|
* Various fixes to improve reliabilityDaniel Silverstone2013-02-261-8/+8
|
* Handle branch name kind changes more gracefully.Daniel Silverstone2012-10-081-2/+19
| | | | | | | | | | | | | | | | Scenario: a repository contains a ref: refs/heads/foo and we have that in our repository cache. Action: upstream deletes that ref and then pushes a new refs at refs/heads/foo/bar. Action: we attempt to update the git and the update fails because git remote update cannot cope with the 'kind' change of refs/heads/foo from ref to directory. Remedy: If we get an exception from the remote update --prune we try the less efficient but more resilient combination of first pruning and then updating.
* Resolve the real path to lorry to improve tar importer behaviourDaniel Silverstone2012-09-261-1/+3
|
* Do not run tarball imports unless necessaryDaniel Silverstone2012-09-251-0/+1
|
* Alter repack so that we do a 'git gc' instead.danielsilverstone/all-repos-bareDaniel Silverstone2012-09-241-3/+13
| | | | | | | | | | Git has a garbage collection 'porcelain' command called 'gc' which does more than just repack the repository. Use that in preference to 'git repack' and also configure the repositories so that they don't use too much RAM whilst repacking. Also, we allow gitify_* routines to set self.needs_aggressive on their initial imports so that we aggressively repack the first clone.
* Fix up Lorry to expect repositories to be bare.Daniel Silverstone2012-09-241-29/+63
| | | | | | | | This patch makes Lorry always create bare repositories where it can (Note that it cannot for CVS imports) and to create tarballs of bare repositories (if not disabled) which will be more efficient than bundles for creation and cloning. We may be able to disable bundles later.
* Try and make it so later tarball lorrying still worksDaniel Silverstone2012-09-191-15/+15
|
* Allow slashes in project namesLars Wirzenius2012-08-311-1/+2
|
* Improve reporting of exceptions during mirroringLars Wirzenius2012-08-311-5/+7
|
* Bundles: change the prefix to git.baserock.orgbaserock/bugfix/fix-bundle-pathsRichard Maw2012-08-201-1/+1
|
* lorry: change default base urls to roadtrainRichard Maw2012-05-291-2/+2
|
* lorry: force fetch from upstreamRichard Maw2012-05-241-2/+2
| | | | | As annoying as it is to have non-fast-forward commits, it is still a valid workflow, so it has to be allowed.
* lorry: don't assume the cached remote is correctRichard Maw2012-05-241-1/+3
| | | | | | | The origin remote may not be the remote that should be pulled from any more, it may have been changed in the .lorry. Also since we are pushing refs/heads/*, we should be fetching the same.
* lorry: fix url generationRichard Maw2012-05-241-10/+8
| | | | | Obviously pushing to the base-url won't work, the repository's url needs to be generated.
* lorry: remove code for adding remotesRichard Maw2012-05-241-29/+0
| | | | | | | Since the remote is no longer pushed to, and should never have been pulled from, any code for managing these remotes is no longer used. So the function for creating this remote and anything that checks for the remote can be removed.
* lorry: push to url specified in lorry configRichard Maw2012-05-241-2/+5
| | | | | | | | | | | | Rather than pushing to the remote 'gitorious', it is better to push to the remote specified in lorry's config, since it may have changed since the repository was originally mirrored, so the remote in git's config may be out of date. This may make the setting of the 'gitirous' remote obsolete now. Note that the semantic difference between pushing to a remote and pushing to a url isn't triggered because we always pass refspecs.
* lorry: absolute path for all working directoriesRichard Maw2012-04-201-4/+2
| | | | The user may specify a relative one
* lorry: use absolute path for working areaRichard Maw2012-04-201-1/+1
|
* Add drm.lorry and mesa.lorry. Change gitorious SSH URL.Jannis Pohlmann2012-04-051-1/+1
|
* lorry: backup .git in case of errorRichard Maw2012-03-281-7/+83
| | | | | | Backup the git repository before running mirror and if any part of mirroring fails, restore the .git repository to its previous state and keep the failed mirror for debugging.
* lorry: store the marks in the .git directoryRichard Maw2012-03-271-2/+2
| | | | | | | | | The marks correspond to the import state of the git repository, the .git directory is where the current state of the git repo is kept, so it makes sense for the marks to be in there. This is partly to allow the git state to be backed up before a repository is processed in case it is left in an inconsistent state.
* lorry: use refspecs in lorry filesRichard Maw2012-03-131-1/+4
| | | | | | | | | | | If refspecs are listed, pass them to push_to_mirror_server, if not allow push_to_mirror_server to use its default refspecs Also fix test cases: - refs/tags/rc* is not a valid refspec, * can only substitute a whole directory - git-for-each-ref needs the whole ref path, master is not the same as refs/heads/master
* lorry: move push refspecs logicRichard Maw2012-03-131-12/+5
| | | | | | | | | | Previously it was set in the add_remote stage, this means that the respecs used to push don't appear in the logs and a change in the lorry file would need the config changing This logic should be equivalent for what gets pushed as the push refspecs set in config are only used if refspecs aren't specified in the push command line.
* Make message go via the progress method so it's quiet by defaultLars Wirzenius2012-03-071-1/+1
|
* Merge remote branch 'origin/master'Lars Wirzenius2012-02-231-0/+14
|\
| * Add an sed hack to avoid unrecognized headers in generated bundles.Jannis Pohlmann2012-02-221-0/+14
| |
* | Break long lines into shorter onesLars Wirzenius2012-02-221-10/+15
|/
* lorry: suffix bundles with .bndlLorry2012-02-221-1/+1
|
* Rename method to not name the git serverLorry2012-02-211-2/+2
|
* Use separate cmdline options for fetch/push base URL.Jannis Pohlmann2012-02-201-14/+36
| | | | | | | | | | | Drop --gitorious-base-url and introduce --mirror-base-url-fetch and --mirror-base-url-push instead. The remote is still called 'gitorious' internally, we should probably change that to 'mirror-server' or 'mirror'. Other than that, these two options allow to use different URLs for pushing and pulling. The pulling URL is also used for naming the bundles.
* Update quote_url() to replace : with _.Jannis Pohlmann2012-02-201-3/+10
|
* Merge branch 'master' of gitorious.org:baserock/lorryAdnan Ali2012-02-201-1/+1
|\
| * Add the -a option to git cvsimport to always import all commits.Jannis Pohlmann2012-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | Without this, I always got a "refs/heads/origin is an invalid SHA1" error. From the git-cvsimport manual: -a Import all commits, including recent ones. cvsimport by default skips commits that have a timestamp less than 10 minutes ago.
* | lorry missing or relative path makes it failAdnan Ali2012-02-201-0/+7
|/ | | | | | | | lorry was failing to cope with missing or relative working directory. After fix if no directory is given it will show a message that no working directory in path and will use "workd" directory. It will also create the directory if it isn't present.