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

Re: [PATCH/RFC] git svn: handle errors and concurrent commits in dcommit

From
Robert Luberda <robert@debian.org>
Date
Aug 8, 2012, 05:32 UTC
Message-ID
<5021F9D4.1010700@debian.org>
In-Reply-To
<20120802104421.GA13271@dcvr.yhbt.net>
Eric Wong wrote:
Hi,
Show 11 quoted lines
> 
> A few minor comments inline...
> Please ensure all error messages and code are readable in
> 80-column terminals.
> Also, keep opening "{" on the same line as the if/unless.
> Backticks don't nest properly, nowadays, we prefer:
> 	N=$(expr $N + 1)
>> +		cp auto_updated_file auto_updated_file_saved
> Need "&&" to check for failure on cp
>> +		sed -i 1d auto_updated_file && git commit -am "commit change $N.3" &&
> I don't believe "sed -i" is portable enough for this test.

Many thanks for the comments! I've fixed all of the above and will send updated patch in next e-mail. Please let me know if you have any further comments.

Show 9 quoted lines
>> +		echo "PATH=\"$PATH\"; export PATH" >> $hook
>> +		echo "svnconf=\"$svnconf\"" >> $hook
>> +		cat >> "$hook" <<- 'EOF2'
>> +			cd work-auto-commits.svn
>> +			svn up --config-dir "$svnconf"
> 
> That doesn't seem to interact well with users who depend on
> svn_cmd pointing to something non-standard.  Not sure
> what to do about it, though....

I have no idea how to change it either. I've tried to source the lib-git-svn.sh file inside the hook, but it sources test-lib.sh, and the latter script doesn't work well if it is sourced by non-test script. Anyway I the part of my original patch unchanged.

Regards, robert

Previous: Eric WongNext: Robert Luberda
Message 3 of 14 in “git svn: handle errors and concurrent commits in dcommit”
  1. git svn: handle errors and concurrent commits in dcommitRobert Luberda, Aug 1, 2012
  2. Eric WongAug 2, 2012
  3. Robert LuberdaAug 8, 2012
  4. git svn: handle errors and concurrent commits in dcommitRobert Luberda, Aug 8, 2012
  5. Eric WongAug 8, 2012
  6. Junio C HamanoAug 9, 2012
  7. Eric WongAug 10, 2012
  8. Robert LuberdaAug 19, 2012
  9. Junio C HamanoAug 20, 2012
  10. Eric WongAug 21, 2012
  11. Robert LuberdaAug 24, 2012
  12. Eric WongAug 26, 2012
  13. t9164: More style fixesRobert Luberda, Aug 31, 2012
  14. Junio C HamanoAug 31, 2012

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.