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 19, 2012, 22:43 UTC
Message-ID
<50316C07.30907@debian.org>
In-Reply-To
<20120810195133.GA16423@dcvr.yhbt.net>
Eric Wong wrote:
Hi,
Show 8 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote:
>> I should have asked this yesterday, but do you mean you want to have
>> your "maint" in the upcoming 1.7.12?  This does look like a useful
>> thing to do, but does not seem like a regression fix to me.
> 
> Yeah, I wasn't sure what to name it since my master is still carrying
> Michael's larger SVN 1.7 changes.   Perhaps I should've named my "maint"
> "for-git-master" in this case...

While working on my next patch, I've accidentally discovered that bash gives the following errors in the test file introduced in my commit :

./t9164-git-svn-dcommit-concrrent.sh: line 65: $hook: ambiguous redirect ./t9164-git-svn-dcommit-concrrent.sh: line 66: $hook: ambiguous redirect

(The test succeeds, even though assignments of the PATH and svnconf variables is missing; is seems svn treats an empty value of --config-dir as the current dir.)

Sorry about not noticing this before, dash is used as default /bin/sh on my system. A simple patch for this issue is included below.

There is also a typo in the test file name: `concrrent' instead of `concurrent', but it most probably doesn't make any sense to make a patch for it.

>8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8
Subject: [PATCH] Add missing quotes in test t9164
This fixes `ambiguous redirect' error given by bash.
---
 t/t9164-git-svn-dcommit-concrrent.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t9164-git-svn-dcommit-concrrent.sh
b/t/t9164-git-svn-dcommit-concrrent.sh
index aac2dda..676ef00 100755
--- a/t/t9164-git-svn-dcommit-concrrent.sh
+++ b/t/t9164-git-svn-dcommit-concrrent.sh
@@ -62,8 +62,8 @@ EOF1
        if [ "$hook_type" = "pre-commit" ]; then
                echo "echo 'commit disallowed' >&2; exit 1" >> "$hook"
        else
-               echo "PATH=\"$PATH\"; export PATH" >> $hook
-               echo "svnconf=\"$svnconf\"" >> $hook
+               echo "PATH=\"$PATH\"; export PATH" >> "$hook"
+               echo "svnconf=\"$svnconf\"" >> "$hook"
                cat >> "$hook" <<- 'EOF2'
                        cd work-auto-commits.svn
                        svn up --config-dir "$svnconf"
--
1.7.10.4


>8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8--->8




Regards,
robert
Previous: Eric WongNext: Junio C Hamano
Message 8 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.