Skip to content

Eliminate 'top' and 'bottom' files

David Kågedal git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Add some more tests of "stg status" outputt/t0002-status.sh+28 -00 replies
2/13Clear up semantics of tree_statusstgit/commands/status.py stgit/git.py+26 -210 replies
3/13Moved that status function to the status command filestgit/commands/status.py stgit/git.py t/t0002-status.sh+44 -361 reply
4/13Split Series.push_patch in twostgit/commands/common.py stgit/stack.py+52 -120 replies
5/13Remove dead code from push_empty_patchstgit/stack.py+3 -300 replies
6/13Refactor Series.push_patchstgit/stack.py+46 -410 replies
7/13Clean up Series.refresh_patchstgit/stack.py+4 -60 replies
8/13Add a 'bottom' parameter to Series.refresh_patch and use itstgit/stack.py+8 -160 replies
9/13Clear up the semantics of Series.new_patchstgit/commands/uncommit.py stgit/stack.py+11 -47 replies
10/13Refactor Series.new_patchstgit/stack.py+9 -80 replies
11/13Check bottom and invariantsstgit/stack.py+15 -20 replies
12/13Remove the 'bottom' fieldstgit/commands/sync.py stgit/stack.py+3 -270 replies
13/13Remove the 'top' fieldstgit/stack.py+9 -173 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/13] Eliminate 'top' and 'bottom' files

The following series removes the 'bottom' and 'top' files for each patch, and instead uses the commit objects to keep track of the patches.

The patches are based on kha/safe 24a81d7a94cd7c9ad2fc741b0179db5b830cce78 and will conflict with the 'conflict' series in at least one place.

The first ten patches are actually only cleanups and refactoring that could go in regardless of the last ones. Some of the changes are not really necessary, but I did them while digging into the the code, and believe they are improvements. They should not change the way stg behaves in any way.

The eleventh one is just a sanity check before applying the last two that removes the top and bottom files.

The last two patches do the final cleansing. Obviously, this changes the format, and the format version should be increased and and update function be written. So it's not really ready to go in yet.

Also, there are some documentation changes not included in this.

Maybe I should have sent the first ten patches separately, but this makes it clearer why I did it.

---

David Kågedal (13):
Remove the 'top' field
Remove the 'bottom' field
Check bottom and invariants
Refactor Series.new_patch
Clear up the semantics of Series.new_patch
Add a 'bottom' parameter to Series.refresh_patch and use it Clean up Series.refresh_patch
Refactor Series.push_patch
Remove dead code from push_empty_patch
Split Series.push_patch in two
Moved that status function to the status command file Clear up semantics of tree_status
Add some more tests of "stg status" output

 stgit/commands/common.py   |    2 
 stgit/commands/status.py   |   42 +++++++++-
 stgit/commands/sync.py     |    1 
 stgit/commands/uncommit.py |    1 
 stgit/git.py               |   61 +++-----------
 stgit/stack.py             |  189 ++++++++++++++++++++++----------------------
 t/t0002-status.sh          |   36 ++++++++
 7 files changed, 185 insertions(+), 147 deletions(-)
Signature · 1 line
Signature