Skip to content

Two bugfixes

Karl Hasselström git 1 version In review

Get series with b4
b4 am 20080320002604.13102.53757.stgit@yoghurt

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Use a special exit code for bugsstgit/main.py stgit/utils.py+8 -40 replies
2/6Make sure patches with no parents have an empty list of parentsstgit/lib/git.py+1 -10 replies
3/6Try uncommitting a commit with not exactly one parentt/t1300-uncommit.sh+5 -00 replies
4/6Make sure that we only uncommit commits with exactly one parentstgit/commands/uncommit.py t/t1300-uncommit.sh+13 -30 replies
5/6New test: conflicting push in dirty worktreet/t3000-dirty-merge.sh+35 -00 replies
6/6Handle failed pushes differently depending on causestgit/lib/git.py stgit/lib/transaction.py t/t3000-dirty-merge.sh+18 -90 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 0/6] Two bugfixes

This series fixes one rather benign bug (4/6) and one that caused patches to become empty, which is rather worse (6/6). (The patch contents could still be recovered via the patch log or reflog, but it's still a major inconvenience.)

Both bugs were discovered by Erik Sandberg.

These patches are also available in the kha/safe branch.

---

Karl Hasselström (6):
Handle failed pushes differently depending on cause New test: conflicting push in dirty worktree
Make sure that we only uncommit commits with exactly one parent Try uncommitting a commit with not exactly one parent Make sure patches with no parents have an empty list of parents Use a special exit code for bugs

 stgit/commands/uncommit.py |   14 ++++++++++++--
 stgit/lib/git.py           |   23 +++++++++++++++--------
 stgit/lib/transaction.py   |    4 +++-
 stgit/main.py              |   11 +++++++----
 stgit/utils.py             |    1 +
 t/t1300-uncommit.sh        |    5 +++++
 t/t3000-dirty-merge.sh     |   35 +++++++++++++++++++++++++++++++++++
 7 files changed, 78 insertions(+), 15 deletions(-)
 create mode 100755 t/t3000-dirty-merge.sh
Signature · 2 lines
Karl Hasselström, [email protected]
      www.treskal.com/kalle