git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC 2/2] git-p4: Add complex test case for branch import

From
Vitor Antunes <vitor.hda@gmail.com>
Date
Aug 24, 2011, 21:23 UTC
Message-ID
<CAOpHH-Uv=zK9JoL+ooA9eEHg2XyX=k92hL1QZ_WNZwgvpnNj0g@mail.gmail.com>
In-Reply-To
<CAOpHH-V9nm2NRD47gdUj6sLJSTypjABjE-JGCkADE=fxh2nSWg@mail.gmail.com>
On Wed, Aug 24, 2011 at 11:46 AM, Vitor Antunes <vitor.hda@gmail.com> wrote:
Show 6 quoted lines
> 1. When doing a "checkpoint" it would make sense to have some kind of
>   feedback loop to know when fast-import completes it. In fact, I've
>   just looked at fast-import man page and the "progress" command seems
>   to do exactly that! Myabe we should crease a specific function for
>   "checkpoint" that would call also "progress" instead of calling
>   os.sleep().
    # Force a checkpoint in fast-import and wait for it to finish
    def checkpoint(self):
        self.gitStream.write("checkpoint\n\n")
        self.gitStream.write("progress checkpoint\n\n")
        out = self.gitOutput.readline()
        if self.verbose:
            print "checkpoint finished: " + out
This seems to work! :)
Show 7 quoted lines
> 2. In order to avoid needing to use "--force" it would be nice to have
>   some form of "drop" command in fast-import that would allows us to
>   actively drop an older commit after calling "reset" (this could even
>   be an option of "reset"). This way fast-import would not find
>   dangling commits in the end of the import.  Maybe there's already
>   some sort of command to achieve this in fast-import...? We could
>   probably ask to one of its maintainers.
Just missing point 2 now.
-- 
Vitor Antunes
Previous: Vitor AntunesNext: Pete Wyckoff
Message 10 of 11 in “Search for parent commit in new branch import”
  1. 0/2 Search for parent commit in new branch importVitor Antunes, Aug 19, 2011
  2. 1/2 git-p4: Search for parent commit on branch creationVitor Antunes, Aug 19, 2011
  3. 2/2 git-p4: Add complex test case for branch importVitor Antunes, Aug 19, 2011
  4. Pete WyckoffAug 20, 2011
  5. Vitor AntunesAug 22, 2011
  6. Pete WyckoffAug 23, 2011
  7. Vitor AntunesAug 23, 2011
  8. Pete WyckoffAug 23, 2011
  9. Vitor AntunesAug 24, 2011
  10. Vitor AntunesAug 24, 2011
  11. Pete WyckoffAug 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.