aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/import_orig.py
Commit message (Collapse)AuthorAge
* import_orig: Move upstream-vcs-tag's help to configGuido Günther2019-04-26
| | | | This way it can be shared.
* import-orig: Allow to run a post unpack hookGuido Günther2019-04-25
| | | | | The working directory of the hook is the top temporary directory the tarballs are being unpacked into.
* import-orig: rename sourcepackage to nameGuido Günther2018-11-24
| | | | since it's the source package's name
* import-orig: Allow to import the requested version with --uscanMathieu Parent2018-08-24
| | | | Closes: #741148
* import-{dsc,orig}: Make --download deprecation text more usefulChris Lamb2018-06-05
| | | | | | | | Point to the manpages for usage examples. Closes: #900606 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Move rollback code out of import_origGuido Günther2018-02-26
| | | | so it can be reused in gbp import-ref
* 8bit GuidoGuido Günther2018-02-26
|
* uscan: disentangle logic a bitGuido Günther2017-11-23
|
* import-orig: use separate exit code when uscan did not find anything newGuido Günther2017-11-21
|
* import-orig: avoid notGuido Günther2017-11-21
| | | | Gbp-Dch: Ignore
* import_orig: drop debian/ again in --merge-mode=replaceGuido Günther2017-11-16
| | | | | | | Another fallout of the Python3 conversion Closes: #881750 Thanks: Víctor Cuadrado Juan for providing a nice reproducer
* import-orig: avoid master branch when importing into empty repoGuido Günther2017-11-07
| | | | | We dont't want a master branch if debian-branch != 'master'. This change can't be rolled back but that doesn't matter much in an empty repo.
* import-orig: don't fail when importing unpacked dirsGuido Günther2017-11-07
| | | | We need to return a tuple
* import-orig: Run the hook on all succesful importsGuido Günther2017-11-07
| | | | So far we would skip it on initial imports which is pointless.
* import-orig: move rollback into separate functionGuido Günther2017-11-07
| | | | | | This keeps main smaller and expresses our intend. Gbp-Dch: Ignore
* Fix commentGuido Günther2017-10-23
| | | | Gbp-Dch: Ignore
* import-orig: rename source to upstreamGuido Günther2017-09-30
| | | | | | to avoid confusion with DebianSource. Gbp-Dch: Ignore
* import-orig: roll back on CTRL-C tooGuido Günther2017-09-29
|
* import_orig: be more descripte what we're "using"Guido Günther2017-09-07
|
* Spell pristine_tar consistentlyGuido Günther2017-08-23
|
* import_orig: use a more gittish commit messageGuido Günther2017-08-07
| | | | | | | When replacing the debian/ dir don't used past tense and keep the subject more like git-merge. Closes: #867214
* test_import_orig: properly pick debian dirGuido Günther2017-08-02
|
* Python3: Fix doctest exception namesGuido Günther2017-08-02
| | | | Python3 prefixes the module names
* New command 'pristine-tar'Guido Günther2017-06-26
| | | | | | | | | This allows one to run the pristine-tar import at a later point. This is useful when using component tarballs and we need to reference the right trees for the commits. The command can later be extended to allow for "export" as well to recreate the tarballs without having to invoke "gbp buildpackage".
* Fix typos in commentsGuido Günther2017-06-23
|
* import-orig: move unpacking code to separate functionGuido Günther2017-04-23
| | | | Gbp-Dch: Ignore
* Drop long deprecated --no-dchGuido Günther2017-04-23
|
* import_orig: move postimport_hook to separate functionGuido Günther2017-04-12
| | | | Gbp-Dch: Ignore
* ipmort_orig: pick best way to import upstream tarball automaticallyGuido Günther2017-04-12
| | | | | | | Add new value --merge-mode=auto that selects either 'replace' or 'merge' depending on the source format version. Closes: #700411
* import_orig: move merge function closer next to each otherGuido Günther2017-04-12
| | | | Gbp-Dch: Ignore
* GitRepository: add is_in_merge()Guido Günther2017-04-04
|
* repo.git_dir is not a functionGuido Günther2017-04-03
| | | | Gbp-Dch: Ignore
* import-orig: only abort merge if it got startedGuido Günther2017-04-03
| | | | | | | This might not be the case when there are e.g. files that would be overwritten by the merge in the workig copy Closes: #859439
* import-orig: Move orig.tar.gz with filter-pristine-tarGuido Günther2017-01-11
| | | | | | | | | | | | If we filter a tarball and use filter-pristine-tar we want pristine-tar to see the correct file name. If a file already exists at that location move it. If we wouldn't move the existing tarball but rather e.g. create the symlink in a temp directory we risk gbp buildpackage picking up the unfiltered tarball later. Closes: #558777
* import_orig: Delay unpack of component tarballsGuido Günther2017-01-11
| | | | | | | | Instead of unpacking them right away first repack the filtered tarball so the component tarballs don't end up in the main tarball when using filters. Closes: #840602
* import-orig: Make sure we exit non zeroGuido Günther2017-01-11
| | | | | Although none of the callers returns None but raises an exception this is more defensive.
* Deprecate --download in import_srpm tooGuido Günther2017-01-01
|
* import-orig: determine download automaticallyGuido Günther2016-12-26
|
* Use compact forms of logging functionsGuido Günther2016-12-26
|
* Fix new flake8 errorsGuido Günther2016-11-15
| | | | E305 expected 2 blank lines after class or function definition
* import_orig: flake8 cleanGuido Günther2016-09-12
|
* import_orig: Use gbp.scripts.common.hookGuido Günther2016-09-12
|
* pep8/pyflakes cleanupsGuido Günther2016-09-12
|
* import_orig: Properly abort merge on rollbacksGuido Günther2016-08-26
| | | | If merging fails we need to call "git merge --abort"
* import-orig: export version information to postimport hookGuido Günther2016-08-04
| | | | Closes: #833429
* import_orig: Only try rollbacks if necessaryGuido Günther2016-07-31
| | | | | | | | | If the list of possible rollbacks is empty don't print confusing messages to the user like: gbp:error: No archive to import specified. Try --help. gbp:error: Error detected, Will roll back changes. gbp:error: Rolled back changes after import error.
* import-orig: Switch to Debian branch before merging in changesGuido Günther2016-07-21
| | | | | | otherwise we'd always merge into the current working copy Closes: #832016
* Improve check for empty_repositoryGuido Günther2016-07-05
| | | | | | Bases on a patch by Carlos Maddela Closes: #791472
* import_orig: Drop duplicate log message when rolling back a branchGuido Günther2016-07-05
|
* Give more instructions when config is unparseableGuido Günther2016-07-04
| | | | | | | | and make return codes and messages consistent. This allows us to move some test code from the component tests to the unit tests which is always nice. Closes: #733640