chiark / gitweb /
dgit.git
7 years agodgit: Before committing to push, check that .dsc and .changes correspond.
Ian Jackson [Sun, 9 Oct 2016 12:56:57 +0000 (13:56 +0100)]
dgit: Before committing to push, check that .dsc and .changes correspond.

Closes:#800060.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: Break out @files_csum_info_fields (nfc)
Ian Jackson [Sun, 9 Oct 2016 12:56:00 +0000 (13:56 +0100)]
dgit: Break out @files_csum_info_fields (nfc)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agochangelog: Mention #800060
Ian Jackson [Sun, 9 Oct 2016 12:55:42 +0000 (13:55 +0100)]
changelog: Mention #800060

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit.1: Clarify the --clean= options' documentation. Closes:#800054.
Ian Jackson [Sun, 9 Oct 2016 11:54:24 +0000 (12:54 +0100)]
dgit.1: Clarify the --clean= options' documentation.  Closes:#800054.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Test that we pass correct -v to genchanges
Ian Jackson [Sun, 9 Oct 2016 11:40:03 +0000 (12:40 +0100)]
Test suite: Test that we pass correct -v to genchanges

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: stunt Parse.pm: add comment about %options
Ian Jackson [Sun, 9 Oct 2016 11:37:34 +0000 (12:37 +0100)]
Test suite: stunt Parse.pm: add comment about %options

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoArrange for the special dgit remote to be skipped by git fetch --all etc.
Ian Jackson [Sun, 9 Oct 2016 11:11:38 +0000 (12:11 +0100)]
Arrange for the special dgit remote to be skipped by git fetch --all etc.

Closes:#827892.

