<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-p4.py, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-08-28T17:33:16Z</updated>
<entry>
<title>git-p4: honor core.ignorecase when using P4 client specs</title>
<updated>2015-08-28T17:33:16Z</updated>
<author>
<name>Lars Schneider</name>
<email>larsxschneider@gmail.com</email>
</author>
<published>2015-08-28T12:00:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0a50d873c575876c6a5c185ac1c64b9a33e2fb3'/>
<id>urn:sha1:a0a50d873c575876c6a5c185ac1c64b9a33e2fb3</id>
<content type='text'>
Perforce depot may record paths in mixed cases, e.g. "p4 files" may
show that there are these two paths:

   //depot/Path/to/file1
   //depot/pATH/to/file2

and with "p4" or "p4v", these end up in the same directory, e.g.

   //depot/Path/to/file1
   //depot/Path/to/file2

which is the desired outcome on case insensitive systems.

If git-p4 is used with client spec "//depot/Path/...", however, then
all files not matching the case in the client spec are ignored (in
the example above "//depot/pATH/to/file2").

Fix this by using the path case that appears first in lexicographical
order when core.ignorecase is set to true. This behavior is consistent
with "p4" and "p4v".

Signed-off-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Acked-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ld/p4-changes-block-size'</title>
<updated>2015-06-24T19:21:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-24T19:21:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b79bbed185403abfe9ae1b8fc14bb94ae3b1f8cb'/>
<id>urn:sha1:b79bbed185403abfe9ae1b8fc14bb94ae3b1f8cb</id>
<content type='text'>
More Perforce row number limit workaround for "git p4".

* ld/p4-changes-block-size:
  git-p4: fixing --changes-block-size handling
  git-p4: add tests for non-numeric revision range
  git-p4: test with limited p4 server results
  git-p4: additional testing of --changes-block-size
</content>
</entry>
<entry>
<title>Merge branch 'mt/p4-depotFile-at-version'</title>
<updated>2015-06-11T16:29:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-11T16:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f436d1374c7b8bd29118bd6344520dbaf83594b'/>
<id>urn:sha1:8f436d1374c7b8bd29118bd6344520dbaf83594b</id>
<content type='text'>
* mt/p4-depotFile-at-version:
  p4: retrieve the right revision of the file in UTF-16 codepath
</content>
</entry>
<entry>
<title>git-p4: fixing --changes-block-size handling</title>
<updated>2015-06-10T15:29:17Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-06-10T07:30:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1051ef00636357061d72bcf673da86054fb14a12'/>
<id>urn:sha1:1051ef00636357061d72bcf673da86054fb14a12</id>
<content type='text'>
The --changes-block-size handling was intended to help when
a user has a limited "maxscanrows" (see "p4 group"). It used
"p4 changes -m $maxchanges" to limit the number of results.

Unfortunately, it turns out that the "maxscanrows" and "maxresults"
limits are actually applied *before* the "-m maxchanges" parameter
is considered (experimentally).

Fix the block-size handling so that it gets blocks of changes
limited by revision number ($Start..$Start+$N, etc). This limits
the number of results early enough that both sets of tests pass.

Note that many other Perforce operations can fail for the same
reason (p4 print, p4 files, etc) and it's probably not possible
to workaround this. In the real world, this is probably not
usually a problem.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ld/p4-editor-multi-words'</title>
<updated>2015-06-05T19:17:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-05T19:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9fb0a798a74509ddc17f7ba7390abce5981c20de'/>
<id>urn:sha1:9fb0a798a74509ddc17f7ba7390abce5981c20de</id>
<content type='text'>
Unlike "$EDITOR" and "$GIT_EDITOR" that can hold the path to the
command and initial options (e.g. "/path/to/emacs -nw"), 'git p4'
did not let the shell interpolate the contents of the environment
variable that name the editor "$P4EDITOR" (and "$EDITOR", too).
Make it in line with the rest of Git, as well as with Perforce.

