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

Re: git-p4: planned view wildcard support

From
MMMatthew Mendell <matthew.mendell@gmail.com>
Date
May 7, 2012, 15:19 UTC
Message-ID
<CAF0RQx_0EYGiTd36WMtjeBwJL1cxsGTe44=P+btEfWn+5Hq5yg@mail.gmail.com>
In-Reply-To
<20120507104443.GA20372@padd.com>
On Mon, May 7, 2012 at 3:44 AM, Pete Wyckoff <pw@padd.com> wrote:
Show 23 quoted lines
> matthew.mendell@gmail.com wrote on Sun, 06 May 2012 16:46 -0700:
>> Is there any plan for the git-p4.py script to support the "*" wildcard
>> in a p4 client?
>>
>> The specific test that exposes this unsupported feature:
>> ./t9809-git-p4-client-view.sh
>> ...
>> ok 4 - unsupported view wildcard *
>
> It hasn't been on anybody's priority list so far that I know, but
> this would be not too hard to implement in theory.
>
> The code changes would need to alter just one class.  In
> View.Path, functions Path.find_wildcards, match_wildcards and
> fill_in_wildcards, if you're interested in giving it a try.
>
> Can you constrain your use of "*" a bit?  What makes these
> wildcards difficult is all the edge cases.  For instance, is
> there ever more than one "*"?  Is it combined with "..."?  Are
> there multiple lines in the client spec with wildcards?  Some
> abstracted examples would be interesting.
>
>                -- Pete
Hi Pete,

Yeah, I have been perusing the code and would like to give it a shot. Is it ok to initially add partial support for the easy cases? My usage of "*" is straight forward:

//depot/project/* //my_clientspec/depot/project/*

Thanks, -Matt

Previous: Pete WyckoffNext: Pete Wyckoff
Message 3 of 4 in “git-p4: planned view wildcard support”
  1. Matthew MendellMay 6, 2012
  2. Pete WyckoffMay 7, 2012
  3. Matthew MendellMay 7, 2012
  4. Pete WyckoffMay 7, 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.