summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* gitattributes: Issue a warning on un-defused .gitattributesIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gitattributes: Remove .git from origIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gitattributes: test unsetup tree, tooIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gitattributes: Test source format 1.0 with diffIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gitattributes: Reorganise and improve, still wipIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gitattributes: new test, still wipIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* gitattributes: dgit: setup-gitattributes: New actionIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* gitattributes: Suppress transformations in our cloned treesIan Jackson2017-01-16
| | | | | | | The user wants a checkout of the actual source tree, so that their checkout and the source package are identical. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* gitattributes: Suppress transformations in udIan Jackson2017-01-16
| | | | | | | | | | We want all of our own manipulations to be unaffected by gitattributes transformations, so that the imported git *trees* are identical to the source packages. (Ie, if transformations are in effect, the *checkout* of such a tree might not be identical to the source package.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: gitattributes: Provide setup_gitattrs (internal function)Ian Jackson2017-01-16
| | | | | | | This is the idempotent function which adds the appropriate runes to .git/info/attributes. No callers yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* gitattributes: dgit(7): Document our approach and rationaleIan Jackson2017-01-16
| | | | | | This is not properly implemented yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: import_dsc: Break out import_dsc_resultIan Jackson2017-01-16
| | | | | | No functional change other than slight change to messages. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Remove redundant use of List::Util qw(any). Closes:#851280.Ian Jackson2017-01-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: protocol-compat: check that we use the right distroIan Jackson2017-01-13
| | | | | | | | | | | | | | | | * Set distro to '' when running the import. This makes dgit fall back to the default distro. * Set the default distro to `foreign' (which has no settings, so we use builtin defaults). This only has any effect if the shell variable `distro' is set to the empty string - so it only takes effect during the import. * Set dgit-distro.foreign.cmd-git to false. This therefore detects if we ever try to do the import with the default distro's `git' command: we are supposed to be using the one from the .dsc. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Option parsing: Fix undefined $suite in some import-dsc.Ian Jackson2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | * Set $isuite to a dummy value. In import-dsc we aren't operating on a suite. We have to set it to something (because the config likes to look at the suite) and this avoids picking up information relating to the default suite. * Set $idistro (if -d not supplied) to the distro from (or implied by) the .dsc. This is needed so that we do not use any config from the default distro. In particular, the default commands (like what `git' command to use to access the dgit git server) need to be found via the dsc's distro's cmd-git setting, and this is done by parseopts_late_defaults() in pushing(). So we must set $idistro before then. * Move notpushing earlier, so that we call it before we call resolve_dsc_field_commit(). (It doesn't matter there for $idistro, because it sets that itself, but the git command does.) Closes:#851213. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Internal change: fix handling of nonempty distro=Ian Jackson2017-01-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: defdistro-import-dsc: Drop this test.Ian Jackson2017-01-13
| | | | | | | | | | import-dsc *should* access the default distro for cmd-dgit et al. (Many of the things in parseopts_late_defaults.) Checking that we use the right distro config is going to be done shortly by protocol-compat. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Set default dsc import distro when suppressing Dgit field.Ian Jackson2017-01-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Break out parse_dsc_field_def_dsc_distro as global subIan Jackson2017-01-13
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Set default dsc import distro when there is no Dgit field.Ian Jackson2017-01-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: parse_dsc_field: Break out $def_dsc_distroIan Jackson2017-01-13
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: default dsc distro config setting: Move to lib.Ian Jackson2017-01-13
| | | | | | We need this for the .dscs we have in tests/pkg-srcs/. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Remove a leftover debugging print.Ian Jackson2017-01-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Packaging: Remove redundant Recommends on libtext-iconv-perl.Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: start 3.3~Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: finalise 3.2debian/3.2archive/debian/3.2Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: tidy upIan Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Fix a warning message about ref (mainly, tag) updates.Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Fix a typo in a comment.Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-user(7): Fix some more typosIan Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* option parsing: Rework --dep14tag options, introducing `defoptmodes'Ian Jackson2017-01-12
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-user(7): Fix some typos.Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: Mention #850953Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: Document dgit-maint-merge changeIan Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-maint-merge(7): Use git-deborig(1)Sean Whitton2017-01-12
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* test suite: mirror-private: test that package becomes public. (#849789)Ian Jackson2017-01-12
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit-repos-policy-debian: Remirror a package when it becomes publicIan Jackson2017-01-12
| | | | | | | | | Ie, make the repo available much more promptly when the package passes NEW. Closes:#849789. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* infra: mirroring and policy hooks: Provide ((( ))) bannersIan Jackson2017-01-12
| | | | | | | When we invoke these, this makes their output easier to find in the middle of the test suite debug scrool. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Do not execute END blocks in children.Ian Jackson2017-01-12
| | | | | | | | | | | END blocks run inside children created by fork or piped open (the latter, if they run perl code), on exit or (I think maybe) die. This is far from appropriate. So far symptoms of this bug seem to be limited to duplicated error messages but I have not done a thorough analysis. Closes:#850052. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Call forkcheck_setup in multisuite childrenIan Jackson2017-01-12
| | | | | | | We want execute our SIGWARN handler in these explicitly created children. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Dgit: forkcheck_*: break out from setup_sigwarnIan Jackson2017-01-12
| | | | | | Other places are going to want this too, notably END blocks. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: start 3.2~Ian Jackson2017-01-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: finalise 3.1debian/3.1archive/debian/3.1Ian Jackson2017-01-10
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Arrange not to overwrite .save-env on t-chain-testIan Jackson2017-01-10
| | | | | | | | | | | | | We want .save-env to be the env on entry to the original test, not on execution of t-chain-test with a modified environment. Without this the effects of t-defdistro might leak into the execution of tests/setup/examplegit. This is no good because tests/setup/examplegit relies in the -dtest-dummy which is our usual dgit runes. (Or to put it another way, examplegit uses many suites which are not (yet) set up properly by t-defdistro.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: buile_prep_early: Call notpushing() after getting $isuiteIan Jackson2017-01-10
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: dsc download handling: save as ,fetch if need beIan Jackson2017-01-10
| | | | | | | | | | | | | | | | | | | | * Pass \$refetched to complete_file_from_dsc, so that we refetch files whose hashes are wrong. * When saving files we refetched, save them as F,fetch if saving them as F gives EEXIST. So we can save refetched files. * When looking for files to reuse, look for F,fetch first. We do this only here in generate_commits_from_dsc, not in ensure_we_have_orig. This is because, in practice, this all won't be very effective for origs which need to be referred to by various .dscs. The main use case is when the user did a build without changing the version number. This would otherwise break fetch: Closes:#850824. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: complete_file_from_dsc: Introduce $refetchedIan Jackson2017-01-10
| | | | | | | | | Make have a option which, if set, causes hash mismatches to result in a refetch rather than a crash. No functional change because no call sites pass it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: complete_file_from_dsc: Reorganise $fetchhashIan Jackson2017-01-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: complete_file_from_dsc: Introduce $checkhashIan Jackson2017-01-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: generate_commits_from_dsc: Introduce $upper_fIan Jackson2017-01-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>