summaryrefslogtreecommitdiff
path: root/gbp
AgeCommit message (Collapse)Author
2012-06-30GitRepository: return GitModifier object instead of separate fieldsGuido Günther
this make sure the number of return values doesn't stays sane when also returning timestamps and committer information.
2012-06-30GitRepository: make get_commit_info() more robustMarkus Lehtonen
Now uses git-show instead of git-log. This is needed for further enhancements (namely to get name-status for merge commits). Also, use null-character as the field separator which makes parsing more reliable. The method now returns 'body' of the commit message as is, without stripping or splitting to lines. In addition, get_commit_info() now uses GitArgs and _git_inout() instead of the deprecated _git_getoutput(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-30GitRepository: fix process cwd in _git_inout()Markus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-30PristineTar: move Debian-specific stuff to DebianPristineTarMarkus Lehtonen
Continuation to the PristineTar refactoring, makes the "common" PristineTar independent of DebianPkgPolicy. This commit moves the Debian-specific has_commit() and checkout() methods to DebianPristineTar class and replaces them with more generic functions in the base class. Also, drops the Debian-specific get_commit() method completely, as it was not used outside the PristineTar class itself. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-25UpstreamSource: automatically detect package name and versions from directoriesGuido Günther
of the form packagename-<version>
2012-06-17deb.git: Fixed typo in method nameEd Bartosh
the double underscore prefix was dropped ages ago. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2012-06-17common/pq: use strip in apply_and_commit_patch()Markus Lehtonen
Use the strip information of the patch when applying patches. Also, changes GitRepository.apply_patch() to accept integer values as 'strip' argument. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-17import-orig: move is_link_target() to common moduleMarkus Lehtonen
This change makes is_link_target() re-usable in the upcoming RPM-tools. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-08gbp.conf: Make config option printing more consistentGuido Günther
2012-06-01git-buildpackage: allow to build packages from detached HEAD stateGuido Günther
with --git-ignore-branch. Closes: #661598
2012-06-01git-buildpackage overlay-mode: don't fail on files named like tarballGuido Günther
Instead of moving individual files around simply rename the directories. This is faster and independent of the tarballs content. Closes: #675412
2012-06-01git-buildpackage: add missing importGuido Günther
so move_old_export works again
2012-05-31gbp.git.repository: add GitRepository.make_treeGuido Günther
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-31gbp.git.repository: Add GitRepository.write_fileGuido Günther
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-31gbp.git.repository: Add GitRepository.list_treeGuido Günther
2012-05-25Refactor deb helpers: move PristineTar classGuido Günther
Based on a patch by Markus Lehtonen This refactor is preparation to the upcoming rpm support.
2012-05-24import_dsc: add --allow-unauthenticatedGuido Günther
Closes: #670623
2012-05-20Provide minimalist debian/control objectDaniel Dehennin
Closes: #673473 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-20gbp.deb.ChangeLog: Add filename propertyGuido Günther
2012-05-20gbp.deb.changelog: Split parsing into a separate functionGuido Günther
this will allow us to reparse the changelog after manipulation with dch.
2012-05-20Don't explicitly refer to lenny-backportsGuido Günther
Thanks: Salvatore Bonaccorso
2012-05-20git-dch: Add support for --team switch for Team uploadsSalvatore Bonaccorso
Closes: #673368 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-15Add gbp.deb.ChangeLogSectionGuido Günther
to parse package and version out of a changelog section
2012-05-14gbp.git.repository: Add a "git merge-base" wrapperDaniel Dehennin
Closes: #672642 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-12Config help fixJérémy Lal
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-04GitRepository.format_patches: allow to set threading formatGuido Günther
and disable it by default.
2012-05-01Refactor deb helpers: move UpstreamSource classMarkus Lehtonen
to pkg base module. This refactor is preparation to the upcoming rpm support.
2012-05-01Refactor deb helpers: move build_tarball_name()Markus Lehtonen
from UpstreamSource class to DebianPkgPolicy.
2012-05-01Refactor deb helpers: introduce PkgPolicy classMarkus Lehtonen
Create a new 'pkg' basemodule, intended to be re-used by the upcoming rpm package helpers. Move some deb functionality to a new pkg.PkgPolicy class, to be used as a base for different package types. Introduces Deb-specific deb.DebianPkgPolicy.
2012-04-19Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman
Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-18Refactor git-import-orig as preparation for rpm supportMarkus Lehtonen
Separate some functions of git-import-orig into a baselib, intended to be re-used by the upcoming rpm variant of the tool.
2012-04-18import-orig: refactor args of ask_package_* functionsMarkus Lehtonen
Makes ask_package_name() and ask_package_version() more generic and re-usable in the upcoming RPM-tools.
2012-04-18Refactor git-buildpackage as preparation for rpm supportMarkus Lehtonen
Separate some functions of git-buildpackage into a basemodule, intended to be re-used by the upcoming rpm variant of the tool.
2012-04-18Refactor gbp-pq as preparation for rpm supportMarkus Lehtonen
Separate some functions of gbp-pq into a basemodule, intended to be re-used by the upcoming rpm variant of the tool. Also, introduces a new python subpackage gbp.scripts.common to be used for the re-usable parts of the scripts in the refactoring work.
2012-04-18Git-Dch: Full in commit messagesMatthijs Kooijman
This new tag makes git-dch use the full commit message when generating the Debian changelog file, even when --full is not given. Closes: #669159 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-15Ignore locale when checking for a clean repositoryGuido Günther
Closes: #668896
2012-04-12Make the upstream version check match policyGuido Günther
Closes: #668554
2012-04-05gbp.git.repository: don't append a second .gitGuido Günther
when mirroring a repository
2012-03-23git-import-orig: Allow to pass in an upstream vcs tagGuido Günther
This allows to link the import-orig commit with the corresponding upstream vcs tag. See #664771 for a discussion.
2012-03-21gbp-create-remote-repo: add --remote-configGuido Günther
This specifies an additional config file section that can be used to preconfigure different remote locations.
2012-03-21gbp.config: add list of config file sections to constructorGuido Günther
This makes it possible to parse additional mandatory sections from config files to prefill defaults. Git-Dch: Ignore
2012-03-21gbp-create-remote-repo: move option parsing to separate functionGuido Günther
Git-Dch: Ignore
2012-03-21gbp.confing: add docstringGuido Günther
Git-Dch: Ignore
2012-03-21gbp create-remote-repo: allow to pass template directoryGuido Günther
to git init so it's possible to set up remote hooks.
2012-03-21gbp-create-remote-repo: Cleanup raise statementsGuido Günther
Git-Dch: Ignore
2012-03-19GitRepository.clone(): document missing optionsGuido Günther
2012-03-19GitRepository.create(): use GitArgsGuido Günther
Git-Dch: Ignore
2012-03-19gbp-create-remote-repo: test generated configGuido Günther
Git-Dch: Ignore
2012-03-19gbp-create-remote-repo: improve remote script readabilityGuido Günther
Git-Dch: Ignore
2012-03-19gbp-create-remote-repo: make command and script generation testableGuido Günther