summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-23Test if setting a topic worksGuido Günther
2012-11-23pq: Allow to pass in custom fucntion to fetch authorship informationGuido Günther
so the RPM based tools don't need to rely on a control file but can e.g. look at the spec file.
2012-11-23Test apply_and_commit_patchGuido Günther
2012-11-23Use an absolute path when parsing the control fileGuido Günther
so we con't accidentally parse a file from another dir.
2012-11-23testutils: create missing directories when adding a fileGuido Günther
2012-11-23pq: fix "no authorship" warning messagesMarkus Lehtonen
Add one missing string field. Show the patch filename instead of the pull path - the user doesn't need to know if the patch was applied from a temporary directory, for example. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-23tests: make tests a Python moduleMarkus Lehtonen
Makes it possible to reuse code between various tests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-23notifications.py: remove unused importMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-23command_wrappers: suppress some pylint warningsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-23Add issing git- prefix to --color and --notify optionsGuido Günther
Thanks: Filippo Rusconi Closes: #693978
2012-11-08Remove unused importGuido Günther
2012-11-08Minor git-import-orig manpage improvementsGuido Günther
2012-11-08GbpError accepts an error messageGuido Günther
so no need to print it separately
2012-11-08Allow to remove the orig tarball symlinkGuido Günther
that's used make pristine-tar see the correct orig tarball name. Closes: #692401
2012-11-07GitRepository/diff: catch git errorMarkus Lehtonen
Raise an exception if the git command fails. Also, utilize _git_inout() instead of the deprecated _git_getoutput(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-07GitRepository/diff: add 'paths' argumentMarkus Lehtonen
Makes the diff function more versatile. I.e. makes diffing only certain paths possible. Also, add basic unittests for the diff() method. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-07GitRepository.find_tag: change deprecated _git_getoutput to _git_inoutEd Bartosh
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-07GitRepository: fix merge() for older git versionsMarkus Lehtonen
Utilize _cmd_has_feature() in GitRepository.merge() to not give edit/no-edit option for older versions of git-merge, that don't support it. Fixes a regression (with git-version < 1.7.8) caused by commit f3aa87fa0361a. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-07GitRepository: implement _cmd_has_feature() methodMarkus Lehtonen
This method is intended for checking if the local git (client) command supports a certain feature. The "feature" is considered to be a command line option. E.g. does "merge" command have the "edit" feature translates to does git-merge support the '--edit' command line option. To figure this out, _cmd_has_feature() parses through the "OPTIONS" section of the man page of the git command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-04Fix testsuite failure if DEB_VENDOR != DebianDmitrijs Ledkovs
The package fails to build from source if the DEB_VENDOR is not Debian, as the test output from git-dch expects Debian distribution specific behaviour. You can see the failed build log with DEB_VENDOR=Ubuntu here: https://launchpadlibrarian.net/121690052/buildlog_ubuntu-raring-i386.git-buildpackage_0.6.0~git20120822_FAILEDTOBUILD.txt.gz Closes: #692289 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-10-25Print number of tries leftGuido Günther
2012-10-25Add support dch's --security optionGuido Günther
2012-10-25PEP-8 and pyflakes cleanupsGuido Günther
2012-08-26Add debian/source/format parserGuido Günther
2012-08-22Document changes and release 0.6.0~git20120822Guido Günther
2012-08-22GitArgs/add: support iterable and non-string argsMarkus Lehtonen
Support giving iterables (other than basestring, e.g. list(s)) as an argument to GitArgs.add(). Also, add support non-iterable arguments that support the str() conversion. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-08-22GitRepository: Implement set_upstream_branch and get_upstream_branch methodsEd Bartosh
set_upstream_branch sets upstream branch for the local branch using git branch --set-upstream get_upstream_branch returns info about upstream branches Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2012-08-22manpages: correct manual section and remove duplicate entryGuido Günther
2012-08-22docs: make refentry ids of manpages more consistentMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-08-22docs: fix cross-referencing in manpagesMarkus Lehtonen
Docbook2man has to be run twice to make sure the cross-references are correct. First pass is just to update the cross-reference file (manpage.refs). The second the builds the actual manpages. Otherwise forward-references might be broken. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-08-22GitRepository/branch_contains: remove prefix '*' in branch nameZhang Qiang
The git output always prefixes the current branch name with '*'. Without this fix branch_contains() always fails for the currently active branch. Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
2012-08-18manpage: Fix typo in git-dch's multimain-merge optionGuido Günther
Closes: #684322
2012-08-13dch: Fix error reporting on parsing errorsGuido Günther
2012-08-03Document changes and release 0.6.0~git20120803Guido Günther
2012-08-03Improve error reporting from uscanGuido Günther
by parsing out the warnings and error fields from the dehs output.
2012-08-03Move uscan to separate classGuido Günther
2012-08-02Add tests for gbp.deb.{DpkgCompareVersions,DscFile}Guido Günther
2012-08-02gbp.command_wrappers: Reformat to 80 chars line lengthGuido Günther
2012-08-01Test help output by importing the modulesGuido Günther
so we get correct coverage information for the scripts
2012-08-01Skip tests requiring devscripts if dch is not thereGuido Günther
so tests don't fail on rpm based systems.
2012-07-31Test behavior of gbp.scripts.dch.main().Daniel Dehennin
* tests/11_test_dch_main.py: Test common cases with "--release" and "--snapshot". Try 2 consecutive snapshots to check for merged entries.
2012-07-31Remove multiple spacesGuido Günther
2012-07-29GitModifier: add tests for dict interfaceGuido Günther
2012-07-29GitModifier: use __getitem__ to fetch dateGuido Günther
instead of accessing __dict__ directly which only has _date.
2012-07-28GitRepository: raise GitRepositoryError on git errorsGuido Günther
Raise GitRepositoryError in cases where CommandExecFailed (from GitCommand) was previously silently passed forward. Heavily based on a patch by Markus Lehtonen <markus.lehtonen@linux.intel.com>
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