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

Re: [PATCH 1/2] git-p4: support multiple depot paths in p4 submit

From
Luke Diamand <luke@diamand.org>
Date
Dec 8, 2015, 12:32 UTC
Message-ID
<CAE5ih78K5zzJBK3y-MMf2tWBoPOtkPJzYRZWxH02qBE=OnUhVA@mail.gmail.com>
In-Reply-To
<20151208114106.GB48528@hocevar.net>
On 8 December 2015 at 11:41, Sam Hocevar <sam@hocevar.net> wrote:
Show 24 quoted lines
> On Tue, Dec 08, 2015, Lars Schneider wrote:
>
>> >   Would a refactor of lib-git-p4.sh (and probably all git-p4 tests) to
>> > support multiple depots be acceptable and/or welcome? I prefer to ask
>> > before I dig into the task.
>>
>> Can you outline your idea a bit? Are you aware of the following way to define client specs: [1] ? Would that help?
>
>    That's the idea, but the bug occurs when the client view looks like this:
>
>      //depot/... //client/dir1/...
>      //depot2/... //client/dir2/...
>
>    And is then cloned with (it is not legal in Perforce to specify //...
> directly to grab both depots at once):
>
>      git p4 clone --use-client-spec //depot/... //depot2/...
>
>    Then when a file is modified in dir2/, git p4 submit does not elect it
> for the changelist. A file in dir1/ will work fine.
>
>    Unfortunately the current test suite assumes everything is under
> //depot/ so in order to write a test for this situation there are a few
> things to change in lib-git-p4.sh.

I think the existing structure ought to mostly work, but it might need a bit of tweaking.

You would need to create a new depot, but you can do that in your test script.

And you would need a client spec that pointed at this depot, but again you can do that in your script with the client_view shell function.

I've not tried it myself though, so maybe it's harder than that.
Luke
>
> Regards,
> --
> Sam.
Previous: Sam Hocevar
Message 6 of 6 in “git-p4: support multiple depot paths in p4 submit”
  1. 1/2 git-p4: support multiple depot paths in p4 submitSam Hocevar, Dec 5, 2015
  2. Lars SchneiderDec 6, 2015
  3. Sam HocevarDec 7, 2015
  4. Lars SchneiderDec 8, 2015
  5. Sam HocevarDec 8, 2015
  6. Luke DiamandDec 8, 2015

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.