<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-p4.py, branch v2.30.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.30.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.30.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-02-08T22:05:54Z</updated>
<entry>
<title>Merge branch 'dl/p4-encode-after-kw-expansion' into maint</title>
<updated>2021-02-08T22:05:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-08T22:05:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6a20b9b9ef70e7c5615da0198ab8d9cfd7d6d3c6'/>
<id>urn:sha1:6a20b9b9ef70e7c5615da0198ab8d9cfd7d6d3c6</id>
<content type='text'>
Text encoding fix for "git p4".

* dl/p4-encode-after-kw-expansion:
  git-p4: fix syncing file types with pattern
</content>
</entry>
<entry>
<title>git-p4: fix syncing file types with pattern</title>
<updated>2020-12-23T21:49:40Z</updated>
<author>
<name>Daniel Levin</name>
<email>dendy.ua@gmail.com</email>
</author>
<published>2020-12-23T14:37:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=52fc4f195c93eb2b1d1edfae69079646d8c2ea99'/>
<id>urn:sha1:52fc4f195c93eb2b1d1edfae69079646d8c2ea99</id>
<content type='text'>
Example of pattern file type: text+k

Text filtered through the p4 pattern regexp must be converted from
string back to bytes, otherwise 'data' command for the fast-import
will receive extra invalid characters, followed by the fast-import
process error.

CC: Yang Zhao &lt;yang.zhao@skyboxlabs.com&gt;
Signed-off-by: Daniel Levin &lt;dendy.ua@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/p4-default-branch'</title>
<updated>2020-11-11T21:18:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-11T21:18:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ca8870d7c198b658a0e3004e27d1c36305702f7f'/>
<id>urn:sha1:ca8870d7c198b658a0e3004e27d1c36305702f7f</id>
<content type='text'>
"git p4" now honors init.defaultBranch configuration.

* js/p4-default-branch:
  p4: respect init.defaultBranch
</content>
</entry>
<entry>
<title>p4: respect init.defaultBranch</title>
<updated>2020-11-09T21:01:47Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2020-11-08T08:41:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b09d1917f376d52e191102509d08303f8d26388'/>
<id>urn:sha1:1b09d1917f376d52e191102509d08303f8d26388</id>
<content type='text'>
In `git p4 clone`, we hard-code the branch name `master` instead of
looking what the _actual_ initial branch name is. Let's fix that.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fixing two trivial typos in Documentation/</title>
<updated>2020-11-05T20:52:50Z</updated>
<author>
<name>Marlon Rac Cambasis</name>
<email>marlonrc08@gmail.com</email>
</author>
<published>2020-11-05T20:48:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7e20b43733b81474b3b50a63cabe647538b010f'/>
<id>urn:sha1:b7e20b43733b81474b3b50a63cabe647538b010f</id>
<content type='text'>
Fix misspelled "specified" and "occurred" in documentation and
comments.

Signed-off-by: Marlon Rac Cambasis &lt;marlonrc08@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: use HEAD~$n to find parent commit for unshelve</title>
<updated>2020-09-19T20:44:55Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2020-09-19T08:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0acbf5997fa26747aec544d2ef6a27e4feb75e81'/>
<id>urn:sha1:0acbf5997fa26747aec544d2ef6a27e4feb75e81</id>
<content type='text'>
Found-by: Liu Xuhui (Jackson) &lt;Xuhui.Liu@amd.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 'bk/p4-prepare-p4-only-fix'</title>
<updated>2020-06-02T20:35:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-06-02T20:35:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7a8fec908a40bd009803de1617c90684e932f878'/>
<id>urn:sha1:7a8fec908a40bd009803de1617c90684e932f878</id>
<content type='text'>
The "--prepare-p4-only" option is supposed to stop after replaying
one changeset, but kept going (by mistake?)

* bk/p4-prepare-p4-only-fix:
  git-p4.py: fix --prepare-p4-only error with multiple commits
</content>
</entry>
<entry>
<title>git-p4.py: fix --prepare-p4-only error with multiple commits</title>
<updated>2020-05-12T19:42:32Z</updated>
<author>
<name>Ben Keene</name>
<email>seraphire@gmail.com</email>
</author>
<published>2020-05-12T13:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2dfdd705ffd8c6dd1ef75abdfb64e1a08ad35a26'/>
<id>urn:sha1:2dfdd705ffd8c6dd1ef75abdfb64e1a08ad35a26</id>
<content type='text'>
When using git p4 submit with the --prepare-p4-only option, the program
should prepare a single p4 changelist and notify the user that more
commits are pending and then stop processing.

A bug has been introduced by the p4-changelist hook feature that
causes the program to continue to try and process all pending
changelists at the same time.

The function applyCommit returns True when applying the commit
was successful and the program should continue. However, when the
optional flag --prepare-p4-only is set, the program should stop
after the first application.

Change the logic in the run method for P4Submit to check for the
flag --prepare-p4-only after successfully completing the applyCommit
method.

Be aware - this change will fix the existing test error in t9807.23
for --prepare-p4-only. However there is insufficent coverage for
this flag.  If more than 1 commit is pending submission to P4, the
method will properly prepare the P4 changelist, however it will
still exit the application with an exitcode of 1.

The current documentation does not define what the exit code should be
in this condition.
(See: https://git-scm.com/docs/git-p4#Documentation/git-p4.txt---prepare-p4-only)

Signed-off-by: Ben Keene &lt;seraphire@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-p4: recover from inconsistent perforce history</title>
<updated>2020-05-10T16:58:50Z</updated>
<author>
<name>Andrew Oakley</name>
<email>andrew@adoakley.name</email>
</author>
<published>2020-05-10T10:16:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=82e46d6b837e96de5ee01f0298b600519aef1bba'/>
<id>urn:sha1:82e46d6b837e96de5ee01f0298b600519aef1bba</id>
<content type='text'>
Perforce allows you commit files and directories with the same name,
so you could have files //depot/foo and //depot/foo/bar both checked
in.  A p4 sync of a repository in this state fails.  Deleting one of
the files recovers the repository.

When this happens we want git-p4 to recover in the same way as
perforce.

Note that Perforce has this change in their 2017.1 version:

     Bugs fixed in 2017.1
     #1489051 (Job #2170) **
        Submitting a file with the same name as an existing depot
        directory path (or vice versa) will now be rejected.

so people hopefully will not creating damaged Perforce repos
anymore, but "git p4" needs to be able to interact with already
corrupt ones.

Signed-off-by: Andrew Oakley &lt;andrew@adoakley.name&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>Merge branch 'bk/p4-pre-edit-changelist'</title>
<updated>2020-04-22T20:42:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-04-22T20:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f2ec211f629f5b1d9a85e924946ae2079fa96f7'/>
<id>urn:sha1:5f2ec211f629f5b1d9a85e924946ae2079fa96f7</id>
<content type='text'>
"git p4" learned four new hooks and also "--no-verify" option to
bypass them (and the existing "p4-pre-submit" hook).

* bk/p4-pre-edit-changelist:
  git-p4: add RCS keyword status message
  git-p4: add p4 submit hooks
  git-p4: restructure code in submit
  git-p4: add --no-verify option
  git-p4: add p4-pre-submit exit text
  git-p4: create new function run_git_hook
  git-p4: rewrite prompt to be Windows compatible
</content>
</entry>
</feed>
