summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b32d27)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
topop.append(top)
topush = patches + topush
topop.append(top)
topush = patches + topush
+ # remove common patches to avoid unnecessary pop/push
+ while topush and topop:
+ if topush[-1] != topop[-1]:
+ break
+ topush.pop()
+ topop.pop()
+
# check whether the operation is really needed
if topop != topush:
if topop:
# check whether the operation is really needed
if topop != topush:
if topop: