summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-11-08 23:00:15 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-16 16:47:46 +0100
commit3b69b271b727db4bdb9120c9306ffb361c3bebba (patch)
tree1f0fe9833ae0955dc191e2fbe92885852167e29d
parent1ad50a40447cf930bde69ee6b0a21b6d35c15104 (diff)
Split brain: Document the plan
-rwxr-xr-xdgit12
1 files changed, 12 insertions, 0 deletions
diff --git a/dgit b/dgit
index 4283a27..b5082c9 100755
--- a/dgit
+++ b/dgit
@@ -2882,6 +2882,18 @@ sub quilt_fixup_multipatch ($$$) {
# 5. If we had a .pc in-tree, delete it, and git-commit
# 6. Back in the main tree, fast forward to the new HEAD
+ # Another situation we may have to cope with is gbp-style
+ # patches-unapplied trees. We want to detect these, so we know
+ # to escape into quilt_fixup_gbp.
+ #
+ # A gbp-style tree is one which is not a clean patches-applied
+ # tree, but _is_ a clean patches-unapplied tree.
+ #
+ # To help detect this, when we are extracting the fake dsc, we
+ # first extract it with --skip-patches, and then apply the patches
+ # afterwards with dpkg-source --before-build. That lets us save a
+ # tree object corresponding to .origs.
+
my $fakeversion="$upstreamversion-~~DGITFAKE";
my $fakedsc=new IO::File 'fake.dsc', '>' or die $!;