* ld/p4-editor-multi-words:
  git-p4: tests: use test-chmtime in place of touch
  git-p4: fix handling of multi-word P4EDITOR
  git-p4: add failing test for P4EDITOR handling
</content>
</entry>
<entry>
<title>p4: retrieve the right revision of the file in UTF-16 codepath</title>
<updated>2015-05-27T23:23:02Z</updated>
<author>
<name>Miguel Torroja</name>
<email>miguel.torroja@gmail.com</email>
</author>
<published>2015-05-27T23:14:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f5f53f141087e8ba663d650399e8683c1fc6700b'/>
<id>urn:sha1:f5f53f141087e8ba663d650399e8683c1fc6700b</id>
<content type='text'>
Fixing bug with UTF-16 files when they are retrieved by git-p4.  It
was always getting the tip version of the file and the history of
the file was lost.

Signed-off-by: Miguel Torroja &lt;miguel.torroja@gmail.com&gt;
Acked-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: fix handling of multi-word P4EDITOR</title>
<updated>2015-05-24T18:50:12Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-05-19T22:23:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2dade7a7b20902a145d1c130830bcb4d4b288a32'/>
<id>urn:sha1:2dade7a7b20902a145d1c130830bcb4d4b288a32</id>
<content type='text'>
This teaches git-p4 to pass the P4EDITOR variable to the
shell for expansion, so that any command-line arguments are
correctly handled. Without this, git-p4 can only launch the
editor if P4EDITOR is solely the path to the binary, without
any arguments.

This also adjusts t9805, which relied on the previous behaviour.

Suggested-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'va/p4-client-path'</title>
<updated>2015-05-11T21:23:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-11T21:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04959836795da4c82bc9b12bebdfb294ea12943f'/>
<id>urn:sha1:04959836795da4c82bc9b12bebdfb294ea12943f</id>
<content type='text'>
git p4 attempts to better handle branches in Perforce.

* va/p4-client-path:
  git-p4: improve client path detection when branches are used
  t9801: check git-p4's branch detection with client spec enabled
</content>
</entry>
<entry>
<title>Merge branch 'ls/p4-changes-block-size'</title>
<updated>2015-05-11T21:23:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-11T21:23:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=120c585b229096595b4e54801a538cbef16c8240'/>
<id>urn:sha1:120c585b229096595b4e54801a538cbef16c8240</id>
<content type='text'>
"git p4" learned "--changes-block-size &lt;n&gt;" to read the changes in
chunks from Perforce, instead of making one call to "p4 changes"
that may trigger "too many rows scanned" error from Perforce.

* ls/p4-changes-block-size:
  git-p4: use -m when running p4 changes
</content>
</entry>
<entry>
<title>git-p4: improve client path detection when branches are used</title>
<updated>2015-04-23T17:17:02Z</updated>
<author>
<name>Vitor Antunes</name>
<email>vitor.hda@gmail.com</email>
</author>
<published>2015-04-21T22:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cd88410618d9068f17ba5de0f9959e4ec4f42789'/>
<id>urn:sha1:cd88410618d9068f17ba5de0f9959e4ec4f42789</id>
<content type='text'>
Perforce allows client side file/directory remapping through
the use of the client view definition that is part of the
user's client spec.

To support this functionality while branch detection is
enabled it is important to determine the branch location in
the workspace such that the correct files are patched before
Perforce submission. Perforce provides a command that
facilitates this process: p4 where.

This patch does two things to fix improve file location
detection when git-p4 has branch detection and use of client
spec enabled:

 1. Enable usage of "p4 where" when Perforce branches exist
    in the git repository, even when client specification is
    used. This makes use of the already existing function
    p4Where.

 2. Allow identifying partial matches of the branch's depot
    path while processing the output of "p4 where". For
    robustness, paths will only match if ending in "/...".

Signed-off-by: Vitor Antunes &lt;vitor.hda@gmail.com&gt;
Acked-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
