Skip to content

Improve test coverage of update-ref error messages

Michael Haggerty git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* In t1404, don't use non-portable local: change function test_update_rejected to refer to the global $prefix variable rather than taking it as a parameter.

* Because that code change has become more involved, split off the addition of documentation for the function into a separate patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6t1404: rename file to t1404-update-ref-errors.sht/t1404-update-ref-errors.sh+1 -10 replies
2/6t1404: remove "prefix" argument to test_update_rejectedt/t1404-update-ref-errors.sh+13 -140 replies
3/6t1404: document function test_update_rejectedt/t1404-update-ref-errors.sh+10 -00 replies
4/6t1404: add more tests of update-ref error handlingt/t1404-update-ref-errors.sh+219 -20 replies
5/6lock_ref_for_update(): make error handling more uniformrefs/files-backend.c t/t1404-update-ref-errors.sh+52 -393 replies
6/6lock_ref_for_update(): avoid a symref resolutionrefs/files-backend.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/6] Improve test coverage of update-ref error messages

This is v2 of the patch series. Thanks to Johannes Sixt and Junio for their comments about v1 [1].

Changes since v1:

* In t1404, don't use non-portable local: change function test_update_rejected to refer to the global $prefix variable rather than taking it as a parameter.

* Because that code change has become more involved, split off the addition of documentation for the function into a separate patch.

These patches are also available from my GitHub account [2] as branch update-ref-errors.

Michael

[1] http://thread.gmane.org/gmane.comp.version-control.git/296626
[2] https://github.com/mhagger/git

Michael Haggerty (6):
t1404: rename file to t1404-update-ref-errors.sh
t1404: remove "prefix" argument to test_update_rejected
t1404: document function test_update_rejected
t1404: add more tests of update-ref error handling lock_ref_for_update(): make error handling more uniform lock_ref_for_update(): avoid a symref resolution

 refs/files-backend.c               |  77 ++++---
 t/t1404-update-ref-df-conflicts.sh | 181 -----------------
 t/t1404-update-ref-errors.sh       | 407 +++++++++++++++++++++++++++++++++++++
 3 files changed, 452 insertions(+), 213 deletions(-)
 delete mode 100755 t/t1404-update-ref-df-conflicts.sh
 create mode 100755 t/t1404-update-ref-errors.sh
Signature · 1 line
2.8.1