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

Re: [PATCH 0/2] git-p4: fix for handling of multiple depot paths

From
Luke Diamand <luke@diamand.org>
Date
Dec 16, 2015, 07:51 UTC
Message-ID
<5671180B.9010008@diamand.org>
In-Reply-To
<20151216003834.GG48528@hocevar.net>
On 16/12/15 00:38, Sam Hocevar wrote:
Show 7 quoted lines
> I'm actually surprised that the patch changes the order at all,
> since all it does is affect the decision (on a yes/no basis) to
> include a given file into a changelist. I'm going to have a look at
> that specific unit test, but of course as a user I'd prefer if the
> default behaviour could remain the same, unless it was actually a
> bug.
>
We ask for changes in
   //depot/sub1/...@1,6
   //depot/sub2/...@1,6'
which gives us [4, 6, 3, 5].

The old code used to sort this list but this change removes the sort. Maybe putting the sort back would fix it?

> I'm not sure if my opinion as an outsider is of use, but since the
> perforce change number is monotonically increasing, my expectation as
> a user would be for them to be applied in order by the perforce
> change number.

In answer to James' question, the test checks that the most recent change wins (i.e. applied in order).

Luke
Previous: Sam Hocevar
Message 11 of 11 in “git-p4: fix for handling of multiple depot paths”
  1. 0/2 git-p4: fix for handling of multiple depot pathsLuke Diamand, Dec 13, 2015
  2. 1/2 git-p4: failing test case for skipping changes with multiple depotsLuke Diamand, Dec 13, 2015
  3. 2/2 git-p4: fix handling of multiple depot pathsLuke Diamand, Dec 13, 2015
  4. Luke DiamandDec 13, 2015
  5. Junio C HamanoDec 14, 2015
  6. Luke DiamandDec 14, 2015
  7. Junio C HamanoDec 14, 2015
  8. Luke DiamandDec 14, 2015
  9. James FarwellDec 15, 2015
  10. Sam HocevarDec 16, 2015
  11. Luke DiamandDec 16, 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.