There are several steps that need to be done when rebasing a package. The goal of rebase-helper is to automate most of these steps.
rebase-helper is packaged in Fedora, so you can just install it with dnf.
If you wish to use the latest codebase, consult installation instructions.
After installation, execute rebase-helper from a directory containing SPEC file, sources and patches (usually cloned dist-git repository).
Without any arguments or configuration rebase-helper will attempt to determine the latest upstream version automatically. If that fails, or if you wish to rebase to some different version, you can specify it explicitly as an argument:
$ rebase-helper 3.1.10
or you can pass source tarball filename instead:
$ rebase-helper foo-4.2.tar.gz
For complete CLI reference see usage.
Alternatively, you can run rebase-helper in a container:
$ docker run -it -e PACKAGE=foo rebasehelper/rebase-helper:latest
See docker reference for more information.
rebase-helper always creates rebase-helper-results directory containing the following items:
| Path | Description |
|---|---|
| report.txt | summary report with all important information |
| changes.patch | diff against original files, directly applicable to dist-git repo |
| logs/ | log files of various verbosity levels |
| rebased-sources/ | git repository with all modified files |
| checkers/ | reports from individual checkers that were run |
| old-build/ | logs and results of old (original) version build |
| new-build/ | logs and results of new (rebased) version build |
The following steps describe a rebase process:
Preparation
Getting sources
Downstream patches
git-rebase is used to rebase the commits on top of new sourcesBuild
Comparison
Cleanup
At DevConf.cz 2016, Tomáš Hozza, Petr Hráček presented on rebase-helper.
Content type
Image
Digest
Size
336.8 MB
Last updated
about 7 years ago
docker pull rebasehelper/webhooks