Skip to content

Search for parent commit in new branch import

Vitor Antunes git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2git-p4: Search for parent commit on branch creationcontrib/fast-import/git-p4+20 -20 replies
2/2git-p4: Add complex test case for branch importt/t9800-git-p4.sh+77 -08 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH/RFC 0/2] Search for parent commit in new branch import

This is mostly a RFC/RFH (Request For Help;) regarding the code I used on this patch. I think that this is not a clean solution, but it shows the algorithm I want to implement. The worst points are:

1. Relies on a sleep() to avoid a race condition. I'm using 0.1s, but it still fails sometimes, so it needs to be bigger.
2. Requires the --force option of fast-import.

Test case is included.

Thanks in advance to everyone who contributes.

Vitor Antunes (2):
git-p4: Search for parent commit on branch creation
git-p4: Add complex test case for branch import

 contrib/fast-import/git-p4 |   22 +++++++++++-
 t/t9800-git-p4.sh          |   77 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.5.4