Skip to main content

This tool helps you rebase your package to the latest version

Project description

Welcome to rebase-helper

Travis CI build status Documentation build status GitLab CI build status PyPI version Project status Code Quality

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.

How to get it running?

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.

How to use it?

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.

What do I get from it?

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

How does it work?

The following steps describe a rebase process:

  • Preparation

    • rebase-helper-workspace and rebase-helper-results directories are created
    • original SPEC file is copied to rebase-helper-results/rebased-sources directory and its Version tag is modified
  • Getting sources

    • old and new source tarballs are downloaded and extracted to rebase-helper-workspace directory
    • old sources are downloaded from lookaside cache if possible
  • Downstream patches

    • new git repository is initialized and the old sources are extracted and commited
    • each downstream patch is applied and changes introduced by it are commited
    • new sources are extracted and added as a remote repository
    • git-rebase is used to rebase the commits on top of new sources
    • original patches are modified/deleted accordingly
    • resulting files are stored in rebase-helper-results/rebased-sources
    • diff against original files is saved to rebase-helper-results/changes.patch
  • Build

    • old and new source RPMs are created and built with selected build tool
    • old SRPM and RPMs can also be downloaded from Koji to speed up the rebase
  • Comparison

    • multiple checker tools are run against both sets of packages and their output is stored in rebase-helper-results/checkers directory
  • Cleanup

    • rebase-helper-workspace directory is removed

Video presentation

At DevConf.cz 2016, Tomáš Hozza, Petr Hráček presented on rebase-helper.

rebase-helper presentation at DevConf.cz 2016

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rebasehelper-0.16.3.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

rebasehelper-0.16.3-py2.py3-none-any.whl (621.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rebasehelper-0.16.3.tar.gz.

File metadata

  • Download URL: rebasehelper-0.16.3.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for rebasehelper-0.16.3.tar.gz
Algorithm Hash digest
SHA256 9817443352cbf3d2fd56017da7096e64cb223fa9101abfd7c97dc1f6c838d400
MD5 486c35c853f86e1073fba1ec8e962494
BLAKE2b-256 2e7be0da58cbbe04285e607d28557b9dd2cb15045c8b611cfeb94b487a46d4f3

See more details on using hashes here.

File details

Details for the file rebasehelper-0.16.3-py2.py3-none-any.whl.

File metadata

  • Download URL: rebasehelper-0.16.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 621.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for rebasehelper-0.16.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 60e5474e253e07ec579850576534ada318ca93398e594beaca746fbcbf061e37
MD5 10701afcc2d37a3b9ec9bd289d16c88b
BLAKE2b-256 f35eb25252bbbf59d34e6eecba528a5cd83a6c396dcbeb01185f20c78fe8cc76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page