summaryrefslogtreecommitdiff
path: root/gbp
AgeCommit message (Collapse)Author
2013-06-26import-dsc: print filename instead of object nameGuido Günther
2013-06-26config: Don't fill in the parser with all defaultsGuido Günther
There's no need to fill the parser with all the built in defaults since we can simply copy them to the config from the class dict. This allows us to first set the values from the old {git,gbp}-* commands and then only overwrite changed values from the newer "gbp <command>" versions. Otherwise we'd overwite all old style config with the new style one. This also fixes the problem where the default section wouldn't be read at all if the command doesn't even have an empty section in any gbp.conf file.
2013-06-26gbp-import-dscs: invoke gbp import-dscGuido Günther
instead of git-import-dsc
2013-06-26Consistently call gbp the supercommandGuido Günther
and robustify against invalid modules names.
2013-06-26gbp: support --helpGuido Günther
2013-06-19GbpOptionParser: Make sure we parse the old config sectionsGuido Günther
For backward compatibility between {gbp,git}-<subcommand> and "gbp <subcommand>" make sure we parse the former sections if using the later.
2013-06-19GbpOptionParser: Make sure we access the GbpOptionParser*'s default dictGuido Günther
and not the one from the OptionParser. The instance's default dict this gets reset to empty when invoking OptionParser.__init__.
2013-06-18Add wrapper for all gbp commandsGuido Günther
So like git you can now use gbp <command> instead of git-<command> or gbp-<command>. The manpages and docs aren't adjusted yet.
2013-06-13GitRepository/diff: allow single objectMarkus Lehtonen
Allow diffing a single object, e.g. getting diff from single commit. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-06-11Simplify expressionGuido Günther
Git-Dch: Ignore
2013-06-11GitRepository.get_subject: use get_commit_infoGuido Günther
This kills another _git_getoutput. Also deprecate the method since we don't need to special case the subject.
2013-06-11buildpackage: use get_commit_info() instead of get_subject()Markus Lehtonen
Utilize the get_commit_info() method of GitRepository instead of the deprecated get_subject(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-06-06import-orig: keep working copy in sync with branch HEADMarkus Lehtonen
Update working copy and index (to branch HEAD) if we modify the currently checked-out branch. Otherwise the repository is left in unclean state when the current branch is upstream or pristine-tar and the '--no-merge' option is used. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-06-06GitRepository/get_commit_info: add patchname to infoMarkus Lehtonen
Add a new 'patchname' field to the information returned by get_commit_info. That is, the subject in a sanitized format, similar to what git-format-patch uses. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-06-06gitmodifier: make the datetime object always have timezoneMarkus Lehtonen
To be consistent with the date property and for easier compatibility with git dates. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-05-17git-buildpackage: Unbreak overlay modeGaudenz Steinlin
Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #708636
2013-05-08GitRepository: Use LC_ALL=C when checking featuresGuido Günther
This fixes the doctest and also makes sure we use an up to date manpage. Thanks: Daniel Dehennin for the report
2013-05-04gbp-pull: Fix typo in help outputGuido Günther
2013-05-02GitRepository Use _git_inout in get_branchGuido Günther
to suppress the confusiong "fatal: ref HEAD is not a symbolic ref". We alrady put out a more descriptive error message. This makes using --ignore-branch look far less dangerous.
2013-05-02Add --ignore-branch to gbp-pullGuido Günther
This allows us to fetch upstream and pristine-tar even when in detached head state. This can be usefull when e.g. building in jenkins which uses a detached head by default.
2013-05-02dch: make sure branch is always definedGuido Günther
This fixes a problem when running git-dch form a detached HEAD
2013-04-29Silence dpkg --compare-versionsGuido Günther
and add the error detail to the exception message. This silences the testsuite and makes sure we have error message and exception output in sync.
2013-04-29Use Popen.communicate instead of subprocess callGuido Günther
so we can capture stderr and use it in error messages intead of spewing it on the console.
2013-04-29Make parse_dsc a classmethod of DscFileGuido Günther
so we have the object creation close to the object itself.
2013-04-29ChangeLog: Remove is_nativeGuido Günther
to avoid accidental usage. Use DebianSource.is_native instead.
2013-04-29dch: Use DebianSource.is_nativeGuido Günther
instead of ChangeLog.is_native since the former used debian/source/format in favor of debian/changelog.
2013-04-29Revert "Use Popen.communicate instead of subprocess call"Guido Günther
This reverts commit 0c582cd827f164168a313e0bb4eabf9487bdd088.
2013-04-29Use Popen.communicate instead of subprocess callGuido Günther
so we can caputure stderr and pass it along with any errors.
2013-04-27GitRepository.has_feature: capture stderrGuido Günther
to avoid spurious output on the console and add the error message to the exception intead.
2013-04-27GitRepository.commit_dir: raise GitRepositoryError instead of GbpErrorGuido Günther
and make sure the callers forward the error properly
2013-04-27Silence GitRepository.write_treeGuido Günther
but add any error output to the exception instead. All callers have been audited to properly output the message if needed.
2013-04-27command_wrappers: allow to silence __call__Guido Günther
and use that in the doctest to get rid of the spurious output
2013-04-27Discard git mailinfo's error messageGuido Günther
since we don't expect it to succeed.
2013-04-27Silence GitRepository.grep_logGuido Günther
None of the gbp script rely on the output being printed. In fact we improve the exception by appending the stderr output.
2013-04-27Silence GitRepository.set_upstream_branchGuido Günther
It's not used within gbp itself so no command line tool expects an error message to be printed.
2013-04-26Silence GitRepository.has_treeishGuido Günther
This also silences 10_test_get_upstream_tree
2013-04-26buildpackage: implement --[no-]hooks optionMarkus Lehtonen
For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-26DebianSource: fix is_native()Markus Lehtonen
Determine from changelog if debian/source/format does not provide any type (1.0 format). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25GitRepository: add describe() methodMarkus Lehtonen
Provides more output options than find_tag(). - longfmt: for getting the tag name in the long format (tag, number of commits and sha1) - always: for falling back to sha1 if no (matching) tag name is found - abbrev: for defining the length of sha1 returned Change GitRepository.find_tag() to use the the new method. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25buildpackage: catch and handle DebianSourceError gracefullyMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25DebianSource: raise DebianSourceError if reading changelog failsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-24Silence _git_commandGuido Günther
by using _git_inout instead of GitCommand
2013-04-24Silence git cloneGuido Günther
by using __git_inout instead of GitCommand
2013-04-14GitRepository: make __build_env a static methodGuido Günther
since cls is unused and it silences pychecker
2013-04-14Silence git initGuido Günther
to make the test suite less verbose
2013-04-13Don't try access source before it's filledGuido Günther
2013-04-13Add gbp.git.source.Source.sourcepkgGuido Günther
to easily fetch the source package name Git-Dch: Ignore
2013-04-13Honor debian/source/formatGuido Günther
when checking if a package is a native package Closes: #669267
2013-04-13Introduce Source classGuido Günther
so we don't have to expose all the details of Debian's different files and conventions.
2013-04-13Add minimal vfs interfaceGuido Günther
so we can access blobs in git as file like objects