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

Re: [PATCH 1/2] git-p4: Test changelists touching two branches

From
Vitor Antunes <vitor.hda@gmail.com>
Date
May 25, 2012, 08:32 UTC
Message-ID
<CAOpHH-U5dRaMsMPn3X6KujSb=pnw+voaOLaEntGhi+4x1uboGA@mail.gmail.com>
In-Reply-To
<7vmx4xunzr.fsf@alter.siamese.dyndns.org>
On Fri, May 25, 2012 at 1:02 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 19 quoted lines
> Vitor Antunes <vitor.hda@gmail.com> writes:
>
>> What about the parentheses in the next line, is it necessary? Or can I
>> simply remove that pair of parentheses and unindent the code in
>> between?
>>
>>> ...
>>>> +     (
>>>> +             cd "$cli" &&
>>>> +             p4 integrate //depot/branch3/file3 //depot/branch4/file3 &&
>>>> +             p4 delete //depot/branch3/file3 &&
>>>> +             p4 submit -d "Move branch3/file3 to branch4/file3"
>>>> +     )
>>>> +'
>
> If you mean this part, the parentheses to throw you into a subprocess are
> required.  Otherwise, a failure in any of these three p4 commands will
> leave you in $cli directory, causing the next test to start in a directory
> that it does not expect.
That makes sense and is quite obvious now that I _see_ it.
Thanks for your help Junio.
Vitor
Previous: Junio C HamanoNext: Vitor Antunes
Message 6 of 8 in “git-p4: New test cases for branch detection”
  1. 0/2 git-p4: New test cases for branch detectionVitor Antunes, May 22, 2012
  2. 1/2 git-p4: Test changelists touching two branchesVitor Antunes, May 22, 2012
  3. Pete WyckoffMay 24, 2012
  4. Vitor AntunesMay 24, 2012
  5. Junio C HamanoMay 25, 2012
  6. Vitor AntunesMay 25, 2012
  7. 2/2 git-p4: Verify detection of "empty" branch creationVitor Antunes, May 22, 2012
  8. Pete WyckoffMay 24, 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.