pre-upload: allow different --rerun-since argument interpretations
When passing the --rerun-since command line option, date is not the
easiest to specify time limit when trying to determine how many
patches should be checked.
Let's allow specifying different arguments to this command line
option, adding sha1 of an existing patch and number of patches to
The following heuristics are used: if the value is shorter than 3
symbols, it must be the number of patches to check. If the value has
dashes in it, it must be a date. Otherwise it must be a SHA1.
TEST=verified that pre-uplad.py --rerun-since properly checks patches
with any of all three formats.
Signed-off-by: Vadim Bendebury <email@example.com>
Reviewed-by: Mike Frysinger <firstname.lastname@example.org>
1 file changed