<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-p4.py, branch v2.3.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-06-13T18:04:04Z</updated>
<entry>
<title>git-p4: fix submit in non --prepare-p4-only mode</title>
<updated>2014-06-13T18:04:04Z</updated>
<author>
<name>Maxime Coste</name>
<email>frrrwww@gmail.com</email>
</author>
<published>2014-06-11T13:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2a892ee05ae5d9675881beb6dd5f90ca4677b0d'/>
<id>urn:sha1:e2a892ee05ae5d9675881beb6dd5f90ca4677b0d</id>
<content type='text'>
b4073bb3 (git-p4: Do not include diff in spec file when just
preparing p4, 2014-05-24) broke git p4 submit, here is a proper
fix, including proper handling for windows end of lines.

Signed-off-by: Maxime Coste &lt;frrrwww@gmail.com&gt;
Acked-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: Do not include diff in spec file when just preparing p4</title>
<updated>2014-05-27T19:35:15Z</updated>
<author>
<name>Maxime Coste</name>
<email>frrrwww@gmail.com</email>
</author>
<published>2014-05-24T17:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4073bb387ef303c9ac3c044f46d6a8ae6e190f0'/>
<id>urn:sha1:b4073bb387ef303c9ac3c044f46d6a8ae6e190f0</id>
<content type='text'>
The diff information render the spec file unusable as is by p4,
do not include it when run with --prepare-p4-only so that the
given file can be directly passed to p4.

With --prepare-p4-only, git-p4 already tells the user it can use
p4 submit with the generated spec file. This fails because of the
diff being present in the file. Not including the diff fixes that.

Without --prepare-p4-only, keeping the diff makes sense for a
quick review of the patch before submitting it. And does not cause
problems with p4 as we remove it programmatically.

Signed-off-by: Maxime Coste &lt;frrrwww@gmail.com&gt;
Acked-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cl/p4-use-diff-tree'</title>
<updated>2014-05-07T21:39:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-07T21:39:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ccfa587787aa4f3f0990ae45af18b84b55e2c74e'/>
<id>urn:sha1:ccfa587787aa4f3f0990ae45af18b84b55e2c74e</id>
<content type='text'>
Fixes a regression in 1.9.0 with an obviously correct single-liner.

* cl/p4-use-diff-tree:
  git-p4: format-patch to diff-tree change breaks binary patches
</content>
</entry>
<entry>
<title>git-p4: format-patch to diff-tree change breaks binary patches</title>
<updated>2014-05-07T17:27:22Z</updated>
<author>
<name>Tolga Ceylan</name>
<email>tolga.ceylan@gmail.com</email>
</author>
<published>2014-05-07T05:48:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=749b668c7db563609de3de7595504f2dca8eef7d'/>
<id>urn:sha1:749b668c7db563609de3de7595504f2dca8eef7d</id>
<content type='text'>
When applying binary patches a full index is required. format-patch
already handles this, but diff-tree needs '--full-index' argument
to always output full index. When git-p4 runs git-apply to test
the patch, git-apply rejects the patch due to abbreviated blob
object names. This is the error message git-apply emits in this
case:

    error: cannot apply binary patch to '&lt;filename&gt;' without full index line
    error: &lt;filename&gt;: patch does not apply

Signed-off-by: Tolga Ceylan &lt;tolga.ceylan@gmail.com&gt;
Acked-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: explicitly specify that HEAD is a revision</title>
<updated>2014-04-07T22:37:12Z</updated>
<author>
<name>Vlad Dogaru</name>
<email>vdogaru@ixiacom.com</email>
</author>
<published>2014-04-07T13:19:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e49d95ece7e023106349875df05fed0601920a5'/>
<id>urn:sha1:4e49d95ece7e023106349875df05fed0601920a5</id>
<content type='text'>
'git p4 rebase' fails with the following message if there is a file
named HEAD in the current directory:

	fatal: ambiguous argument 'HEAD': both revision and filename
	Use '--' to separate paths from revisions, like this:
	'git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]'

Take the suggestion above and explicitly state that HEAD should be
treated as a revision.

