Skip to content

Undo series

Karl Hasselström git 1 version In review

Get series with b4
b4 am 20080612052913.23549.69687.stgit@yoghurt

Versions newest first

  1. v1 Latest14 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14Fix typostgit/lib/git.py+1 -10 replies
2/14Library functions for tree and blob manipulationstgit/lib/git.py+165 -230 replies
3/14Write to a stack log when stack is modifiedstgit/commands/branch.py stgit/commands/common.py stgit/commands/diff.py +12 more+298 -1717 replies
4/14Add utility function for reordering patchesstgit/lib/transaction.py+14 -00 replies
5/14New command: stg resetstgit/commands/reset.py stgit/main.py t/t3100-reset.sh+269 -00 replies
6/14Log conflicts separatelystgit/lib/transaction.py+32 -150 replies
7/14Log conflicts separately for all commandsstgit/lib/log.py stgit/lib/stack.py+38 -10 replies
8/14Add a --hard flag to stg resetstgit/commands/reset.py stgit/lib/git.py stgit/lib/transaction.py +1 more+82 -80 replies
9/14Don't write a log entry if there were no changesstgit/lib/log.py+3 -00 replies
10/14Move stack reset function to a shared locationstgit/commands/reset.py stgit/lib/log.py stgit/lib/transaction.py+71 -640 replies
11/14New command: stg undostgit/commands/undo.py stgit/lib/log.py stgit/main.py +2 more+144 -320 replies
12/14New command: stg redostgit/commands/redo.py stgit/lib/log.py stgit/main.py +1 more+81 -290 replies
13/14Log and undo external modificationsstgit/commands/common.py stgit/commands/redo.py stgit/commands/reset.py +4 more+162 -500 replies
14/14Make "stg log" show stack log instead of patch logstgit/commands/log.py stgit/commands/reset.py stgit/lib/log.py +1 more+58 -2320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [StGit PATCH 00/14] Undo series

Now with API documentation added all over the place! Especially in 2/14 and 3/14.

The only two things missing before I'll ask for this to be included are

1. Conversion of stg refresh to the new infrastructure, so that it can write two separate steps to the stack log (which will allow undo et.al. to handle it nicely).

2. Log writing optimization: Right now, we always write all the patches to the log, without trying to reuse the entries for the ones that haven't changed since last time.

---

Karl Hasselström (14):
Make "stg log" show stack log instead of patch log Log and undo external modifications
New command: stg redo
New command: stg undo
Move stack reset function to a shared location Don't write a log entry if there were no changes Add a --hard flag to stg reset
Log conflicts separately for all commands Log conflicts separately
New command: stg reset
Add utility function for reordering patches Write to a stack log when stack is modified Library functions for tree and blob manipulation Fix typo

 stgit/commands/branch.py     |   19 +-
 stgit/commands/common.py     |    9 +
 stgit/commands/diff.py       |    2 
 stgit/commands/files.py      |    2 
 stgit/commands/id.py         |    2 
 stgit/commands/log.py        |  169 +++++------------
 stgit/commands/mail.py       |    2 
 stgit/commands/patches.py    |    2 
 stgit/commands/redo.py       |   52 +++++
 stgit/commands/reset.py      |   56 +++++
 stgit/commands/show.py       |    2 
 stgit/commands/status.py     |    3 
 stgit/commands/undo.py       |   49 +++++
 stgit/lib/git.py             |  197 +++++++++++++++++--
 stgit/lib/log.py             |  429 ++++++++++++++++++++++++++++++++++++++++++
 stgit/lib/stack.py           |   16 ++
 stgit/lib/transaction.py     |  121 +++++++++---
 stgit/main.py                |    8 +
 t/t1400-patch-history.sh     |  103 ----------
 t/t3100-reset.sh             |  151 +++++++++++++++
 t/t3101-reset-hard.sh        |   56 +++++
 t/t3102-undo.sh              |   86 ++++++++
 t/t3103-undo-hard.sh         |   56 +++++
 t/t3104-redo.sh              |  122 ++++++++++++
 t/t3105-undo-external-mod.sh |   68 +++++++
 25 files changed, 1491 insertions(+), 291 deletions(-)
 create mode 100644 stgit/commands/redo.py
 create mode 100644 stgit/commands/reset.py
 create mode 100644 stgit/commands/undo.py
 create mode 100644 stgit/lib/log.py
 delete mode 100755 t/t1400-patch-history.sh
 create mode 100755 t/t3100-reset.sh
 create mode 100755 t/t3101-reset-hard.sh
 create mode 100755 t/t3102-undo.sh
 create mode 100755 t/t3103-undo-hard.sh
 create mode 100755 t/t3104-redo.sh
 create mode 100755 t/t3105-undo-external-mod.sh
Signature · 2 lines
Karl Hasselström, [email protected]
      www.treskal.com/kalle