]> git.ipfire.org Git - thirdparty/git.git/commit - git-p4.py
git p4: implement view spec wildcards with "p4 where"
authorKazuki Saitoh <ksaitoh560@gmail.com>
Fri, 30 Aug 2013 10:02:06 +0000 (19:02 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2013 21:19:20 +0000 (14:19 -0700)
commit9d57c4a6977997aa8150b333fbe2b88988e392d3
tree801c19c96ada2689bd2e76a2b837d0c0adfe20d0
parent799460316b87c2b0f26c3c0fcd99ae153f9f7358
git p4: implement view spec wildcards with "p4 where"

"git p4" does not support many of the view wildcards, such as * and
%%n.  It only knows the common ... mapping, and exclusions.

Redo the entire wildcard code around the idea of directly querying
the p4 server for the mapping.  For each commit, invoke "p4 where"
with committed file paths as args and use the client mapping to
decide where the file goes in git.

This simplifies a lot of code, and adds support for all wildcards
supported by p4.  Downside is that there is probably a 20%-ish
slowdown with this approach.

[pw: redo code and tests]

Signed-off-by: Kazuki Saitoh <ksaitoh560@gmail.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py