<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-p4.py, branch v2.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-11-03T23:32:32Z</updated>
<entry>
<title>Merge branch 'ls/p4-translation-failure' into maint</title>
<updated>2015-11-03T23:32:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-11-03T23:32:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7bdbd6f92bbab2a030ee8bf7957af25327545e5'/>
<id>urn:sha1:c7bdbd6f92bbab2a030ee8bf7957af25327545e5</id>
<content type='text'>
Work around "git p4" failing when the P4 depot records the contents
in UTF-16 without UTF-16 BOM.

* ls/p4-translation-failure:
  git-p4: handle "Translation of file content failed"
  git-p4: add test case for "Translation of file content failed" error
</content>
</entry>
<entry>
<title>Merge branch 'ld/p4-import-labels' into maint</title>
<updated>2015-11-03T23:32:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-11-03T23:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04bba3a12b27f592d6d0b8f8af28b2697e55532d'/>
<id>urn:sha1:04bba3a12b27f592d6d0b8f8af28b2697e55532d</id>
<content type='text'>
Correct "git p4 --detect-labels" so that it does not fail to create
a tag that points at a commit that is also being imported.

* ld/p4-import-labels:
  git-p4: fix P4 label import for unprocessed commits
  git-p4: do not terminate creating tag for unknown commit
  git-p4: failing test for ignoring invalid p4 labels
</content>
</entry>
<entry>
<title>git-p4: handle "Translation of file content failed"</title>
<updated>2015-09-22T19:15:17Z</updated>
<author>
<name>Lars Schneider</name>
<email>larsxschneider@gmail.com</email>
</author>
<published>2015-09-21T10:01:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f5f3907117021961545e42097829001b58288db'/>
<id>urn:sha1:1f5f3907117021961545e42097829001b58288db</id>
<content type='text'>
A P4 repository can get into a state where it contains a file with
type UTF-16 that does not contain a valid UTF-16 BOM. If git-p4
attempts to retrieve the file then the process crashes with a
"Translation of file content failed" error.

More info here: http://answers.perforce.com/articles/KB/3117

Fix this by detecting this error and retrieving the file as binary
instead. The result in Git is the same.

Known issue: This works only if git-p4 is executed in verbose mode.
In normal mode no exceptions are thrown and git-p4 just exits.

Signed-off-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: fix P4 label import for unprocessed commits</title>
<updated>2015-08-28T19:02:58Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-08-27T07:18:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b43702ac56e602d5163ef662fb9caf382da90b94'/>
<id>urn:sha1:b43702ac56e602d5163ef662fb9caf382da90b94</id>
<content type='text'>
With --detect-labels enabled, git-p4 will try to create tags
using git fast-import by writing a "tag" clause to the
fast-import stream.

If the commit that the tag references has not yet actually
been processed by fast-import, then the tag can't be created
and git-p4 fails to import the P4 label.

Teach git-p4 to use fast-import "marks" when creating tags
which reference commits created during the current run of the
program.

Commits created before the current run are still referenced
in the old way using a normal git commit.

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>git-p4: do not terminate creating tag for unknown commit</title>
<updated>2015-08-28T19:02:56Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-08-27T07:18:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ab1cfe505d43215a61dc5012632dde66fe109db'/>
<id>urn:sha1:9ab1cfe505d43215a61dc5012632dde66fe109db</id>
<content type='text'>
If p4 reports a tag for a commit that git-p4 does not know
about (e.g. because it references a P4 changelist that was
imported prior to the point at which the repo was cloned into
git), make sure that the error is correctly caught and handled.
rather than just crashing.

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>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>
</feed>
