chiark / gitweb /
dgit.git
4 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

4 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

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

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

push-confirm

4 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

4 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

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

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

4 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

4 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

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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

4 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

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

More code.

4 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

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

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

4 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

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

4 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

4 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

4 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

4 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

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

4 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

4 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

5 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

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

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

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

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

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

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

5 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

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

5 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

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

5 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

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

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

5 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

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

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

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

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

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

5 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

5 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

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

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

5 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

5 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

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

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

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

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

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

5 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

5 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

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

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

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

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

5 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

5 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

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

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

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

5 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

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

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

5 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

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

5 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

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

5 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

5 years agoAdd a test for dgit rpush.
Ian Jackson [Sun, 10 Aug 2014 20:31:56 +0000 (21:31 +0100)]
Add a test for dgit rpush.

5 years agoCheck for rpush protocol version incompatibility and crash early if incompatible.
Ian Jackson [Sun, 10 Aug 2014 20:26:39 +0000 (21:26 +0100)]
Check for rpush protocol version incompatibility and crash early if incompatible.

5 years agoWhen tests invoke dgit, use --dgit= so that subprocesses use our dgit rather than...
Ian Jackson [Sun, 10 Aug 2014 19:44:17 +0000 (20:44 +0100)]
When tests invoke dgit, use --dgit= so that subprocesses use our dgit rather than system one.

5 years agoFixed a manpage typo.
Ian Jackson [Sun, 10 Aug 2014 19:43:33 +0000 (20:43 +0100)]
Fixed a manpage typo.

5 years agoWhen killing build subprocess during failure of rpush, try reaping it (so we can...
Ian Jackson [Sun, 10 Aug 2014 19:42:58 +0000 (20:42 +0100)]
When killing build subprocess during failure of rpush, try reaping it (so we can report it) before killing it.

5 years agoIn rpush, on protocol error talking to build host, check if the subprocess died and...
Ian Jackson [Sun, 10 Aug 2014 19:42:03 +0000 (20:42 +0100)]
In rpush, on protocol error talking to build host, check if the subprocess died and report differently if so.  Closes:#736528.

5 years agoBetter reporting of child exit statuses (esp. deaths due to signals).
Ian Jackson [Sun, 10 Aug 2014 19:38:41 +0000 (20:38 +0100)]
Better reporting of child exit statuses (esp. deaths due to signals).

5 years agoTwo more bug references for changelog
Ian Jackson [Mon, 4 Aug 2014 01:27:49 +0000 (02:27 +0100)]
Two more bug references for changelog

5 years agoFix "tests: drs-push-rejects: test unknown suite"
Ian Jackson [Mon, 4 Aug 2014 01:12:05 +0000 (02:12 +0100)]
Fix "tests: drs-push-rejects: test unknown suite"

We have to reset $tmp/suites or the remaining elements of this test
script will fail.

5 years agoImprove error message for .dsc parsing failures more generally.
Ian Jackson [Mon, 4 Aug 2014 01:05:10 +0000 (02:05 +0100)]
Improve error message for .dsc parsing failures more generally.

5 years agoImprove error message for .dsc having already been signed (iff using libdpkg-perl...
Ian Jackson [Mon, 4 Aug 2014 01:04:44 +0000 (02:04 +0100)]
Improve error message for .dsc having already been signed (iff using libdpkg-perl 1.17.x)

5 years agoWhen cloning, set up a remote `vcs-git' from the package's Vcs-Git (and put an approp...
Ian Jackson [Mon, 4 Aug 2014 00:31:23 +0000 (01:31 +0100)]
When cloning, set up a remote `vcs-git' from the package's Vcs-Git (and put an appropriate caveat in the manpage).  Closes:#740687.

5 years agoClose request for --dget:-u as we no longer use dget at all.
Ian Jackson [Mon, 4 Aug 2014 00:15:42 +0000 (01:15 +0100)]
Close request for --dget:-u as we no longer use dget at all.

5 years agoProvide `dgit clean'. Closes:#736527.
Ian Jackson [Mon, 4 Aug 2014 00:14:26 +0000 (01:14 +0100)]
Provide `dgit clean'.  Closes:#736527.

5 years agoPrint better message for unknown operations.
Ian Jackson [Mon, 4 Aug 2014 00:03:57 +0000 (01:03 +0100)]
Print better message for unknown operations.

5 years agoProvide t-archive-process-incoming and t-archive-query subroutines for regression...
Ian Jackson [Sun, 3 Aug 2014 23:50:45 +0000 (00:50 +0100)]
Provide t-archive-process-incoming and t-archive-query subroutines for regression test scripts to use.