- 30 5月, 2020 1 次提交
-
-
由 Sean Anderson 提交于
Patman outputs a line for every edition of the series in every patch, regardless of whether any changes were made. This can result in many redundant lines in patch changelogs, especially when a patch did not exist before a certain revision. For example, the existing behaviour could result in a changelog of Changes in v7: None Changes in v6: None Changes in v5: - Make a change Changes in v4: None Changes in v3: - New Changes in v2: None With this patch applied and with --no-empty-changes, the same patch would look like (no changes since v5) Changes in v5: - Make a change Changes in v3: - New This is entirely aesthetic, but I think it reduces clutter, especially for patches added later on in a series. Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 27 4月, 2020 2 次提交
-
-
由 Simon Glass 提交于
At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
We don't need these now that the tools using Python 3. Drop them. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 16 4月, 2020 1 次提交
-
-
由 Simon Glass 提交于
Quite often on a series that has clean-up patches, the individual patches may fit within the cc limit but the cover letter does not. Apply the same limit to the cover letter. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NChris Packham <judge.packham@gmail.com>
-
- 14 11月, 2019 1 次提交
-
-
由 Robert Beckett 提交于
fixes: 8ab452d5 When compiling list of cover letter cc addresses, using null as a separater, then encoding to utf-8 results in lots of "\x00" as separators. patman then doesnt understand that when it comes to repoting the list to send-email. Fix this by not encoding to utf-8, as done for the other patch files. Signed-off-by: NRobert Beckett <bob.beckett@collabora.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 05 11月, 2019 1 次提交
-
-
由 Simon Glass 提交于
At present patman test fail in some environments which don't use utf-8 as the default file encoding. Add this explicitly. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 28 10月, 2019 1 次提交
-
-
由 Dmitry Torokhov 提交于
There is a contributor in Linux kernel with a comma in their name, which confuses patman and results in invalid to- or cc- addresses on some patches. To avoid this, let's use \0 as a separator when generating cc file. Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 11 7月, 2019 3 次提交
-
-
由 Simon Glass 提交于
Use the new functions in the tools module to handle conversion. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
We use sets to produce the list of To and Cc lines for a series. This does not result in stable ordering of the recipients. Sort each list to ensure that the output is repeatable. This is necessary for tests. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Create helper functions in the tools module to deal with the differences between unicode in Python 2 (where we use the 'unicode' type) and Python 3 (where we use the 'str' type). Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 23 6月, 2018 1 次提交
-
-
由 Chris Packham 提交于
Many mailing-lists consider a long Cc list a sign of spam and will either drop the message or mark it for moderation. Because patman automatically invokes get_maintainer.pl the Cc list can expand unexpectedly. Allow the user to specify a limit for the Cc list. This limit is applied after removing any known bouncing addresses. By default no limit is applied. Signed-off-by: NChris Packham <judge.packham@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 07 5月, 2018 1 次提交
-
-
由 Tom Rini 提交于
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 12 9月, 2017 1 次提交
-
-
由 Chris Packham 提交于
Add support for reading a list of bouncing addresses from a in-tree file (doc/bounces) and from the ~/.patman config file. These addresses are stripped from the Cc list. Signed-off-by: NChris Packham <judge.packham@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com <mailto:philipp.tomsich@theobroma-systems.com>>
-
- 09 6月, 2017 4 次提交
-
-
由 Simon Glass 提交于
This is not a good variable name in Python because 'list' is a type. It shows up highlighted in some editors. Rename it. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
-
由 Simon Glass 提交于
Allow the add_maintainers parameter to be a list of maintainers, thus allowing us to simulate calling the script in tests without actually needing it to work. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
-
由 Simon Glass 提交于
Don't mess with the email address when outputting them. Just make sure they are encoded with utf-8. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
-
由 Philipp Tomsich 提交于
This change encodes the CC list to UTF-8 to avoid failures on maintainer-addresses that include non-ASCII characters (observed on Debian 7.11 with Python 2.7.3). Without this, I get the following failure: Traceback (most recent call last): File "tools/patman/patman", line 159, in <module> options.add_maintainers) File "[snip]/u-boot/tools/patman/series.py", line 234, in MakeCcFile print(commit.patch, ', '.join(set(list)), file=fd) UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 81: ordinal not in range(128) from Heiko's email address: [..., u'"Heiko St\xfcbner" <heiko@sntech.de>', ...] While with this change added this encodes to: "=?UTF-8?q?Heiko=20St=C3=BCbner?= <heiko@sntech.de>" Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org> Tested-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
-
- 08 2月, 2017 1 次提交
-
-
由 Chris Packham 提交于
When gathering addresses for the Cc list patman would encounter a UnicodeDecodeError due to non-ascii characters in the author name. Address this by explicitly using utf-8 when building the Cc list. Signed-off-by: NChris Packham <judge.packham@gmail.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 09 10月, 2016 2 次提交
-
-
由 Paul Burton 提交于
In python 3.x, print must be used as a function call. Convert all print statements to the function call style, importing from __future__ where we print with no trailing newline or print to a file object. Signed-off-by: NPaul Burton <paul.burton@imgtec.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Paul Burton 提交于
In preparation for running on python 3.x, which will refuse to run scripts which mix tabs & spaces for indentation, replace 2 tab characters present in series.py with spaces. Signed-off-by: NPaul Burton <paul.burton@imgtec.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 25 2月, 2016 1 次提交
-
-
由 Albert ARIBAUD 提交于
A patman series with a 'Series-notes' section causes buildman to crash with: self.series.notes += self.section TypeError: cannot concatenate 'str' and 'list' objects Fix by initializing series.notes as a one-element array rather than a scalar. Signed-off-by: NAlbert ARIBAUD <albert.u.boot@aribaud.net> Acked-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
- 31 8月, 2015 1 次提交
-
-
由 Simon Glass 提交于
This requires 'Series-cover_cc' at present which is incorrect. Fix it. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 24 4月, 2015 1 次提交
-
-
由 Wu, Josh 提交于
For the local project, we may specified format.subjectprefix setting. Then the patch will be formated as [Project_prefix][PATCH]. But patman will not check this setting. It will remove the format.subjectprefix. So This patch will let patman check this setting and add it as a project prefix. Signed-off-by: NJosh Wu <josh.wu@atmel.com> Acked-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
- 31 1月, 2015 1 次提交
-
-
由 Peter Tyser 提交于
When run with the --dry-run argument patman prints out information showing what it would do. This information currently doesn't line up with what patman/git send-email really do. Some basic examples: - If an email address is addressed via "Series-cc" and "Patch-cc" patman shows that email address would be CC-ed two times. - If an email address is addressed via "Series-to" and "Patch-cc" patman shows that email address would be sent TO and CC-ed. - If an email address is addressed from a combination of tag aliases, get_maintainer.pl output, "Series-cc", "Patch-cc", etc patman shows that the email address would be CC-ed multiple times. Patman currently does try to send duplicate emails like the --dry-run output shows, but "git send-email" intelligently removes duplicate addresses so this patch shouldn't change the non-dry-run functionality. Change patman's output and email addressing to line up with the "git send-email" logic. This trims down patman's dry-run output and prevents confusion about what patman will do when emails are actually sent. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com> Acked-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
- 22 9月, 2014 1 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org>
-
- 24 7月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: NTom Rini <trini@ti.com>
-
- 10 5月, 2013 1 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NTom Rini <trini@ti.com>
-
- 09 4月, 2013 2 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NDoug Anderson <dianders@chromium.org>
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NDoug Anderson <dianders@chromium.org>
-
- 05 4月, 2013 1 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NDoug Anderson <dianders@chromium.org>
-
- 01 2月, 2013 3 次提交
-
-
由 Doug Anderson 提交于
For Linux the best way to figure out where to send a patch is with the "get_maintainer.pl" script. Add support for calling it from patman. Support is added unconditionally for "scripts/get_maintainer.pl" in case it is helpful for any other projects. Signed-off-by: NDoug Anderson <dianders@chromium.org>
-
由 Doug Anderson 提交于
If we're sending a cover letter make sure to CC everyone that we're CCing on each of the individual patches. Signed-off-by: NDoug Anderson <dianders@chromium.org>
-
由 Doug Anderson 提交于
Currently we go through and generate the CC list for patches twice. This gets slow when (in a future CL) we add a call to get_maintainer.pl on Linux. Instead of doing things twice, just cache the CC list when it is first generated. Signed-off-by: NDoug Anderson <dianders@chromium.org> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 14 11月, 2012 1 次提交
-
-
由 Simon Glass 提交于
Often a particular patch may change only for some versions of a series. For versions where there is no change, issue a change log indicating that (for example 'Changes in v4: None'). For such lines, don't add a blank line afterwards, to conserve space. Use list.insert() instead of list = [item] + list. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NStefan Roese <sr@denx.de>
-
- 16 10月, 2012 1 次提交
-
-
由 Simon Glass 提交于
Sometimes it is possible to forget the name of the branch you used to generate an upstream series. To assist with this, add an optional patman does not use this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 27 9月, 2012 1 次提交
-
-
由 Otavio Salvador 提交于
Specially when many revisions are need for a patchset, the most interesting information is about the last set of changes so we output the changelog in reverse order to easy identification of most recent change set. Signed-off-by: NOtavio Salvador <otavio@ossystems.com.br> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 02 9月, 2012 3 次提交
-
-
由 Otavio Salvador 提交于
In case an address is listed in the To list, those will be skipped on Cc list or user might end with a duplicated message. This fixes the case when a tag points to same address used as series destination thus avoiding duplicated sending. Signed-off-by: NOtavio Salvador <otavio@ossystems.com.br>
-
由 Otavio Salvador 提交于
When a patchset had a RFC series, a v1 might have a changelog of changes done since the RFC. The patch changes the range checked for changelog and allow it to start for version 1. Signed-off-by: NOtavio Salvador <otavio@ossystems.com.br> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Ilya Yanok 提交于
Don't try to sort and uniq changelog entries as this breaks multiline entries. It will be better to add some real multi-line support but for now just preserve the entries as is. Signed-off-by: NIlya Yanok <ilya.yanok@cogentembedded.com>
-
- 21 4月, 2012 1 次提交
-
-
由 Simon Glass 提交于
What is this? ============= This tool is a Python script which: - Creates patch directly from your branch - Cleans them up by removing unwanted tags - Inserts a cover letter with change lists - Runs the patches through checkpatch.pl and its own checks - Optionally emails them out to selected people It is intended to automate patch creation and make it a less error-prone process. It is useful for U-Boot and Linux work so far, since it uses the checkpatch.pl script. It is configured almost entirely by tags it finds in your commits. This means that you can work on a number of different branches at once, and keep the settings with each branch rather than having to git format-patch, git send-email, etc. with the correct parameters each time. So for example if you put: in one of your commits, the series will be sent there. See the README file for full details. END Signed-off-by: NSimon Glass <sjg@chromium.org>
-