Signed-off-by: Vlad Dogaru &lt;vdogaru@ixiacom.com&gt;
Acked-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: fix an error message when "p4 where" fails</title>
<updated>2014-01-22T16:06:19Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2014-01-21T23:16:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2000544330d5b047074d8043042f7cc66157f8f5'/>
<id>urn:sha1:2000544330d5b047074d8043042f7cc66157f8f5</id>
<content type='text'>
When "p4 where" fails, for whatever reason, the error message tries to
show an undefined variable.  This minor bug applies only when using a
client spec, and was introduced recently in 9d57c4a (git p4: implement
view spec wildcards with "p4 where", 2013-08-30).

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: handle files with wildcards when doing RCS scrubbing</title>
<updated>2014-01-22T16:06:19Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2014-01-21T23:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=79467e61aa30342d7fb17232624ec5ade4cbbe6a'/>
<id>urn:sha1:79467e61aa30342d7fb17232624ec5ade4cbbe6a</id>
<content type='text'>
Commit 9d7d446 (git p4: submit files with wildcards, 2012-04-29)
fixed problems with handling files that had p4 wildcard
characters, like "@" and "*".  But it missed one case, that of
RCS keyword scrubbing, which uses "p4 fstat" to extract type
information.  Fix it by calling wildcard_encode() on the raw
filename.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4 test: do not pollute /tmp</title>
<updated>2014-01-22T16:06:19Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2014-01-21T23:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0cf1b72a38e6190a7e614bbc53fbb81704a3d4af'/>
<id>urn:sha1:0cf1b72a38e6190a7e614bbc53fbb81704a3d4af</id>
<content type='text'>
Generating the submit template for p4 uses tempfile.mkstemp(),
which by default puts files in /tmp.  For a test that fails,
possibly on purpose, this is not cleaned up.  Run with TMPDIR
pointing into the trash directory so the temp files go away
with the test results.

To do this required some other minor changes.  First, the editor
is launched using system(editor + " " + template_file), using
shell expansion to build the command string.  This doesn't work
if editor has a space in it.  And is generally unwise as it's
easy to fool the shell into doing extra work.  Exec the args
directly, without shell expansion.

Second, without shell expansion, the trick of "P4EDITOR=:" used
in the tests doesn't work.  Use a real command, true, as the
non-interactive editor for testing.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: work around p4 bug that causes empty symlinks</title>
<updated>2014-01-22T16:05:04Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2014-01-21T23:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40f846c35c504a1c2303be5dcca6db069a17b856'/>
<id>urn:sha1:40f846c35c504a1c2303be5dcca6db069a17b856</id>
<content type='text'>
Damien Gérard highlights an interesting problem.  Some p4
repositories end up with symlinks that have an empty target.  It
is not possible to create this with current p4, but they do
indeed exist.

The effect in git p4 is that "p4 print" on the symlink returns an
empty string, confusing the curret symlink-handling code.

Such broken repositories cause problems in p4 as well, even with
no git involved.  In p4, syncing to a change that includes a
bogus symlink causes errors:

    //depot/empty-symlink - updating /home/me/p4/empty-symlink
    rename: /home/me/p4/empty-symlink: No such file or directory

and leaves no symlink.

In git, replicate the p4 behavior by ignoring these bad symlinks.
If, in a later p4 revision, the symlink happens to point to
something non-null, the symlink will be replaced properly.

Add a big test for all this too.

This happens to be a regression introduced by 1292df1 (git-p4:
Fix occasional truncation of symlink contents., 2013-08-08) and
appeared first in 1.8.5.  But it shows up only in p4 repositories
of dubious character, so can wait for a proper release.

Tested-by: Damien Gérard &lt;damien@iwi.me&gt;
Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cl/p4-use-diff-tree'</title>
<updated>2013-12-12T22:18:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-12T22:18:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=feb28ad0a87198b8ac0f2060dcfc8698bb1a67cf'/>
<id>urn:sha1:feb28ad0a87198b8ac0f2060dcfc8698bb1a67cf</id>
<content type='text'>
* cl/p4-use-diff-tree:
  git p4: Use git diff-tree instead of format-patch
</content>
</entry>
</feed>
