<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-p4.py, branch v2.21.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.21.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.21.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-02-05T22:26:10Z</updated>
<entry>
<title>Merge branch 'ld/git-p4-shelve-update-fix'</title>
<updated>2019-02-05T22:26:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-02-05T22:26:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40b8ba2c4458bd1ed6d32092712c07a4fc26e256'/>
<id>urn:sha1:40b8ba2c4458bd1ed6d32092712c07a4fc26e256</id>
<content type='text'>
"git p4" failed to update a shelved change when there were moved
files, which has been corrected.

* ld/git-p4-shelve-update-fix:
  git-p4: handle update of moved/copied files when updating a shelve
  git-p4: add failing test for shelved CL update involving move/copy
</content>
</entry>
<entry>
<title>git-p4: handle update of moved/copied files when updating a shelve</title>
<updated>2019-01-18T17:43:40Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2019-01-18T09:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7a10946ab9dd4692fc99d219f0cd4bc3d5e16d63'/>
<id>urn:sha1:7a10946ab9dd4692fc99d219f0cd4bc3d5e16d63</id>
<content type='text'>
Perforce requires a complete list of files being operated on. If
git is updating an existing shelved changelist, then any files
which are moved or copied were not being added to this list.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Acked-by: Andrey Mazo &lt;amazo@checkvideo.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: fix problem when p4 login is not necessary</title>
<updated>2019-01-07T22:23:22Z</updated>
<author>
<name>Peter Osterlund</name>
<email>peterosterlund2@gmail.com</email>
</author>
<published>2019-01-07T20:51:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d4990d56a8dd64667df9daa5eedb8134ccc4356f'/>
<id>urn:sha1:d4990d56a8dd64667df9daa5eedb8134ccc4356f</id>
<content type='text'>
In a perforce setup where login is not required, communication fails
because p4_check_access does not understand the response from the p4
client. Fixed by detecting and ignoring the "info" response.

Signed-off-by: Peter Osterlund &lt;peterosterlund2@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: fully support unshelving changelists</title>
<updated>2018-10-16T04:28:49Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-10-15T11:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=89143ac28a61578487af7324c653a9efa5e40034'/>
<id>urn:sha1:89143ac28a61578487af7324c653a9efa5e40034</id>
<content type='text'>
The previous git-p4 unshelve support would check for changes
in Perforce to the files being unshelved since the original
shelve, and would complain if any were found.

This was to ensure that the user wouldn't end up with both the
shelved change delta, and some deltas from other changes in their
git commit.

e.g. given fileA:
      the
      quick
      brown
      fox

  change1: s/the/The/   &lt;- p4 shelve this change
  change2: s/fox/Fox/   &lt;- p4 submit this change
  git p4 unshelve 1     &lt;- FAIL

This change teaches the P4Unshelve class to always create a parent
commit which matches the P4 tree (for the files being unshelved) at
the point prior to the P4 shelve being created (which is reported
in the p4 description for a shelved changelist).

That then means git-p4 can always create a git commit matching the
P4 shelve that was originally created, without any extra deltas.

The user might still need to use the --origin option though - there
is no way for git-p4 to work out the versions of all of the other
*unchanged* files in the shelve, since this information is not recorded
by Perforce.

Additionally this fixes handling of shelved 'move' operations.

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: unshelve into refs/remotes/p4-unshelved, not refs/remotes/p4/unshelved</title>
<updated>2018-10-16T04:28:49Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-10-15T11:14:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=088131273b7e781174eb1cffb7d4e0eb51066cba'/>
<id>urn:sha1:088131273b7e781174eb1cffb7d4e0eb51066cba</id>
<content type='text'>
The branch detection code looks for branches under refs/remotes/p4/...
and can end up getting confused if there are unshelved changes in
there as well. This happens in the function p4BranchesInGit().

Instead, put the unshelved changes into refs/remotes/p4-unshelved/&lt;N&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>git-p4: do not fail in verbose mode for missing 'fileSize' key</title>
<updated>2018-10-12T13:38:29Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-10-12T05:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0742b7c860a4291868dec79b90a217db6b129d2b'/>
<id>urn:sha1:0742b7c860a4291868dec79b90a217db6b129d2b</id>
<content type='text'>
If deleting or moving a file, sometimes P4 doesn't report the file size.

The code handles this just fine but some logging crashes. Stop this
happening.

There was some earlier discussion on the list about this:

https://public-inbox.org/git/xmqq1sqpp1vv.fsf@gitster.mtv.corp.google.com/

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: add the `p4-pre-submit` hook</title>
<updated>2018-08-01T20:37:18Z</updated>
<author>
<name>Chen Bin</name>
<email>chenbin.sh@gmail.com</email>
</author>
<published>2018-07-27T11:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=251c8c501faf7a7910edb7c9e19692988dcac6a8'/>
<id>urn:sha1:251c8c501faf7a7910edb7c9e19692988dcac6a8</id>
<content type='text'>
The `p4-pre-submit` hook is executed before git-p4 submits code.
If the hook exits with non-zero value, submit process not start.

Signed-off-by: Chen Bin &lt;chenbin.sh@gmail.com&gt;
Reviewed-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: python3: fix octal constants</title>
<updated>2018-06-19T16:34:32Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-06-19T08:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db2d997efa43596fe5860d1b1c0c410e99d96f67'/>
<id>urn:sha1:db2d997efa43596fe5860d1b1c0c410e99d96f67</id>
<content type='text'>
See PEP3127. Works fine with python2 as well.

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: python3: use print() function</title>
<updated>2018-06-19T16:34:32Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-06-19T08:04:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2606b1797fdffe40b00a6766ca1df6e1e0f3a60'/>
<id>urn:sha1:f2606b1797fdffe40b00a6766ca1df6e1e0f3a60</id>
<content type='text'>
Replace calls to print ... with the function form, print(...), to
allow use with python3 as well as python2.x.

Converted using 2to3 (and some hand-editing).

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: python3: basestring workaround</title>
<updated>2018-06-19T16:34:32Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2018-06-19T08:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=efdcc99263871818cfe297a5a981d5841c77ebac'/>
<id>urn:sha1:efdcc99263871818cfe297a5a981d5841c77ebac</id>
<content type='text'>
In Python3, basestring no longer exists, so use this workaround.

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