Mercurial > gub
changeset 3445:33ef00e5576b
Document brokenness of Repository (DIR) argument and `detection'.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Mon, 07 May 2007 09:40:17 +0200 |
parents | e378a9b4608e |
children | 537fb4f75270 |
files | gub/repository.py |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/repository.py Mon May 07 08:41:00 2007 +0200 +++ b/gub/repository.py Mon May 07 09:40:17 2007 +0200 @@ -645,8 +645,25 @@ cmd = 'cd %(working)s && bzr pull %(rev_opt)s' % locals () self.system (cmd) +# FIXME: repository detection AND repositories only work if they are +# checked-out in a dir named .../name.REPOSITORY Eg, for GIT, this +# means that only the first arbitrary in .git in +# `downloads/lilypond.git/.git' is `detected'. Repositories passed to +# test-gub must have the .REPOSITORY stripped, --repository=. does not +# work. + +# This is not trivial to fix, as the DIR passed to Repository () is +# not an existing directory, it gets `.REPOSITORY' appended in the +# constructors. + +# For test-gub to work outside gub again, for now use the +# workaround +# bzr branch xxx foo.BZR +# cd foo.BZR && test-gub --repository $(pwd) def get_repository_proxy (dir, branch): m = re.search (r"(.*)\.(bzr|git|cvs|svn|darcs)", dir) + + print 'dir:', dir dir = m.group (1) type = m.group (2)