diff options
| author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-08-21 13:02:29 +0200 |
|---|---|---|
| committer | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2024-01-09 16:34:52 +0000 |
| commit | 21d6a4925f883045d6750e7f50bbd566bbca3438 (patch) | |
| tree | ace64acc209c593d4bb3233608b9fd00c1afb265 /bin/git_gpush.pm | |
| parent | ddd7ac7488afce2915bc40359034832a95180220 (diff) | |
gpush: cache rebased commits more aggressively
we now save the rebased commits even if they are not actually pushed
out, which is the case with --list-online, and even on a regular push
attempt that errors out due to failing to rebase another series. this
vastly accelerates repeated listing and the subsequent push for series
that are not rebased meanwhile.
Change-Id: I1c9df94193a07d827d7cfea5a51980ff3f47f58a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'bin/git_gpush.pm')
| -rw-r--r-- | bin/git_gpush.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/git_gpush.pm b/bin/git_gpush.pm index 030ce00..c8187bb 100644 --- a/bin/git_gpush.pm +++ b/bin/git_gpush.pm @@ -711,9 +711,11 @@ our %gerrit_infos_by_id; # - topic: Gerrit topic. Persisted only as a cache. # - pushed: SHA1 of the commit this Change was pushed as last time # from this repository. +# - rebased: prospective value for 'pushed'. # - base: SHA1 of commit on top of which the entire series which this # Change is part of was pushed. # - orig: SHA1 of the _local_ commit 'pushed' was derived from. +# - rorig: same for 'rebased'. # - nbase/ntgt/ntopic: Non-committed values of the respective # attributes, used by --group mode. # - exclude: Flag indicating whether the Change is excluded from @@ -775,7 +777,7 @@ sub save_state(;$$) my (@lines, @updates); my @fkeys = ('key', 'grp', 'id', 'src', 'tgt', 'topic', 'base', 'ntgt', 'ntopic', 'nbase', 'exclude', 'hide'); - my @rkeys = ('pushed', 'orig'); + my @rkeys = ('pushed', 'rebased', 'orig', 'rorig'); if ($new) { push @lines, "verify $new", "updater $state_updater"; push @fkeys, @rkeys; |
