| Commit message (Collapse) | Author | Age |
... | |
|
|
|
| |
reset from printing a confusing message about HEAD.
|
|
|
|
|
|
| |
Otherwise the cache entry's .dsc contains the hash of a fake
debian.tar.gz which has had a timestamp put in it by gzip, defeating
the cache.
|
| |
|
|
|
|
| |
Not documented yet.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Everywhere we invoke dpkg-buildpackage, check if we need to apply the
patches. And at the end of every command that might have done this,
check if we did, and unapply them if so.
We don't try to unapply patches in case of error. That seems likely
to be quite fragile.
Print a warning when we apply patches, suggesting ways to avoid the
need.
|
| |
|
|
|
|
|
| |
We use runcmd shell_cmd for gbp pq import, and the other commands not
produce undesirable output.
|
| |
|
|
|
|
|
| |
The patch queue branch is not really very useful. Certainly, the
build tests will require the patch queue branch.
|
|
|
|
| |
This can make a radical difference!
|
|
|
|
|
|
|
| |
Do the quiltify_splitbrain_needed if there _are_ patches, not if there
aren't. And if we're told it was an unapplied tree, check that HEAD
and orig are indeed the same (excluding debian/*, of course) and print
a useful message if not.
|
|
|
|
|
|
|
| |
This updates "Test suite: When sbuild fails, do not crash", to arrange
that in this situation we do leave a message in the $bmlog, where it
will be reported (eg) by diff. This makes debugging less confusing in
cases where the log is indeed missing.
|
|
|
|
|
| |
This function is useful for setting up a test case --quilt=gbp working
tree and corresponding archive contents, ready for substantive tests.
|
|
|
|
| |
This will allow other tests to check dgit sbuild.
|
|
|
|
|
| |
Teach bm-guess-e-source-e-targets about sbuild, so this knowledge can
be reused.
|
|
|
|
|
| |
Teach bm-guess-e-source-e-targets about dgit build-source, so this
knowledge can be reused.
|
|
|
|
|
| |
We are going to want to run some build modes tests on other exciting
trees.
|
|
|
|
|
|
|
| |
This working tree has some patch queues etc. in it, which will be
useful for testing --quilt=gbp.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
|
| |
|
|
|
|
|
| |
Utility script for invoking gbp pq. I think I will want to swallow
this into a t-* function in tests/lib.
|
| |
|
| |
|
|
|
|
|
| |
And, after the source build is done, copy the resulting files out into
the invocation directory's parent, where people expect to find them.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Move the fast forward die to where we will need to make the
synthetic commit, so that the tree equality check is done on the
thing we will actually push.
* Crash if we are trying to do split brain without split build.
(This should never happen.)
* Set split build if we need split brain.
|
|
|
|
|
| |
This variable name was very confusing. Also, add a comment explaining
the semantics.
|
| |
|
| |
|
| |
|
|
|
|
| |
And explain why in a comment.
|
|
|
|
| |
This code does not work properly yet; it will be fixed soon.
|
| |
|
|
|
|
|
|
|
|
|
| |
Close our FH onto the file, and run git diff to fill it with the
actual diff. Add the file to series. Use git add and git commit to
commit the patch to the private git branch.
Now most of the code to generate the .gitignore properly is present, I
think, but not debugged.
|
|
|
|
|
| |
When we need to make the .gitignore patch, there may not yet be any
debian/patches directory.
|
|
|
|
| |
So far we still don't generate the patch.
|
|
|
|
| |
It is going to need this extra info in a moment.
|
|
|
|
|
| |
We are going to need this information to construct the substantive
diff for the .gitignores patch.
|
| |
|
| |
|
|
|
|
| |
Generate a patch header, for now. Still not finished.
|
|
|
|
|
| |
We want this to apply to any commits we use git to make, not just
gbp-pq.
|
|
|
|
|
|
| |
* Direct gbp-pq's stdout to /dev/null
* Specify GIT_COMMITER_* so that the results are reproducible
* Detect .gitignore problem
|
|
|
|
| |
We are going to want this in a moment.
|
|
|
|
|
|
|
|
| |
We are going to want this (so that we can set GIT_... variables to the
pieces to make git construct commits the way we want).
Both current call sites provide scalar context, so no functional
change.
|
|
|
|
|
|
| |
This will make it a bit easier to reuse it. Actually AFAICT it turns
out (looking at the rest of the branch) that this is not needed, but
it's nicer for the future I think.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`Split brain' means the situation where `dgit push' makes private
commits, to push to the dgit repos server, which are not left on the
user's actual branch.
Check whether the quilt mode and tree differences, taken together,
mean that we need split brain.
If we do need split brain, use gbp pq to apply the patch series.
.gitignore changes are mishandled, still. And we don't actually
follow through much yet.
Also, fix a case where quilt mode `apply' hadn't been changed to
`unapplied'.
|
|
|
|
|
|
|
| |
Replace ${user,{,un}applied}2${,un}applied with $diffbits->{[HOA]2[HOA]}
This encapsulates the info it nicely and makes it easy to pass
it to quiltify_splitbrain, which is going to need it.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Replace quilt_could_gbp with new calculation based on three calls to
quiltify_trees_differ.
* Reworked messages about quilt differences.
* Start to provide the `gbp', `apply' and `dpm' quilt modes.
Currently we crash with a die if any of these are used.
Nevertheless, we allow `gbp' and `apply' to be specified.
|