chiark / gitweb /
dgit.git
9 years agoAbolish $realdestrepo variable and replace with function.
Ian Jackson [Tue, 28 Apr 2015 12:26:54 +0000 (13:26 +0100)]
Abolish $realdestrepo variable and replace with function.

Fixes a use-before-set of $realdestrepo

9 years agoFix undef warning in Vcs-Git handling
Ian Jackson [Tue, 28 Apr 2015 12:26:14 +0000 (13:26 +0100)]
Fix undef warning in Vcs-Git handling

9 years agodgit-repos-server: Check that no args follow --ssh
Ian Jackson [Tue, 28 Apr 2015 10:02:35 +0000 (11:02 +0100)]
dgit-repos-server: Check that no args follow --ssh

9 years agodgit-repos-server: Break out mode_ssh and generalise --ssh option (nfc)
Ian Jackson [Tue, 28 Apr 2015 09:48:24 +0000 (10:48 +0100)]
dgit-repos-server: Break out mode_ssh and generalise --ssh option (nfc)

9 years agodgit-repos-server etc.: Rework argument & distros-dir passing (no overall functional...
Ian Jackson [Thu, 23 Apr 2015 14:03:29 +0000 (15:03 +0100)]
dgit-repos-server etc.: Rework argument & distros-dir passing (no overall functional change)

9 years agodgit-repos-server: Set internal $suitesfile and $keyrings as well as just env vars.
Ian Jackson [Thu, 23 Apr 2015 12:18:41 +0000 (13:18 +0100)]
dgit-repos-server: Set internal $suitesfile and $keyrings as well as just env vars.

9 years agodgit-repos-server: Document forthcoming --cron option
Ian Jackson [Thu, 23 Apr 2015 12:18:18 +0000 (13:18 +0100)]
dgit-repos-server: Document forthcoming --cron option

9 years agoTest suite: start work on test of policy machinery
Ian Jackson [Sun, 19 Apr 2015 21:51:33 +0000 (22:51 +0100)]
Test suite: start work on test of policy machinery

9 years agodgit-repos-policy-debian: Many bugfixes
Ian Jackson [Sun, 19 Apr 2015 21:50:44 +0000 (22:50 +0100)]
dgit-repos-policy-debian: Many bugfixes

9 years agodgit-repos-server: Pass $dgitrepos properly to stunt hook (and hence to policy hook)
Ian Jackson [Sun, 19 Apr 2015 21:49:48 +0000 (22:49 +0100)]
dgit-repos-server: Pass $dgitrepos properly to stunt hook (and hence to policy hook)

9 years agoTest suite: break out t-expect-fail
Ian Jackson [Sun, 19 Apr 2015 21:49:14 +0000 (22:49 +0100)]
Test suite: break out t-expect-fail

9 years agoNew policy admin script
Ian Jackson [Sun, 19 Apr 2015 20:26:47 +0000 (21:26 +0100)]
New policy admin script

9 years agoTest suite: make HOME be an absolute path (!)
Ian Jackson [Sun, 19 Apr 2015 15:34:43 +0000 (16:34 +0100)]
Test suite: make HOME be an absolute path (!)

9 years agoLANG, LC_*: Consistently set required LC_* env vars
Ian Jackson [Sun, 19 Apr 2015 15:01:04 +0000 (16:01 +0100)]
LANG, LC_*: Consistently set required LC_* env vars

9 years agoTest suite: break out t-prep-newpackage (nfc)
Ian Jackson [Sun, 19 Apr 2015 14:56:47 +0000 (15:56 +0100)]
Test suite: break out t-prep-newpackage (nfc)

9 years agoUse ftpasterapi archive query method for tests
Ian Jackson [Sun, 19 Apr 2015 14:20:49 +0000 (15:20 +0100)]
Use ftpasterapi archive query method for tests

9 years agoTest suite: add component "main" to synthesised mirror filenames
Ian Jackson [Wed, 15 Apr 2015 20:27:39 +0000 (21:27 +0100)]
Test suite: add component "main" to synthesised mirror filenames

9 years agodgit-repos-policy-debian: Fix misleading varible name
Ian Jackson [Wed, 15 Apr 2015 20:08:59 +0000 (21:08 +0100)]
dgit-repos-policy-debian: Fix misleading varible name

9 years agoUse ftpmasterapi archive query method. (Closes:#727702.)
Ian Jackson [Wed, 15 Apr 2015 17:08:43 +0000 (18:08 +0100)]
Use ftpmasterapi archive query method.  (Closes:#727702.)

10 years agoProvide ftpmasterapi archive query method
Ian Jackson [Wed, 15 Apr 2015 17:06:33 +0000 (18:06 +0100)]
Provide ftpmasterapi archive query method

10 years agoFix inaccurate error message when archive's git hash is not an ancestor of git repo...
Ian Jackson [Wed, 15 Apr 2015 17:05:09 +0000 (18:05 +0100)]
Fix inaccurate error message when archive's git hash is not an ancestor of git repo's git hash.

10 years agoProvide $component_re
Ian Jackson [Wed, 15 Apr 2015 17:03:45 +0000 (18:03 +0100)]
Provide $component_re

10 years agoarchive query methods: Clarify organisation (code motion, nfc)
Ian Jackson [Wed, 8 Apr 2015 17:17:00 +0000 (18:17 +0100)]
archive query methods: Clarify organisation (code motion, nfc)

10 years agoTest suite: Use make for parallel execution
Ian Jackson [Sun, 22 Mar 2015 17:59:08 +0000 (17:59 +0000)]
Test suite: Use make for parallel execution

10 years agoTests: rename "dss" to "dsd" (for dgit-ssh-dispatch)
Ian Jackson [Sun, 22 Mar 2015 17:19:22 +0000 (17:19 +0000)]
Tests: rename "dss" to "dsd" (for dgit-ssh-dispatch)

10 years agoBugfixes (now all tests pass again)
Ian Jackson [Sun, 22 Mar 2015 17:13:43 +0000 (17:13 +0000)]
Bugfixes (now all tests pass again)

10 years agoBugfixes (now tests/tests/drs-clone-nogit works)
Ian Jackson [Sun, 22 Mar 2015 16:57:51 +0000 (16:57 +0000)]
Bugfixes (now tests/tests/drs-clone-nogit works)

10 years agoBugfixes (now tests/tests/clone-nogit works)
Ian Jackson [Sun, 22 Mar 2015 16:00:52 +0000 (16:00 +0000)]
Bugfixes (now tests/tests/clone-nogit works)

10 years agoDebian policy: Merge remaining relevant comments into policy script
Ian Jackson [Sun, 22 Mar 2015 15:28:58 +0000 (15:28 +0000)]
Debian policy: Merge remaining relevant comments into policy script

10 years agodgit-repos-policy-debian: retry on db commit failure
Ian Jackson [Sun, 22 Mar 2015 11:09:11 +0000 (11:09 +0000)]
dgit-repos-policy-debian: retry on db commit failure

10 years agoRepos policy machinery: better docs, etc.
Ian Jackson [Sun, 22 Mar 2015 10:30:23 +0000 (10:30 +0000)]
Repos policy machinery: better docs, etc.

10 years agoWIP Debian policy
Ian Jackson [Sun, 22 Mar 2015 10:17:09 +0000 (10:17 +0000)]
WIP Debian policy

push-confirm

10 years agodgit-repos-server: run push-confirm hook
Ian Jackson [Sun, 22 Mar 2015 10:16:50 +0000 (10:16 +0000)]
dgit-repos-server: run push-confirm hook

10 years agodgit-repos-server: Further fixes to locking; rename acquiretree to acquirermtree
Ian Jackson [Sat, 21 Mar 2015 17:43:40 +0000 (17:43 +0000)]
dgit-repos-server: Further fixes to locking; rename acquiretree to acquirermtree

10 years agodgit-repos-server: Sort out locking hierarchy (and some comments)
Ian Jackson [Sat, 21 Mar 2015 17:32:10 +0000 (17:32 +0000)]
dgit-repos-server: Sort out locking hierarchy (and some comments)

10 years agoSupport --deliberately-not-fast-forward
Ian Jackson [Sat, 21 Mar 2015 14:56:24 +0000 (14:56 +0000)]
Support --deliberately-not-fast-forward

10 years agoWIP Debian policy
Ian Jackson [Sat, 21 Mar 2015 14:53:34 +0000 (14:53 +0000)]
WIP Debian policy

Reorg taint tag a bit

10 years agoIntroduce git_for_each_tag_referring
Ian Jackson [Sun, 22 Mar 2015 14:56:32 +0000 (14:56 +0000)]
Introduce git_for_each_tag_referring

10 years agoIntroduce git_for_each_ref
Ian Jackson [Sat, 21 Mar 2015 13:47:42 +0000 (13:47 +0000)]
Introduce git_for_each_ref

10 years agoMove stat_exists to Dgit.pm
Ian Jackson [Sat, 21 Mar 2015 13:41:06 +0000 (13:41 +0000)]
Move stat_exists to Dgit.pm

10 years agoBreak out $branchprefix, server_branch, server_ref into Dgit.pm
Ian Jackson [Sat, 21 Mar 2015 13:14:46 +0000 (13:14 +0000)]
Break out $branchprefix, server_branch, server_ref into Dgit.pm

10 years agodgit-repos-server: Deal with FRESHREPO from push hook
Ian Jackson [Sat, 21 Mar 2015 12:04:01 +0000 (12:04 +0000)]
dgit-repos-server: Deal with FRESHREPO from push hook

10 years agodgit-repos-server: Make $policy a global
Ian Jackson [Sat, 21 Mar 2015 12:02:21 +0000 (12:02 +0000)]
dgit-repos-server: Make $policy a global

10 years agodgit-repos-server: Move onwardpush and break up its @cmd construction
Ian Jackson [Sat, 21 Mar 2015 12:01:35 +0000 (12:01 +0000)]
dgit-repos-server: Move onwardpush and break up its @cmd construction

10 years agodgit-repos-server: Break out movetogarbage
Ian Jackson [Sat, 21 Mar 2015 11:55:13 +0000 (11:55 +0000)]
dgit-repos-server: Break out movetogarbage

10 years agodgit-repos-server: Break out mkrepo_fromtemplate
Ian Jackson [Sat, 21 Mar 2015 11:52:46 +0000 (11:52 +0000)]
dgit-repos-server: Break out mkrepo_fromtemplate

10 years agodgit-repos-server: break out mkemptyrepo
Ian Jackson [Sat, 21 Mar 2015 11:42:40 +0000 (11:42 +0000)]
dgit-repos-server: break out mkemptyrepo

10 years agoWIP Debian policy
Ian Jackson [Sat, 21 Mar 2015 10:53:51 +0000 (10:53 +0000)]
WIP Debian policy

More code.

10 years agoExport policy hook exist status flags from Dgit.pm
Ian Jackson [Sat, 21 Mar 2015 10:53:10 +0000 (10:53 +0000)]
Export policy hook exist status flags from Dgit.pm

10 years agoMove $package_re into Debian::Dgit
Ian Jackson [Sat, 21 Mar 2015 10:48:37 +0000 (10:48 +0000)]
Move $package_re into Debian::Dgit

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
10 years agoDiversion via dgit-git.debian.net (gideon) - fixes
Ian Jackson [Tue, 17 Mar 2015 22:41:04 +0000 (22:41 +0000)]
Diversion via dgit-git.debian.net (gideon) - fixes

10 years agoHonour policy hook
Ian Jackson [Tue, 17 Mar 2015 22:40:04 +0000 (22:40 +0000)]
Honour policy hook

10 years agoIntroduce policy-hook script into dgit-ssh-dispatch and dgit-repos-server, but do...
Ian Jackson [Tue, 17 Mar 2015 22:35:06 +0000 (22:35 +0000)]
Introduce policy-hook script into dgit-ssh-dispatch and dgit-repos-server, but do not supply one yet

10 years agodgit: Introduce "deliberatelies"
Ian Jackson [Tue, 17 Mar 2015 22:22:44 +0000 (22:22 +0000)]
dgit: Introduce "deliberatelies"

No underlying recipient of this info yet - just plumbing.

10 years agoWIP Debian policy
Ian Jackson [Tue, 17 Mar 2015 21:56:41 +0000 (21:56 +0000)]
WIP Debian policy

More notes and also some code

10 years agodgit-repos-server: check suite a little later
Ian Jackson [Tue, 17 Mar 2015 21:55:00 +0000 (21:55 +0000)]
dgit-repos-server: check suite a little later

10 years agodgit git tags mention the distro explicitly; dgit-repos-server checks it
Ian Jackson [Tue, 17 Mar 2015 21:54:08 +0000 (21:54 +0000)]
dgit git tags mention the distro explicitly; dgit-repos-server checks it

10 years agoinfra: Pass distro to dgit-repos-server
Ian Jackson [Tue, 17 Mar 2015 21:52:36 +0000 (21:52 +0000)]
infra: Pass distro to dgit-repos-server

10 years agoIntroduce Debian/Dgit.pm
Ian Jackson [Sun, 15 Feb 2015 18:32:49 +0000 (18:32 +0000)]
Introduce Debian/Dgit.pm

10 years agodgit: Provide internal archive-api-query command
Ian Jackson [Sun, 18 Jan 2015 17:59:23 +0000 (17:59 +0000)]
dgit: Provide internal archive-api-query command

10 years agoWIP Debian policy
Ian Jackson [Fri, 12 Dec 2014 19:55:10 +0000 (19:55 +0000)]
WIP Debian policy

Some notes in new document README.Debian-NEW

10 years agodebian/changelog: Mention some bugs which we are dealing with
Ian Jackson [Tue, 25 Nov 2014 15:21:33 +0000 (15:21 +0000)]
debian/changelog: Mention some bugs which we are dealing with

10 years agoDocument in manpage under `dgit push' that it is best to build with dgit too.
Ian Jackson [Tue, 25 Nov 2014 15:19:08 +0000 (15:19 +0000)]
Document in manpage under `dgit push' that it is best to build with dgit too.

10 years agoReject (rather than ignoring) further options merged witht -wn, -wg, -wd.
Ian Jackson [Tue, 25 Nov 2014 15:14:42 +0000 (15:14 +0000)]
Reject (rather than ignoring) further options merged witht -wn, -wg, -wd.

10 years agoComplain about lack of cuddled values for value-taking single-letter options, rather...
Ian Jackson [Tue, 25 Nov 2014 15:12:42 +0000 (15:12 +0000)]
Complain about lack of cuddled values for value-taking single-letter options, rather than thinking the user meat an empty value. Closes:#763332.

10 years agoDo not offer wget as an alternative dependency to curl. We always unconditionally...
Ian Jackson [Tue, 25 Nov 2014 15:08:37 +0000 (15:08 +0000)]
Do not offer wget as an alternative dependency to curl.  We always unconditionally invoke curl and have no code to use wget. Closes:#760805.

10 years agoStrip `-b <branch>' from contents of Vcs-Git header, when setting up the vcs-git...
Ian Jackson [Tue, 25 Nov 2014 15:03:11 +0000 (15:03 +0000)]
Strip `-b <branch>' from contents of Vcs-Git header, when setting up the vcs-git remote.  Closes:#759374.

10 years agoquilt linearisation in changelog
Ian Jackson [Sun, 23 Nov 2014 14:12:28 +0000 (14:12 +0000)]
quilt linearisation in changelog

10 years agoMake --no-quilt-fixup an alias for (a new option) --quilt=nocheck
Ian Jackson [Sun, 23 Nov 2014 13:53:19 +0000 (13:53 +0000)]
Make --no-quilt-fixup an alias for (a new option) --quilt=nocheck

10 years agoBetter documentation for quilt series handling.
Ian Jackson [Sun, 23 Nov 2014 13:51:22 +0000 (13:51 +0000)]
Better documentation for quilt series handling.

10 years agotests/tests/quilt: Test series quiltification
Ian Jackson [Sun, 16 Nov 2014 20:32:58 +0000 (20:32 +0000)]
tests/tests/quilt: Test series quiltification

10 years agotests/tests/quilt: Reorganise loop into a function (nfc)
Ian Jackson [Sun, 16 Nov 2014 20:32:22 +0000 (20:32 +0000)]
tests/tests/quilt: Reorganise loop into a function (nfc)

10 years agoquilt: Generate individual patches CHANGELOG BUG
Ian Jackson [Sun, 9 Nov 2014 23:27:20 +0000 (23:27 +0000)]
quilt: Generate individual patches CHANGELOG BUG

10 years agoquiltify_dpkg_commit: Improve
Ian Jackson [Sun, 16 Nov 2014 20:21:42 +0000 (20:21 +0000)]
quiltify_dpkg_commit: Improve

* Coalesce $msg and $title
* New optional $xinfo argument
* Squah trailing whitespace (eg blank lines)

10 years agoBreak out quiltify_dpkg_commit (nfc)
Ian Jackson [Sat, 15 Nov 2014 18:31:11 +0000 (18:31 +0000)]
Break out quiltify_dpkg_commit (nfc)

10 years agoMake fail() cope with multi-line messages
Ian Jackson [Sat, 15 Nov 2014 18:21:12 +0000 (18:21 +0000)]
Make fail() cope with multi-line messages

10 years agoBreak out git_write_tree (nfc)
Ian Jackson [Sun, 9 Nov 2014 23:27:13 +0000 (23:27 +0000)]
Break out git_write_tree (nfc)

10 years agoquilt patchification: Break out quiltify() (nfc)
Ian Jackson [Wed, 29 Oct 2014 17:53:13 +0000 (17:53 +0000)]
quilt patchification: Break out quiltify() (nfc)

10 years agoNew dgit-infrastructure binary package containing dgit-repos-server et al. Client...
Ian Jackson [Sat, 8 Nov 2014 22:21:27 +0000 (22:21 +0000)]
New dgit-infrastructure binary package containing dgit-repos-server et al.  Client users probably don't want this stuff.  Also, it provides a convenient way to publish the dependencies.

10 years agoAdd missing `gpgv' to test dependencies in debian/tests/control.
Ian Jackson [Sat, 8 Nov 2014 22:21:55 +0000 (22:21 +0000)]
Add missing `gpgv' to test dependencies in debian/tests/control.

10 years agotests: Test dgit-ssh-dispatch
Ian Jackson [Sat, 8 Nov 2014 22:02:07 +0000 (22:02 +0000)]
tests: Test dgit-ssh-dispatch

10 years agoinfra/dgit-ssh-dispatch: New production infra script
Ian Jackson [Sat, 8 Nov 2014 21:53:33 +0000 (21:53 +0000)]
infra/dgit-ssh-dispatch: New production infra script

10 years agoinfra/ssh-wrap: New example script
Ian Jackson [Sat, 8 Nov 2014 21:51:28 +0000 (21:51 +0000)]
infra/ssh-wrap: New example script

10 years agoDiversion via dgit-git.debian.net (gideon)
Ian Jackson [Sun, 2 Nov 2014 17:02:32 +0000 (17:02 +0000)]
Diversion via dgit-git.debian.net (gideon)

10 years agoclone: Check for git earlier
Ian Jackson [Sat, 8 Nov 2014 16:04:07 +0000 (16:04 +0000)]
clone: Check for git earlier

check_for_git is going to maybe want to change the git-url, so run it
sooner.  No substantial functional change.

10 years agotests: Break out t-chain-test
Ian Jackson [Sat, 8 Nov 2014 16:06:57 +0000 (16:06 +0000)]
tests: Break out t-chain-test

10 years agotests: Make t-alt-test out of t-drs-test
Ian Jackson [Wed, 5 Nov 2014 21:39:23 +0000 (21:39 +0000)]
tests: Make t-alt-test out of t-drs-test

10 years agotests: Honour DGIT_TEST_INTREE
Ian Jackson [Wed, 5 Nov 2014 21:23:14 +0000 (21:23 +0000)]
tests: Honour DGIT_TEST_INTREE

10 years agoinfra: Provide get-dm-txt
Ian Jackson [Sat, 8 Nov 2014 16:37:03 +0000 (16:37 +0000)]
infra: Provide get-dm-txt

This script (which will become an example) fetches the Debian
ftpmasters' dm.txt file, which lists permissions granted to Debian
Maintainers.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
10 years agodgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send...
Ian Jackson [Sat, 8 Nov 2014 16:45:11 +0000 (16:45 +0000)]
dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send, sigh).

10 years agoNew $some-user-force config variable
Ian Jackson [Sun, 2 Nov 2014 16:52:57 +0000 (16:52 +0000)]
New $some-user-force config variable

This will allow dgit-distro.debian.git-user-force to be set to dgit,
but reset to '' by dgit-distro.debian/alioth.git-user-force, so that
when diverted back to alioth, we fall back to the previously-specified
username.

10 years agoconfig: New instead_distro feature
Ian Jackson [Sun, 2 Nov 2014 16:52:29 +0000 (16:52 +0000)]
config: New instead_distro feature

The ssh-cmd git-check can now send us looking elsewhere.  This will
make migration possible.

10 years agoIn access_quirk, filter by defined at the end. (nfc)
Ian Jackson [Sun, 2 Nov 2014 16:10:51 +0000 (16:10 +0000)]
In access_quirk, filter by defined at the end.  (nfc)

10 years agoIntroduce access_runeinfo, and put basedistro name in ssh command hint string
Ian Jackson [Sun, 2 Nov 2014 16:09:49 +0000 (16:09 +0000)]
Introduce access_runeinfo, and put basedistro name in ssh command hint string

10 years agoAdd `: dgit <blah>... ;' to the front of ssh remote commands, for the benefit of...
Ian Jackson [Thu, 30 Oct 2014 00:38:04 +0000 (00:38 +0000)]
Add `: dgit <blah>... ;' to the front of ssh remote commands, for the benefit of forced command wrappers

10 years agoRegularise and comment access_cfg
Ian Jackson [Thu, 30 Oct 2014 00:17:52 +0000 (00:17 +0000)]
Regularise and comment access_cfg

10 years agoIf $idistro set (ie, distro explicitly specified by user), do not look at anything...
Ian Jackson [Thu, 30 Oct 2014 00:16:15 +0000 (00:16 +0000)]
If $idistro set (ie, distro explicitly specified by user), do not look at anything to do with suite's distro config (nor some totally bogus fixed config variable)

10 years agoFix handling of rmadison-based and gitless distros (e.g., Ubuntu).
Ian Jackson [Wed, 29 Oct 2014 21:56:02 +0000 (21:56 +0000)]
Fix handling of rmadison-based and gitless distros (e.g., Ubuntu).

10 years agoMake access_giturl be capable of being optional, and use this feature when cloning...
Ian Jackson [Wed, 29 Oct 2014 21:54:34 +0000 (21:54 +0000)]
Make access_giturl be capable of being optional, and use this feature when cloning (for the benefit of distros with no dgit-repos)

10 years agoMove defaulting out of archive_query into individual methods and the actual default...
Ian Jackson [Wed, 29 Oct 2014 18:29:32 +0000 (18:29 +0000)]
Move defaulting out of archive_query into individual methods and the actual default config