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

Re: [PATCH v2] git-p4: fix faulty paths for case insensitive systems

From
Torsten Bögershausen <tboegi@web.de>
Date
Aug 20, 2015, 19:02 UTC
Message-ID
<55D62445.5030402@web.de>
In-Reply-To
<917E3751-4BC8-4034-9101-30C77426D81C@gmail.com>
On 2015-08-20 09.16, Lars Schneider wrote:
Show 18 quoted lines
> Thanks for your feedback! See my answers below.
>> Identify path names that are different with respect to case sensitivity.
> Agreed!
> 
>>
>>
>>> If there are any then run `p4 dirs` to build up a dictionary
>>> containing the "correct" cases for each path. It looks like P4
>>> interprets "correct" here as the existing path of the first file in a
>>> directory. The path dictionary is used later on to fix all paths.
>>>
>>> This is only applied if the parameter "--fix-paths" is passed to the
>>> git-p4 clone command.
>> The "fix-path" doesn't tell a user what exactly is fixed.
>> Something like "fix-path-case" may be more self-explaining,
>> but I would simply use "--ignore-case", which is more in line
>> with Git. (But this is debatable)
> I agree but “—ignore-case” seems a bit broad to me. How about “—ignore-path-case”? Because it is really only about paths case, not filename case.
OK, better.
>>> -    def update_client_spec_path_cache(self, files):
>>> +    def update_client_spec_path_cache(self, files, fixPathCase = None):

If you want, you can change the name of the parameter into ignorePathCase, but I'm not sure...

> Can you try to rephrase your comment? I don’t get it. My “cd command” is already in parenthesis (== subshell), no?
I may have commented on the wrong TC :-(

This is the one: +test_expect_success 'Create a repo with path case variations' ' + client_view "//depot/... //client/..." && + cd "$cli" && + + mkdir -p One/two && + [snip] +'

which should be like this:
+test_expect_success 'Create a repo with path case variations' '
+ client_view "//depot/... //client/..." &&
+ (
+	cd "$cli" &&
+	mkdir -p One/two &&
+ 	[snip]
+ )
+'
Previous: Eric Sunshine
Message 9 of 9 in “git-p4: fix faulty paths for case insensitive systems”
  1. git-p4: fix faulty paths for case insensitive systemslarsxschneider@gmail.com, Aug 19, 2015
  2. git-p4: fix faulty paths for case insensitive systemslarsxschneider@gmail.com, Aug 19, 2015
  3. Torsten BögershausenAug 20, 2015
  4. Lars SchneiderAug 20, 2015
  5. Eric SunshineAug 20, 2015
  6. Junio C HamanoAug 20, 2015
  7. Lars SchneiderAug 21, 2015
  8. Eric SunshineAug 21, 2015
  9. Torsten BögershausenAug 20, 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.