- Jan 15, 2015
-
-
Simon Glass authored
Buildman normally obtains the upstream commit by asking git. Provided that the branch was created with 'git checkout -b <branch> <some_upstream>' then this normally works. When there is no upstream, we can try to guess one, by looking up through the commits until we find a branch. Add a function to try this and print a warning if buildman ends up relying on it. Also update the documentation to match. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Wolfgang Denk <wd@denx.de>
-
- Nov 27, 2014
-
-
Simon Glass authored
Even with the initial 8 characeters of the hash we will sometimes get a collision. Use the full hash. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 03, 2014
-
-
Simon Glass authored
Even with the initial 8 characeters of the hash we will sometimes get a collision. Use the full hash. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 21, 2014
-
-
Simon Glass authored
The get_maintainers script is a useful default, but sometimes is copies too many people, or takes a long time to run. Add an option to disable it and update the README. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 09, 2014
-
-
Vadim Bendebury authored
For an occasional user of patman some failures are not obvious: for instance when checkpatch reports warnings, the dry run still reports that the email would be sent. If it is not dry run, the warnings are shown on the screen, but it is not clear that the email was not sent. Add some code to report failure to send email explicitly. Tested by running the script on a patch with style violations, observed error messages in the script output. Signed-off-by:
Vadim Bendebury <vbendeb@chromium.org> Reviewed-by:
Doug Anderson <dianders@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Tags like Series-version are normally expected to appear once, and with a unique value. But buildman doesn't actually look at these tags. So ignore conflicts. This allows bulidman to build a branch containing multiple patman series. Reported-by:
Steve Rae <srae@broadcom.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
For reasons that are not well-understood, GetMetaDataForList() can end up adding to an existing series even when it appears that it should be starting a new one. Change from using a default constructor parameter to an explicit one, to work around this problem. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a test point for the command module. This allows tests to emulate the execution of commands. This provides more control (since we can make the fake 'commands' do whatever we like), makes it faster to write tests since we don't need to set up as much environment, and speeds up test execution. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
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>
-