Not quite the patch from Sean: we want to do this on every fetch, and
we don't overwrite the user's configuration if for some reason they
have set this (hopefully they haven't...)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoDon't break if user has push.followTags=true. Closes:#827878.
Ian Jackson [Sun, 9 Oct 2016 10:56:36 +0000 (11:56 +0100)]
Don't break if user has push.followTags=true.  Closes:#827878.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agochangelog: Fix location of a bugfix entry
Ian Jackson [Sun, 9 Oct 2016 10:54:43 +0000 (11:54 +0100)]
changelog: Fix location of a bugfix entry

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoUpdate changelog for fetch spec
Ian Jackson [Sun, 9 Oct 2016 00:39:35 +0000 (01:39 +0100)]
Update changelog for fetch spec

7 years agoUpdate changelog for in-archive copies
Ian Jackson [Sun, 9 Oct 2016 00:38:39 +0000 (01:38 +0100)]
Update changelog for in-archive copies

7 years agoUpdate changelog for --quilt= split brain
Ian Jackson [Sun, 9 Oct 2016 00:38:12 +0000 (01:38 +0100)]
Update changelog for --quilt= split brain

7 years agoUpdate changelog for tag format
Ian Jackson [Sun, 9 Oct 2016 00:37:13 +0000 (01:37 +0100)]
Update changelog for tag format

7 years agoMake --quilt=gbp the default for dgit gbp-build.
Ian Jackson [Sun, 9 Oct 2016 00:36:12 +0000 (01:36 +0100)]
Make --quilt=gbp the default for dgit gbp-build.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit.1: Document --quilt=gbp et al.
Ian Jackson [Sun, 9 Oct 2016 00:33:31 +0000 (01:33 +0100)]
dgit.1: Document --quilt=gbp et al.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Quilt output improved now
Ian Jackson [Sun, 9 Oct 2016 00:14:58 +0000 (01:14 +0100)]
TODO.BRANCH: Quilt output improved now

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: quilt: Test that our patch makes it through dgit and gbp pq
Ian Jackson [Sun, 9 Oct 2016 00:13:41 +0000 (01:13 +0100)]
Test suite: quilt: Test that our patch makes it through dgit and gbp pq

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: quilt: Provide Gbp-pq headers in our new patch test case
Ian Jackson [Sun, 9 Oct 2016 00:13:12 +0000 (01:13 +0100)]
Test suite: quilt: Provide Gbp-pq headers in our new patch test case

And expect dgit to honour them

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoQuilt output: Honour and strip Gbp-pq headers
Ian Jackson [Sun, 9 Oct 2016 00:12:37 +0000 (01:12 +0100)]
Quilt output: Honour and strip Gbp-pq headers

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoQuilt admin commits: Provide [dgit ...] in all of them
Ian Jackson [Sun, 9 Oct 2016 00:10:26 +0000 (01:10 +0100)]
Quilt admin commits: Provide [dgit ...] in all of them

With the version number, in general.  (These are used during
quiltification of the user's branch, not during import, so they don't
need to be stable.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoQuilt output: Normalise trailing newlines in commit message
Ian Jackson [Sun, 9 Oct 2016 00:08:26 +0000 (01:08 +0100)]
Quilt output: Normalise trailing newlines in commit message

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoQuilt output: Include Date header
Ian Jackson [Sun, 9 Oct 2016 00:07:59 +0000 (01:07 +0100)]
Quilt output: Include Date header

Copy this from the commit's author date.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoQuilt output: Produce output like git-format-patch
Ian Jackson [Sun, 9 Oct 2016 00:06:32 +0000 (01:06 +0100)]
Quilt output: Produce output like git-format-patch

Do not .-convert the message and stuff it in Description.

Instead, generate a normal-looking patch with From and Subject.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoREADME.dsc-import: Ship to /usr/share/doc
Ian Jackson [Sat, 8 Oct 2016 22:09:49 +0000 (23:09 +0100)]
README.dsc-import: Ship to /usr/share/doc

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoREADME.dsc-import: Document actually-imported approach
Ian Jackson [Sat, 8 Oct 2016 22:09:21 +0000 (23:09 +0100)]
README.dsc-import: Document actually-imported approach

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years ago.gitignore: Add debhelper-build-stamp
Ian Jackson [Sat, 8 Oct 2016 22:07:10 +0000 (23:07 +0100)]
.gitignore: Add debhelper-build-stamp

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNOTES: Remove obsolete file
Ian Jackson [Sat, 8 Oct 2016 22:02:05 +0000 (23:02 +0100)]
NOTES: Remove obsolete file

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agogbp options: done from TODO.BRANCH
Ian Jackson [Sat, 8 Oct 2016 21:31:23 +0000 (22:31 +0100)]
gbp options: done from TODO.BRANCH

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agogbp options: Document
Ian Jackson [Sat, 8 Oct 2016 21:30:39 +0000 (22:30 +0100)]
gbp options: Document

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoManpage: Embolden some command option strings
Ian Jackson [Sat, 8 Oct 2016 21:30:27 +0000 (22:30 +0100)]
Manpage: Embolden some command option strings

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agogbp options: Honour --gbp-pq instead of --gbp
Ian Jackson [Sat, 8 Oct 2016 21:29:41 +0000 (22:29 +0100)]
gbp options: Honour --gbp-pq instead of --gbp

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agogbp options: Provide --gbp-build
Ian Jackson [Sat, 8 Oct 2016 21:28:33 +0000 (22:28 +0100)]
gbp options: Provide --gbp-build

And, provide the sub opts_opt_multi_cmd to help with options of this
kind.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agogbp options: Introduce gbp_pq function (nfc)
Ian Jackson [Sat, 8 Oct 2016 21:19:30 +0000 (22:19 +0100)]
gbp options: Introduce gbp_pq function (nfc)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Tidy up output from gbp pq
Ian Jackson [Sat, 8 Oct 2016 21:01:12 +0000 (22:01 +0100)]
New import: Tidy up output from gbp pq

gbp pq import can print some warnings if it doesn't like the patches
much.  There is no point showing these warnings to the user of `dgit
clone' or `dgit fetch'.

As for the warnings in split brain mode, we will leave those, and
leave them with colour enabled.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: import-nonnative: Enhanced and finished
Ian Jackson [Sat, 8 Oct 2016 19:21:35 +0000 (20:21 +0100)]
Test suite: import-nonnative: Enhanced and finished

Use t-git-next-date.  (Our GIT_AUTHOR_DATE settings were wrong and
therefore ineffective.)

Add a 1.0 with diff test.  Add some comments about package format.

Now the test is finished.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Set GIT_COMMITTER_* and GIT_AUTHOR_*
Ian Jackson [Sat, 8 Oct 2016 20:53:35 +0000 (21:53 +0100)]
New import: Set GIT_COMMITTER_* and GIT_AUTHOR_*

gbp pq import generates commits which are affected by these (COMMITTER
always and AUTHOR sometimes).  But we need imports to be stable.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain: Set GIT_AUTHOR_* too
Ian Jackson [Sat, 8 Oct 2016 20:52:42 +0000 (21:52 +0100)]
Split brain: Set GIT_AUTHOR_* too

Sometimes the patches don't have authorship information, in which case
using the caller's is wrong.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain: .gitignore patch: Slightly better commit message
Ian Jackson [Sat, 8 Oct 2016 20:39:29 +0000 (21:39 +0100)]
Split brain: .gitignore patch: Slightly better commit message

Don't sort-of-imply that the dgit version is the package version.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Add dependency on git-buildpackage
Ian Jackson [Sat, 8 Oct 2016 20:56:38 +0000 (21:56 +0100)]
New import: Add dependency on git-buildpackage

Now we may run gbp pq import even if user is not using gbp.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: import-native: New test
Ian Jackson [Sat, 8 Oct 2016 19:20:45 +0000 (20:20 +0100)]
Test suite: import-native: New test

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Make t-archive-none idempotent
Ian Jackson [Sat, 8 Oct 2016 19:19:51 +0000 (20:19 +0100)]
Test suite: Make t-archive-none idempotent

No overall functional change just yet, but it means we can wipe our
test archives.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Fix two test cases (git-foo => git foo)
Ian Jackson [Sat, 8 Oct 2016 19:19:11 +0000 (20:19 +0100)]
Test suite: Fix two test cases (git-foo => git foo)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: New fetch algorithm: Fix a message
Ian Jackson [Sat, 8 Oct 2016 18:19:13 +0000 (19:19 +0100)]
dgit: New fetch algorithm: Fix a message

This should have been debug output all along.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Get rid of some pointless output
Ian Jackson [Sat, 8 Oct 2016 18:18:31 +0000 (19:18 +0100)]
New import: Get rid of some pointless output

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Import: Add a lot of debugging
Ian Jackson [Sat, 8 Oct 2016 18:14:29 +0000 (19:14 +0100)]
New import: Import: Add a lot of debugging

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: import-quilt: Initial version of new test case
Ian Jackson [Sat, 8 Oct 2016 17:58:04 +0000 (18:58 +0100)]
Test suite: import-quilt: Initial version of new test case

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoImport: orig files: cope with signatures
Ian Jackson [Sat, 8 Oct 2016 16:47:33 +0000 (17:47 +0100)]
Import: orig files: cope with signatures

Fix up .orig detection to handle .asc's (and other signatures) of
.orig components the same way as their tarballs.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoImport: orig files: Fix .orig-comp pattern match
Ian Jackson [Sat, 8 Oct 2016 16:43:51 +0000 (17:43 +0100)]
Import: orig files: Fix .orig-comp pattern match

Fix up .orig detection to correctly allow exactly the right .orig-comp
components accorging to dpkg-source(1).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Consequences of new import
Ian Jackson [Sat, 8 Oct 2016 16:38:18 +0000 (17:38 +0100)]
TODO.BRANCH: Consequences of new import

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Entirely new import algorithm
Ian Jackson [Sun, 2 Oct 2016 19:55:57 +0000 (20:55 +0100)]
New import: Entirely new import algorithm

See README.dsc-import (which needs some updating).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: make_commit_text: Some more debug
Ian Jackson [Sat, 8 Oct 2016 16:39:04 +0000 (17:39 +0100)]
New import: make_commit_text: Some more debug

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Introduce make_commit_text (nfc)
Ian Jackson [Sat, 8 Oct 2016 14:30:50 +0000 (15:30 +0100)]
New import: Introduce make_commit_text (nfc)

No callers yet.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: stunt parsechangelog: fallback
Ian Jackson [Sat, 8 Oct 2016 15:48:29 +0000 (16:48 +0100)]
Test suite: stunt parsechangelog: fallback

Fall back to system implementation if command line options are
requested that we don't understand.  This is a bit fiddly - we need to
strip the stunt entry out of PATH and also out of PERLLIB.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Print synthesised git commit message a bit earlier
Ian Jackson [Sat, 8 Oct 2016 14:32:09 +0000 (15:32 +0100)]
New import: Print synthesised git commit message a bit earlier

No significant functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoFix up .orig detection to be less trustful of (ambiguous) filenames.
Ian Jackson [Sat, 8 Oct 2016 12:19:54 +0000 (13:19 +0100)]
Fix up .orig detection to be less trustful of (ambiguous) filenames.

We cannot simply match the filenaem because `foo_1.0.orig.tar.gz'
might be the `.orig.tar.gz' of foo version 1.0, or the `.tar.gz' of
foo version 1.0.orig.

We need either to consider the whole .dsc (this works since the
formats with no `.orig' or `.debian' or whatever are precisely ones
where there is only one file anyway), or know the version number.

Replace is_orig_file with two functions, one for each situation.

While we're here, do not barf if we find uncompressed tarballs.  (We
don't expect to find any but it would be nice if they worked...)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: a todo item
Ian Jackson [Sun, 2 Oct 2016 19:53:52 +0000 (20:53 +0100)]
TODO.BRANCH: a todo item

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: Slightly better message in mktree_in_ud_from_only_subdir
Ian Jackson [Wed, 28 Sep 2016 23:33:43 +0000 (00:33 +0100)]
New import: Slightly better message in mktree_in_ud_from_only_subdir

This is going to be processing .dsc's tarballs directly, so we need
slightly better error reporting.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoNew import: mktree_in_ud_from_only_subdir: New $raw parameter (nfc)
Ian Jackson [Wed, 28 Sep 2016 23:33:03 +0000 (00:33 +0100)]
New import: mktree_in_ud_from_only_subdir: New $raw parameter (nfc)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoFix two calls to chdir without proper error checking.
Ian Jackson [Wed, 28 Sep 2016 22:48:02 +0000 (23:48 +0100)]
Fix two calls to chdir without proper error checking.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoDo not fail to do some important quilt processing in some --quilt modes.
Ian Jackson [Wed, 28 Sep 2016 17:35:00 +0000 (18:35 +0100)]
Do not fail to do some important quilt processing in some --quilt modes.

Make `madformat' mean precisely `is 3.0 (quilt)' and change the two
call sites which wanted to check the quilt mode too.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoImport: Consolidate emails into coherent plan
Ian Jackson [Wed, 28 Sep 2016 17:24:26 +0000 (18:24 +0100)]
Import: Consolidate emails into coherent plan

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoImport: Copy plan from emails
Ian Jackson [Wed, 28 Sep 2016 17:05:53 +0000 (18:05 +0100)]
Import: Copy plan from emails

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: quilt-gbp: Test that we crash if archive doesn't do "maint" tags
Ian Jackson [Mon, 26 Sep 2016 00:35:15 +0000 (01:35 +0100)]
Test suite: quilt-gbp: Test that we crash if archive doesn't do "maint" tags

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain: Check that archive supports "maint", earlier
Ian Jackson [Mon, 26 Sep 2016 00:34:16 +0000 (01:34 +0100)]
Split brain: Check that archive supports "maint", earlier

Otherwise the user will be disappointed shortly.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Make t-newtag specify maint too
Ian Jackson [Mon, 26 Sep 2016 00:33:17 +0000 (01:33 +0100)]
Test suite: Make t-newtag specify maint too

Since actually several tests which use t-newtag are quilty split brain
ones which technically require it, although nothing checks this right
now.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Test --overwrite (without VERSION)
Ian Jackson [Mon, 26 Sep 2016 00:14:22 +0000 (01:14 +0100)]
Test suite: Test --overwrite (without VERSION)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOverwrite: Document --overwrite option (without VERSION)
Ian Jackson [Mon, 26 Sep 2016 00:13:31 +0000 (01:13 +0100)]
Overwrite: Document --overwrite option (without VERSION)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOverwrite: Support --overwrite without a version
Ian Jackson [Mon, 26 Sep 2016 00:07:05 +0000 (01:07 +0100)]
Overwrite: Support --overwrite without a version

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: getfield, parsechangelog: Fix two bugs in error reporting
Ian Jackson [Mon, 26 Sep 2016 00:05:32 +0000 (01:05 +0100)]
dgit: getfield, parsechangelog: Fix two bugs in error reporting

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOverwrite: Refer to $i_arch_v->[0] twice in plain_overwrite_pseudomerge
Ian Jackson [Sun, 25 Sep 2016 23:46:22 +0000 (00:46 +0100)]
Overwrite: Refer to $i_arch_v->[0] twice in plain_overwrite_pseudomerge

We are going to allow $overwrite_version to be "", in which case we
will have to use $i_arch_v->[0] instead.

Right now both are the same because if $overwrite_version is defined
(as it must be in plain_overwrite_pseudomerge),
pseudomerge_version_check will call infopair_cond_equal - so, no
functional change right now.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoPseudomerge: pseudomerge_make_commit: Lift up some message generation
Ian Jackson [Sun, 25 Sep 2016 23:45:01 +0000 (00:45 +0100)]
Pseudomerge: pseudomerge_make_commit: Lift up some message generation

Move the calculation of whether to put "--overwrite=" in the message
into the common code.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOverwrite: Fix messages referring to --overwrite-version
Ian Jackson [Sun, 25 Sep 2016 23:33:49 +0000 (00:33 +0100)]
Overwrite: Fix messages referring to --overwrite-version

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Test --overwrite=VERSION
Ian Jackson [Sun, 25 Sep 2016 20:22:23 +0000 (21:22 +0100)]
Test suite: Test --overwrite=VERSION

7 years agoOverwrite: Document --overwrite=VERSION
Ian Jackson [Sun, 25 Sep 2016 20:21:59 +0000 (21:21 +0100)]
Overwrite: Document --overwrite=VERSION

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOverwrite: Provide --overwrite=VERSION option
Ian Jackson [Sun, 25 Sep 2016 13:48:41 +0000 (14:48 +0100)]
Overwrite: Provide --overwrite=VERSION option

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Check before doing split tag
Ian Jackson [Thu, 22 Sep 2016 12:34:53 +0000 (13:34 +0100)]
TODO.BRANCH: Check before doing split tag

7 years agoDefault config: Switch to new tag format only
Ian Jackson [Thu, 22 Sep 2016 12:29:58 +0000 (13:29 +0100)]
Default config: Switch to new tag format only

There are probably not many users relying on the default config, so
push forward with it for the benefit of new users.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoOvewrite: Honour $overwrite_version in non-split-brain mode
Ian Jackson [Thu, 22 Sep 2016 12:29:10 +0000 (13:29 +0100)]
Ovewrite: Honour $overwrite_version in non-split-brain mode

Currently there is no commnad line option to set this, so there is no
way to exercise this functionality.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoPseudomerge: Break out pseudomerge_version_check and _make_commit
Ian Jackson [Thu, 22 Sep 2016 12:26:46 +0000 (13:26 +0100)]
Pseudomerge: Break out pseudomerge_version_check and _make_commit

We are going to want to reuse these.  It's a bit tangled, but this
seems better than a single pseudomerge_make function with a bunch of
iffery.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain: Better tag format filtering
Ian Jackson [Thu, 22 Sep 2016 11:59:18 +0000 (12:59 +0100)]
Split brain: Better tag format filtering

The code only makes tag formats `old' and `new'.  Make it easier to
add a new tag format config item entry later.

No functional change with existing configurations.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: infopair tag fetch: Support multiple tags
Ian Jackson [Thu, 22 Sep 2016 11:52:16 +0000 (12:52 +0100)]
dgit: infopair tag fetch: Support multiple tags

No functional change with existing callers.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: Break out `infopair' functions
Ian Jackson [Thu, 22 Sep 2016 11:46:23 +0000 (12:46 +0100)]
dgit: Break out `infopair' functions

We are going to want to reuse these in a moment.

No functional change other than to debug output.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain pseudomerge: Test $overwrite_version for definedness
Ian Jackson [Thu, 22 Sep 2016 11:39:01 +0000 (12:39 +0100)]
Split brain pseudomerge: Test $overwrite_version for definedness

Technically, `0' is a valid version number, but it is falsish.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoSplit brain: Only send rpush maint-view param if $maintviewhead
Ian Jackson [Thu, 22 Sep 2016 11:35:32 +0000 (12:35 +0100)]
Split brain: Only send rpush maint-view param if $maintviewhead

Fixes a bug where rpush would always make two tags even for a
non-`3.0 (quilt)' package.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Have quilt-splitbrains test now
Ian Jackson [Thu, 22 Sep 2016 00:28:24 +0000 (01:28 +0100)]
TODO.BRANCH: Have quilt-splitbrains test now

7 years agoTest suite: quilt-splitbrains: Comment
Ian Jackson [Thu, 22 Sep 2016 00:27:22 +0000 (01:27 +0100)]
Test suite: quilt-splitbrains: Comment

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: quilt-splitbrains: Rename
Ian Jackson [Thu, 22 Sep 2016 00:25:26 +0000 (01:25 +0100)]
Test suite: quilt-splitbrains: Rename

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Test --quilt=unapplied and --quilt=dpm
Ian Jackson [Thu, 22 Sep 2016 00:13:05 +0000 (01:13 +0100)]
Test suite: Test --quilt=unapplied and --quilt=dpm

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: t-gbp-pushed-good: Refactor (nfc)
Ian Jackson [Thu, 22 Sep 2016 00:11:36 +0000 (01:11 +0100)]
Test suite: t-gbp-pushed-good: Refactor (nfc)

Provide various t-splitbrain-*.  These will be needed for tests of
--quilt=unapplied and --quilt=dpm.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: Some extra error reports for wrong split brain mode
Ian Jackson [Thu, 22 Sep 2016 00:10:31 +0000 (01:10 +0100)]
dgit: Some extra error reports for wrong split brain mode

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: Allow --quilt=dpm
Ian Jackson [Thu, 22 Sep 2016 00:10:10 +0000 (01:10 +0100)]
dgit: Allow --quilt=dpm

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Add two "echo ok."s
Ian Jackson [Wed, 21 Sep 2016 20:20:56 +0000 (21:20 +0100)]
Test suite: Add two "echo ok."s

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: oldnewtagalt: New test
Ian Jackson [Wed, 21 Sep 2016 20:19:46 +0000 (21:19 +0100)]
Test suite: oldnewtagalt: New test

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Add spelling test
Ian Jackson [Sun, 25 Sep 2016 18:39:48 +0000 (19:39 +0100)]
Test suite: Add spelling test

Fail this test if the tree contains the misspelling of "pseudo".

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoFix spelling of "pseudo"
Ian Jackson [Sun, 25 Sep 2016 18:24:33 +0000 (19:24 +0100)]
Fix spelling of "pseudo"

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agodgit: Turn gc.auto off in our hidden working tree setups
Ian Jackson [Sat, 24 Sep 2016 10:19:42 +0000 (11:19 +0100)]
dgit: Turn gc.auto off in our hidden working tree setups

This avoids potential accidents: git gc --auto might otherwise run and
do very undesirable things to the user's working tree.  (I haven't
been able to trigger such a situation deliberately and none has been
reported, luckily...)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: examplegit: Importers inherit majorv too
Ian Jackson [Wed, 21 Sep 2016 20:17:38 +0000 (21:17 +0100)]
Test suite: examplegit: Importers inherit majorv too

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Add a todo list item
Ian Jackson [Mon, 19 Sep 2016 01:19:28 +0000 (02:19 +0100)]
TODO.BRANCH: Add a todo list item

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTest suite: Add t-tstunt-parsechangelog to a couple of tests
Ian Jackson [Mon, 19 Sep 2016 01:08:44 +0000 (02:08 +0100)]
Test suite: Add t-tstunt-parsechangelog to a couple of tests

inarchivecopy and the quilt-gbp tests just use the `example' package.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
7 years agoTODO.BRANCH: Done drs-quilt-gbp (actually debpolicy-*)
Ian Jackson [Mon, 19 Sep 2016 01:02:38 +0000 (02:02 +0100)]
TODO.BRANCH: Done drs-quilt-gbp (actually debpolicy-*)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>