summaryrefslogtreecommitdiff
path: root/dgit
Commit message (Collapse)AuthorAge
* gitattributes: Docs and message wordsmithingIan Jackson2017-01-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* gitattributes: Issue a warning on un-defused .gitattributesIan 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>
* 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>
* 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>
* 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>
* dgit: Remove a leftover debugging print.Ian Jackson2017-01-13
| | | | 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>
* 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: 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: 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>
* dgit: After downloading .debian.* files, save them in `..', tooIan Jackson2017-01-10
| | | | | | | Ie do this not just for .origs. We don't want the user needlessly re-downloading them on each fetch. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: import-dsc: Add missing call to notpushing().Ian Jackson2017-01-10
| | | | | | Avoids crashing with undefined $isuite. Closes:#850781. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Do not nedlessly re-fetch the rewrite map.Ian Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: rpush: Use $isuite for $isuite, not $csuiteIan Jackson2017-01-09
| | | | | | | | | | Send isuite as a parameter, and use it if it's provided, instead of csuite. This means config lookups like dgit-distro.SUITE.distro only need the user-provided suite name (eg `unstable'), and don't need to be duplicated for the canonical name (eg `sid'). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: $isuite handling: Defer calls to access_* until first `want'Ian Jackson2017-01-09
| | | | | | | | | | | pushing, rpush_handle_protovsn_bothends, and quiltmode, all depend on access_*. For that we need $isuite, but we only get that (in the form of $csuite) from the build host. We can move all of these calls into i_resp_want, which is called the first time the build host actually wants something from us. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: $isuite fixes: defer pushing and rpush_handle_protovsn_bothends in rpushIan Jackson2017-01-09
| | | | | | | | | | | | | We mustn't call pushing until we have parsed the arguments enough to find $isuite. So remove the call to pushing from cmd_remote_push_build_host. Now we rely on cmd_push's call to pushing, which it does after the argument parsing. We then need to move rpush_handle_protovsn_bothends (which implicitly calls accesss_*) too, until we have got $isuite and called pushing(). We can move that into dopush. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: rpush: suppress changelog tag format checkIan Jackson2017-01-09
| | | | | | | | | | | The changelog might be received (and therefore parsed) before we have been told the suite. So we can't check the tag format because we cannot know the distro yet. Simply suppress this early check. If the tag format is wrong, we will discover this later. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Option parsing: Move pushing call in pushIan Jackson2017-01-09
| | | | | | Otherwise $isuite might not be set when we call access_something. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: rpush: Provide $we_are_initiatorIan Jackson2017-01-09
| | | | | | No functional change yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: When generating orig+debian/patches view, copy debian/ from HEAD.Ian Jackson2017-01-09
| | | | | | This makes less noise in diffs. Closes:#850095. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* fetch and pull ignore the changelog suite when it is UNRELEASED.Ian Jackson2017-01-09
| | | | | | Closes:#848646. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Honour dgit-distro.*.default-suite and dgit.default.default-suite.Ian Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Provide `dgit print-dgit-repos-server-source-url'.Ian Jackson2017-01-09
| | | | | | Re:#850521. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: clone-dgit-repos-server: Set $access_forpushIan Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git fetching: git_lrfetch_sane: Tidy up old suite-based refsIan Jackson2017-01-09
| | | | | | | | | We should look for these and delete them, when we have the chance, because otherwise nothing ever would. For now we just use $csuite if we have it, and otherwise do nothing. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Dgit parsing: tolerate newlines etc. not just one spaceIan Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Dgit parsing: honour dgit.default.old-dsc-distroIan Jackson2017-01-09
|
* dsc import: Do not look anything up in default distroIan Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Dgit handling: Honour --no-chase-dsc-distroIan Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: config handling: better debuggingIan Jackson2017-01-09
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: conflg handling: Undocumented --config-lookup-explode= feature.Ian Jackson2017-01-09
| | | | | | For testing. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Support distro aliasesIan Jackson2017-01-09
| | | | | | | We are going to use this to spot when we accidentally look up "debian" information in the test suite. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dsc import: Call resolve_dsc_field_commitIan Jackson2017-01-09
| | | | | | No functional change Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dsc import: Reorganise to make room for resolve_dsc_field_commitIan Jackson2017-01-08
| | | | | | No functional change Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dsc import: Assign $package earlierIan Jackson2017-01-08
| | | | | | No functional change Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>