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

Re: git-svn test suite failures due to Subversion race

From
EWEric Wong <normalperson@yhbt.net>
Date
Feb 13, 2007, 03:21 UTC
Message-ID
<20070213032137.GA28534@localdomain>
In-Reply-To
<45D1239C.4040706@gmail.com>
Michael Spang <mcspang@gmail.com> wrote:
Show 6 quoted lines
> I've prepared a somewhat cleaner patch that solves the problem without
> using sleep. It increases the modification time by one second
> immediately prior to each commit. I added calls everywhere I think the
> problem could potentially occur.
> 
> I've had no failures with the patch (without it, they are quite frequent).
Thanks for the patch.  Just one portability nit below, otherwise:
Acked-by: Eric Wong <normalperson@yhbt.net>
> +poke() {
> +	touch -r "$1" -d +1sec "$1"
> +}
I'm not sure that -d is portable.  However,
  perl -e '@x = stat($ARGV[0]); utime($x[8], $x[9] + 1, $ARGV[0])' "$1"
should work on any platform git-svn runs on.
-- 
Eric Wong
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “git-svn test suite failures due to Subversion race”
  1. Michael SpangFeb 12, 2007
  2. Eric WongFeb 12, 2007
  3. Michael SpangFeb 13, 2007
  4. Junio C HamanoFeb 13, 2007
  5. Eric WongFeb 13, 2007
  6. Junio C HamanoFeb 13, 2007
  7. Michael SpangFeb 14, 2007

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.