can't prepare new upstream releases using gbp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I'm trying to prepare a new upstream release of juju-core (for 2.0.2) for zesty.
I've asked for the juju-core package to be imported, and checked out ubuntu/zesty-devel.
When preparing the new upstream release, I use the following commands:
# get an upstream branch to pacify gbp:
$ git checkout -b upstream upstream/2.0.0
# get back to ubuntu/zesty-devel:
$ git checkout ubuntu/zesty-devel
# import-orig a new tarball:
$ gbp import-orig -v --debian-
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-
gbp:debug: ['git', 'for-each-ref', '--format=
gbp:debug: ['git', 'show-ref', 'refs/heads/
gbp:debug: ['git', 'status', '--porcelain']
What is the upstream version? [2.0.2]
gbp:debug: ['git', 'tag', '-l', 'upstream/2.0.2']
gbp:debug: tar ['-C', '../tmp2W2NR3', '-a', '-xf', '/home/
gbp:debug: Unpacked '/home/
gbp:info: Importing '/home/
gbp:info: Source package is juju-core
gbp:info: Upstream version is 2.0.2
gbp:debug: ['git', 'show-ref', 'refs/heads/
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'upstream']
gbp:debug: ['git', 'add', '-f', '.']
gbp:debug: ['git', 'write-tree']
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'upstream']
gbp:debug: ['git', 'commit-tree', 'cdfb95317917fe
gbp:debug: ['git', 'update-ref', 'refs/heads/
gbp:debug: ['git', 'tag', '-m', 'Upstream version 2.0.2', 'upstream/2.0.2', '81663f7fa55b31
gbp:debug: ['git', 'show-ref', 'refs/heads/
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'ubuntu/
gbp:info: Merging to 'ubuntu/
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/
gbp:debug: ['git', 'help', 'merge', '-m']
gbp:debug: ['git', 'merge', '--no-summary', '--no-edit', 'upstream/2.0.2']
gbp:error: Automatic merge failed.
gbp:error: Error detected, Will roll back changes.
gbp:info: Rolling back branch upstream by resetting it to 1cce8507d9d5c50
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure rollback of upstream', 'refs/heads/
gbp:info: Rolling back tag upstream/2.0.2 by deleting it
gbp:debug: ['git', 'tag', '-l', 'upstream/2.0.2']
gbp:debug: ['git', 'tag', '-d', 'upstream/2.0.2']
gbp:info: Rolling back branch ubuntu/zesty-devel by resetting it to 72697568810d233
gbp:debug: ['git', 'update-ref', '-m', 'gbp import-orig: failure rollback of ubuntu/
gbp:info: Rolling back failed merge of upstream/2.0.2
gbp:debug: ['git', 'merge', '--abort']
gbp:error: Automatic rollback failed [('upstream/2.0.2', 'commit', 'abortmerge', None, GitRepositoryEr
gbp:error: Clean up manually and please report a bug: [('upstream/2.0.2', 'commit', 'abortmerge', None, GitRepositoryEr
gbp:debug: rm ['-rf', '../tmp2W2NR3'] []
This fails because there is apparently no ancestry between the ubuntu/zesty-devel and upstream branches. This can be verified:
$ gbp import-orig -v --debian-
[...]
gbp:info: Successfully imported version 2.0.2 of /home/mtrudel/
But trying to reproduce the next step (merging upstream into the ubuntu branch) will fail:
$ git merge --no-summary --no-edit upstream/2.0.2
fatal: refusing to merge unrelated histories
I can't move any farther than that point. I do not know what the ancestry should be exactly, but this may be alleviated by keeping the 'upstream' branch, which I needed to recreate (but I'm not sure it will work better then).
Changed in usd-importer: | |
importance: | Undecided → Medium |
We agree that this is not possible today, but we're not sure how this fits in to our workflow plans.