summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-07-27GitRepository/get_commit_info: add file statusMarkus Lehtonen
Add file status and name to the info returned by the get_commit_info() method. Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitRepository/get_commit_info: add committer infoMarkus Lehtonen
Add committer to the info returned by get_commit_info() method. Returns committer name, email and timestamp as a GitModifier object. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitRepository/get_commit_info: add author timestampMarkus Lehtonen
Add author timestamps to the info returned by get_commit_info() method. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitModifier: More flexible date handlingGuido Günther
Allow to pass in the date as datetime object, timestamp or git raw date. and allow to retrieve these values. This make constructing GitModifiers from python simpler.
2012-07-27Fix variable renamingGuido Günther
2012-07-24GitRepository: option to ignore untracked in is_clean()Markus Lehtonen
Add an option to ignore untracked files when checking if the repository is clean. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-24GitRepository/get_author_info: return user.name as nameMarkus Lehtonen
Return users full name (user.name) instead of email (user.email) as the 'name' of the author when taking the value from git config. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-23gbp.git.GitRepository: Add remove_remoteGuido Günther
2012-07-23git.repository.GitRepository.add_remote_repo: use GitArgsGuido Günther
2012-07-03GitRepository: Make rev_parse's short option an int everywhereGuido Günther
2012-07-03GitRepository/rev_parse: add new argument 'short'Markus Lehtonen
Adds a new argument to get abbreviated SHA1. Also, modifies rev_parse() to use GitArgs class. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-02GitRepository/get_commit_info: check return value of git command correctlyMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-02Make exception syntax consistentGuido Günther
2012-06-30GitRepository: Add test that covers remote branches in has_branch()Guido Günther
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-30tests: test GitRepository.get_commit_info()Guido Günther
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-25Make TestDir testcase use a newly created directoryGuido Günther
neeeded for the upcoming packagename/version parsing support
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-01Document changes and release 0.6.0~git20120601Guido 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-24Document changes and release 0.6.0~git20120524Guido Günther
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-20Document --bpo, --nmu and --qa in git-dch's manpageSalvatore Bonaccorso
Closes: #673422 Signed-off-by: Guido Günther <agx@sigxcpu.org>
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-15Fix typo in doctest that made epydoc fail.Guido Günther
Git-Dch: Ignore
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-06docs: compolete git-dch synopsisGuido Günther
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.