summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-05Remove unused importGuido Günther
2013-09-05ComponentTestBase: use eq_() ok_() from nose.toolsMarkus Lehtonen
For better assert messages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-05GitRepository.diff: prevent usage of external diffMarkus Lehtonen
External diff might break patch generation, for example. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-05GitRepository.diff: add 'text' optionMarkus Lehtonen
For generating textual diffs. Useful for Pq - for example, the 'patch' utility does not support git binary diffs. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository: Add clean() methodMarkus Lehtonen
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository.fetch: Add 'all_remotes' optionLingchaox Xin
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository.fetch: Add 'refspec' optionLingchaox Xin
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository.describe: add 'tags' and 'extra-match' optionsLingchaox Xin
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository.has_treeish: minor pylint fixLingchaox Xin
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: keep tmpdir if GBP_TESTS_NOCLEAN is in envMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04import-orig: import readline in the common moduleMarkus Lehtonen
Useful common functionality. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: fix env restore in teardownMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: more verbose output in case of branch mismatchMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04GitRepository/diff: add 'stat' and 'summary' optionsMarkus Lehtonen
For getting diffstat and summary in the output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04config: restore mangled env in doctestsMarkus Lehtonen
Otherwise the mangled GBP_CONF_FILES affects also other doctests when run with python-nose. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04docs: minor sgml syntax fixMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-08-29docs: having an upstream branch is a recommendationGuido Günther
rather than a hard requirement, we can use any treeish to build the upstream tarball from.
2013-08-28Document changes and release 0.6.3Guido Günther
2013-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-08-28docs: remove superfluous atGuido Günther
2013-08-28docs: Refert to gbp in the introductionGuido Günther
since this wraps all commands now. Thanks: Ross Boylan for pointing out that the current wording is confusing.
2013-08-24pq: exclude patches from Debian packaging branchGuido Günther
When regenerating the patch queue including patches from the Debian branch is not useful. Addresses parts of See #680705. Thanks: Benjamin Cama for the detailed analysis
2013-08-24GitRepository: allow to use '..' instead of '...'Guido Günther
The symmetric difference isn't always useful since it includes changes from both branches. See #680705.
2013-08-22docs: Add recommended branch layoutGuido Günther
It'd be nice to have similar branch layouts among packages so recommend one that worked well so far.
2013-08-22Minor docstring updatesGuido Günther
2013-08-21dch: make automatic adding of new sections more robustGuido Günther
This code that determined if we found a snapshot header was obuscated by the code that determines the commits to add. Split those and better document their purpose. Also always return the commit to start from so we don't need to repeat the logic in the uper levels.
2013-08-21Move MockedChangelog to testutilsGuido Günther
and allow to specify the content so we can reuse it for other dch tests.
2013-07-13--git-hooks doesn't take an argumentGuido Günther
2013-07-09Document changes and release 0.6.2Guido Günther
2013-07-09Bump dephelper dependencyGuido Günther
2013-07-04GitRepository.set_upstream_branch: use --set-upstream-to if availableGuido Günther
since --set-upstream is deprecated.
2013-07-04GitRepository.set_upstream_branch: Catch errors to set upstream branchGuido Günther
2013-07-04GitRepository.set_upstream_branch: don't try to set upstream twiceGuido Günther
Move setting of the upstream branch out of the loop. This worked by accident.
2013-07-04GitRepository.set_upstream_branch: Newer git wants a valid remote repo entryGuido Günther
so set one in the tests before trying to set the upstream branch. Found with git 1.8.3.2
2013-07-04Remove duplicate config files sectionGuido Günther
in the "gbp builpackage" man page
2013-07-04Add gbp buildpackage exampleGuido Günther
showing git-pbuilder invocation
2013-07-01Add examples for importing upstream sourcesGuido Günther
2013-06-30Fix broken xrefsGuido Günther
2013-06-30Add symlinks to the manpages for the deprecated commandsGuido Günther
Closes: #714489 and make lintian happy
2013-06-30Update Vcs-Browser URLGuido Günther
2013-06-30Switch to debhelper level 9Guido Günther
which is available in Wheezy
2013-06-30Make sure we keep our test coverageGuido Günther
2013-06-30Test succesful import tooGuido Günther
and make sure we don't spew to stderr during this test
2013-06-29gbp.git.GitRepository.has_branch(): use _git_commandGuido Günther
instead of the deprecated _git_getoutput
2013-06-29gbp.git.Repository.get_branch(): use _git_commandGuido Günther
instead of the deprecated _git_inout and clarify the return codes and exceptions raised.
2013-06-29.gitignore docbook xrefGuido Günther
Git-Dch: Ignore
2013-06-29Git.Repository.__git_inout: Close all other file descriptorsGuido Günther
No need to leak fds to the child.
2013-06-29Git.Repository.__git_inout: properly set stdinGuido Günther
We should set stdin to subprocess.PIPE when piping input according to the subprocess docs.
2013-06-27Use has_keyGuido Günther
It's shorter and get's rid of the unused dummy variable.
2013-06-27Document gbp's help optionGuido Günther