chiark / gitweb /
dgit.git
8 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 (!)

8 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

8 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)

8 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

8 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

8 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

8 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.)

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

9 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.

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

9 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)

9 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

9 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)

9 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)

9 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)

9 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)

9 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

9 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

9 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.

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

push-confirm

9 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

9 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

9 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)

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

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

More code.

9 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

9 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>
9 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

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

9 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

9 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.

9 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

9 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

9 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

9 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

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

9 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

9 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

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

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

9 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

9 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.

9 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

9 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)

9 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

9 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)

9 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)

9 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

9 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)

9 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)

9 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.

9 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.

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

9 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

9 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

9 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)

9 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.

9 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

9 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

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

9 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>
9 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).

9 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.

9 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.

9 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)

9 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

9 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

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

9 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)

9 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).

9 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)

9 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

9 years agoDo not have .pc in dgit's git history for format `3.0 (quilt)'
Ian Jackson [Mon, 27 Oct 2014 17:51:35 +0000 (17:51 +0000)]
Do not have .pc in dgit's git history for format `3.0 (quilt)'
packages.

 * When constructing a git tree from a .dsc (which we do by unpacking
   it in a temporary directory), drop any .pc directory.

 * Rewrite the quilt fixup preparation: we now fake up a .dsc so that
   we can regenerate the .pc, which is needed by dpkg-source.

 * If after we have committed any quilt fixup, there is a .pc
   directory, make a commit removing it.

 * We now construct new quilt patches in a temporary directory, so
   there is no problem about ignored files or --ignore-dirty.  Remove
   the mention of this limitation from the manpage.

 * Be less critical of `3.0 (quilt)' and improve the documentation
   relating to the interaction between dpkg-source and dgit.  Mention
   git-dpm.

 * When `committing quilty patches', do not re-add a deleted .pc
   directory (while still permitting updates to an existing .pc -
   although the .pc will then disappear in the next commit).

 * In the test suite, disregard differences found in .pc.

 * cmd_quilt_fixup sets $package for the benefit of
   build_maybe_quilt_fixup

9 years agoBreak out srcfn (nfc)
Ian Jackson [Thu, 30 Oct 2014 00:14:46 +0000 (00:14 +0000)]
Break out srcfn (nfc)

9 years agoBreak out get_source_format (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:46:11 +0000 (17:46 +0000)]
Break out get_source_format (nfc)

9 years agoBreak out commit_admin (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:44:42 +0000 (17:44 +0000)]
Break out commit_admin (nfc)

9 years agoMake mk_orig_file have capability to be selective on source package and version
Ian Jackson [Mon, 27 Oct 2014 17:43:58 +0000 (17:43 +0000)]
Make mk_orig_file have capability to be selective on source package and version

9 years agoBreak out mktree_in_ud_here (nfc)
Ian Jackson [Mon, 27 Oct 2014 17:43:37 +0000 (17:43 +0000)]
Break out mktree_in_ud_here (nfc)

9 years agoReplace many calls to stat with new wrapper stat_exists; improves error handling...
Ian Jackson [Mon, 27 Oct 2014 16:53:04 +0000 (16:53 +0000)]
Replace many calls to stat with new wrapper stat_exists; improves error handling and simplifies the code.

9 years agofinalise 0.22.1 debian/0.22.1
Ian Jackson [Tue, 4 Nov 2014 12:46:47 +0000 (12:46 +0000)]
finalise 0.22.1

9 years agoUse Dpkg::Version::version_compare everywhere, not Dpkg::Version::version_compare_str...
Ian Jackson [Tue, 4 Nov 2014 12:39:30 +0000 (12:39 +0000)]
Use Dpkg::Version::version_compare everywhere, not Dpkg::Version::version_compare_string.  The latter is entirely wrong, meaning that dgit would get many version comparisons wrong. Closes:#768038.

9 years agoRemove leftover debugging print debian/0.22
Ian Jackson [Tue, 19 Aug 2014 10:24:16 +0000 (11:24 +0100)]
Remove leftover debugging print

9 years agoship dgit-repos-server
Ian Jackson [Wed, 13 Aug 2014 17:06:27 +0000 (18:06 +0100)]
ship dgit-repos-server

9 years agodebian/changelog: finalise for 0.22
Ian Jackson [Wed, 13 Aug 2014 16:57:51 +0000 (17:57 +0100)]
debian/changelog: finalise for 0.22