Skip to content
Snippets Groups Projects
  1. Jan 30, 2015
    • Peter Tyser's avatar
      patman: Make dry-run output match real functionality · 2181830f
      Peter Tyser authored
      
      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: default avatarPeter Tyser <ptyser@xes-inc.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      2181830f
  2. Jan 15, 2015
  3. Sep 09, 2014
  4. Sep 05, 2014
  5. Aug 28, 2014
  6. Aug 13, 2014
  7. Jul 28, 2014
    • Masahiro Yamada's avatar
      patman: make "No recipient" checking more tolerant · ee860c60
      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: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      ee860c60
  8. Jul 07, 2014
    • Simon Glass's avatar
      patman: Only apply patches when we know the original HEAD · 4251978a
      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: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      4251978a
  9. May 09, 2014
  10. Jul 24, 2013
  11. May 14, 2013
  12. Apr 18, 2013
  13. Apr 08, 2013
    • Simon Glass's avatar
      patman: Provide option to ignore bad aliases · a1318f7c
      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: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
      a1318f7c
  14. Apr 04, 2013
  15. Jan 31, 2013
    • Doug Anderson's avatar
      patman: Add support for settings in .patman · 8568baed
      Doug Anderson authored
      
      This patch adds support for a [settings] section in the .patman file.
      In this section you can add settings that will affect the default
      values for command-line options.
      
      Support is added in a generic way such that any setting can be updated
      by just referring to the "dest" of the option that is passed to the
      option parser.  At the moment options that would make sense to put in
      settings are "ignore_errors", "process_tags", and "verbose".  You
      could override them like:
      
       [settings]
       ignore_errors: True
       process_tags: False
       verbose: True
      
      The settings functionality is also used in a future change which adds
      support for per-project settings.
      
      Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
      8568baed
    • Doug Anderson's avatar
      patman: Allow tests to run even if patman is in the path · a970048e
      Doug Anderson authored
      
      Several of the patman doctests assume that patman was run with:
        ./patman
      
      Fix them so that they work even if patman is run with just "patman"
      (because patman is in the path).
      
      Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      a970048e
  16. Oct 19, 2012
  17. Jun 19, 2012
  18. Apr 21, 2012
    • Simon Glass's avatar
      Add 'patman' patch generation, checking and submission script · 0d24de9d
      Simon Glass authored
      
      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: default avatarSimon Glass <sjg@chromium.org>
      0d24de9d
Loading