- Sep 09, 2014
-
-
Simon Glass authored
RunPipe() currently pipes the output of stdout and stderr to a pty, but this is not the intended behaviour. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When running unit tests we don't want output to go to the terminal. Provide a way of collecting it so that it can be examined by test code later. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 05, 2014
-
-
Simon Glass authored
A missing 'global' declaration means that this feature does not currently work. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
patman collects tags that it sees in the commit and places them nicely sorted at the end of the patch. However, this is not really necessary and in fact is apparently not desirable. Suggested-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Simon Glass authored
In a headless environment the pager can apparently hang. We don't want a pager anyway so let's request that none be used. Reported-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It seems that this is no longer needed, since checkpatch.pl will catch whitespace problems in patches. Also the option is not widely used, so it seems safe to just remove it. Suggested-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It seems that doctest behaves differently now, and some of the unit tests do not run. Adjust the tests to work correctly. ./tools/patman/patman --test <unittest.result.TestResult run=10 errors=0 failures=0> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This code came from a different project with 2-character indentation. Fix it for U-Boot. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 28, 2014
-
-
Simon Glass authored
This option is currently not supported, but needs to be, for buildman to operate as expected. Reported-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 22, 2014
-
-
Masahiro Yamada authored
"patman [options]" is displayed by default. Append the rest of help messages to parser.usage instead of replacing it. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Aug 21, 2014
-
-
Masahiro Yamada authored
In Python, sys.exit() function can also take an object other than an integer. If an integer is given to the argument, Python exits with the return code of it. If a non-integer argument is given, Python outputs it to stderr and exits with the return code of 1. That means, print >> sys.stderr, "Blah Blah" sys.exit(1) is equivalent to sys.exit("Blah Blah") The latter is a useful shorthand. Note: Some error messages in Buildman and Patman were output to stdout. But they should go to stderr. They are also fixed by this commit. This is a nice side effect. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Aug 13, 2014
-
-
Simon Glass authored
Older versions of git (e.g. Ubuntu 10.04) do not support this flag. By default they do not decorate. So only enable this flag when supported. Suggested-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move the code that builds a 'git log' command into a function so we can more easily adjust it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 28, 2014
-
-
Masahiro Yamada authored
If Series-to tag is missing, Patman exits with a message "No recipient". This is just annoying for those who had already added sendemail.to configuration. I guess many developers have [sendemail] to = u-boot@lists.denx.de in their .git/config because the 'To: u-boot@lists.denx.de' field should always be added when sending patches. That seems more reasonable rather than adding 'Series-to: u-boot@lists.denx.de' to every patch series. Patman should exit only when both Series-to tag and sendemail.to configuration are mising. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jul 07, 2014
-
-
Simon Glass authored
When patman applies the patches it checks out a new branch, uses 'git am' to apply the patches one by one, and then tries to go back to the old branch. If you try this when the branch is 'undefined', this doesn't work as patman cannot restore the correct branch after applying the patches. It seems that 'undefined' is created by git and is persistent after it is created, so that you can end up on quite an old branch. Add a check for the 'undefined' branch to avoid this. Reported-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 16, 2014
-
-
Simon Glass authored
There is an unfortunate bug in the signoff suppression logic. The first pass is performed with 'git log', and all signoffs are added to the supression set, such that the second time (when processing the real patches) we always suppress the signoffs. Correct this by only suppressing signoffs in the second pass. Signed-off-by:
Simon Glass <sjg@chromium.org> Tested-by:
Michal Simek <monstr@monstr.eu> Tested-by:
Andreas Bießmann <andreas.devel@googlemail.com>
-
- May 09, 2014
-
-
Simon Glass authored
Keep track of all Signed-off-by tags in a commit and silently suppress any duplicates. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This sort of failure is rare, but the code to deal with it is wrong. Fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Mar 22, 2014
-
-
Simon Glass authored
Add a new Patch-cc: tag which performs the service now provided by the Cc: tag. The Cc: tag is interpreted by git send-email but ignored by patman. So now: Cc: patman does nothing. (git send-email can cc patches) Patch-cc: patman Cc's patch and removes this tag from the patch Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 21, 2013
-
-
Albert ARIBAUD authored
Sometimes a commit should have notes enclosed with it rather than withing the cover letter -- possibly even because there is no cover letter. Add a 'Commit-notes' tag, similar to the 'Series-notes' one; lines between this tag and the next END line are inserted in the patch right after the '---' commit delimiter. Change-Id: I01e99ae125607dc6dec08f3be8a5a0b37f0a483d Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by:
Simon Glass <sjg@chromium.org> (Updated README)
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Jul 15, 2013
-
-
Gerhard Sittig authored
adjust instructions for the invocation of Patman's self test: the -t flag appears to have a different meaning now, refer to the --test option for the builtin unit test; adjust a directory location and make sure to run the file which resides in the source directory Signed-off-by:
Gerhard Sittig <gsi@denx.de> Acked-by:
Simon Glass <sjg@chromium.org>
-
- May 14, 2013
-
-
Simon Glass authored
Rather than a backtrace, produce a nice error message when an invalid branch is provided to buildman. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 09, 2013
-
-
Michal Simek authored
Patman requires python 2.7.4 to run but it doesn't need to be placed in /usr/bin/python. Use env to ensure that the interpreter used is the first one on environment's $PATH on system with several versions of Python installed. Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Tom Rini <trini@ti.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Conflicting tags can prevent buildman from building two series which exist one after the other in a branch. There is no reason not to allow this sort of workflow with buildman, so ignore conflicting tags in buildman. Change-Id: I2231d04d8684fe0f8fe77f8ea107e5899a3da5e8 Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@ti.com>
-
- Apr 18, 2013
-
-
Andreas Bießmann authored
The git config parameter log.decorate is quite useful when working with git. Patman, however can not handle the decorated output when parsing the commit. To prevent this use the '--no-decorate' switch for git-log. Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Apr 08, 2013
-
-
Simon Glass authored
For some series with lots of changes it is annoying that duplicate change log items are not caught. It is also helpful sometimes to sort the change logs. Add a Series-process-log tag to enable this, which can be placed in a commit to control this. The change to the Cc: line is to fix a checkpatch warning. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
Especially with the Linux kernel, it takes a long time (a minute or more) to test-apply the patches, so patman becomes significantly less useful. The only real problem that is found with this apply step is trailing spaces. Provide a -a option to skip this step, for those working with clean patches. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Doug Anderson authored
Patman's regular expression for detecting the start of a commit in a git log was a little simplistic and could be confused if the git log itself had the word "commit" as the start of a line (as this commit does). Make patman a little more robust. Signed-off-by:
Doug Anderson <dianders@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Often it happens that patches include tags which don't have aliases. It is annoying that patman fails in this case, and provides no option to continue other than adding empty tags to the .patman file. Correct this by adding a '-t' option to ignore tags that don't exist. Print a warning instead. Since running the tests is not a common operation, move this to --test instead, to reserve -t for this new option. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
- Apr 04, 2013
-
-
Simon Glass authored
These tags are used by Gerrit, so let's ignore all of them. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
A few of the help messages are not quite right, and there is a typo in the README. Fix these. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
This comment is less than helpful. Since multiple tags are supported, add an example of how multiple tags work. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
At present something like: Revert "arm: Add cache operations" will try to use Revert "arm as a tag. Clearly this is wrong, so fix it. If the revert is intended to be tagged, then the tag can come before the revert, perhaps. Alternatively the 'Cc' tag can be used in the commit messages. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
checkpatch has a new type of warning, a 'CHECK'. At present patman fails with these, which makes it less than useful. Add support for checks, making it backwards compatible with the old checkpatch. At the same time, clean up formatting of the CheckPatches() output, fix erroneous "internal error" if multiple patches have warnings and be more robust to new types of problems. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Simon Glass authored
The cover letter is sent to everyone who is on the Cc list for any of the patches in the series. Sometimes it is useful to send just the cover letter to additional people, so that they are aware of the series, but don't need to wade through all the individual patches. Add a new Cover-letter-cc tag for this purpose. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org>
-
Doug Anderson authored
Some versions of git don't seem to prompt you for the message ID that your series is in reply to. Allow specifying this from the command line. Signed-off-by:
Doug Anderson <dianders@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Doug Anderson authored
Although "Reviewed-by:" is a tag that gerrit adds, it's also a tag used by upstream. Stripping it is undesirable. In fact, we should treat it as important. Signed-off-by:
Doug Anderson <dianders@chromium.org> Reviewed-by:
Otavio Salvador <otavio@ossystems.com.br> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add methods to find out the commits in a branch, clone a repo and fetch from a repo. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We normally read from the current branch, but buildman will need to look at commits from another branch. Allow the metadata to be read from any list of commits, to provide this flexibility. Signed-off-by:
Simon Glass <sjg@chromium.org>
-