<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t9800-git-p4-basic.sh, branch v2.11.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.11.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.11.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-12-19T18:04:21Z</updated>
<entry>
<title>git-p4: fix multi-path changelist empty commits</title>
<updated>2016-12-19T18:04:21Z</updated>
<author>
<name>George Vanburgh</name>
<email>gvanburgh@bloomberg.net</email>
</author>
<published>2016-12-17T22:11:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9943e5b9799336460ecbbeb86e544cc4a1ad1254'/>
<id>urn:sha1:9943e5b9799336460ecbbeb86e544cc4a1ad1254</id>
<content type='text'>
When importing from multiple perforce paths - we may attempt to
import a changelist that contains files from two (or more) of these
depot paths. Currently, this results in multiple git commits - one
containing the changes, and the other(s) as empty commit(s). This
behavior was introduced in commit 1f90a64891 ("git-p4: reduce number
of server queries for fetches", 2015-12-19).

Reproduction Steps:

  1. Have a git repo cloned from a perforce repo using multiple
     depot paths (e.g. //depot/foo and //depot/bar).

  2. Submit a single change to the perforce repo that makes changes
     in both //depot/foo and //depot/bar.

  3. Run "git p4 sync" to sync the change from #2.

Change is synced as multiple commits, one for each depot path that
was affected.

Using a set, instead of a list inside p4ChangesForPaths() ensures
that each changelist is unique to the returned list, and therefore
only a single commit is generated for each changelist.

Reported-by: James Farwell &lt;jfarwell@vmware.com&gt;
Signed-off-by: George Vanburgh &lt;gvanburgh@bloomberg.net&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: work with a detached head</title>
<updated>2015-11-24T20:20:15Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-11-21T09:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00ad6e3182bbe68a94eaedf322918e4f266d184f'/>
<id>urn:sha1:00ad6e3182bbe68a94eaedf322918e4f266d184f</id>
<content type='text'>
When submitting, git-p4 finds the current branch in
order to know if it is allowed to submit (configuration
"git-p4.allowSubmit").

On a detached head, detecting the branch would fail, and
git-p4 would report a cryptic error.

This change teaches git-p4 to recognise a detached head and
submit successfully.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>git-p4: add failing test for submit from detached head</title>
<updated>2015-11-24T20:20:15Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-11-21T09:54:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74b6fe9202792f43ba01014599c8fe183149c0a3'/>
<id>urn:sha1:74b6fe9202792f43ba01014599c8fe183149c0a3</id>
<content type='text'>
git-p4 can't submit from a detached head. This test case
demonstrates the problem.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>git-p4: add tests for non-numeric revision range</title>
<updated>2015-06-10T15:29:10Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-06-10T07:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eceafffbec97385eb65d7ba0c365ee028aaf1aad'/>
<id>urn:sha1:eceafffbec97385eb65d7ba0c365ee028aaf1aad</id>
<content type='text'>
Test that git-p4 can handle a sync with a non-numeric revision
range (e.g. a date).

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>tests: fix negated test_i18ngrep calls</title>
<updated>2014-08-13T20:12:06Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-08-13T19:30:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41ca19b6a6ca5ad6fea246bd400717c16b80b32c'/>
<id>urn:sha1:41ca19b6a6ca5ad6fea246bd400717c16b80b32c</id>
<content type='text'>
The helper function test_i18ngrep pretends that it found the expected
results when it is running under GETTEXT_POISON. For this reason, it must
not be used negated like so

   ! test_i18ngrep foo bar

because the test case would fail under GETTEXT_POISON. The function offers
a special syntax to test that a pattern is *not* found:

   test_i18ngrep ! foo bar

Convert incorrect uses to this syntax.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: generate better error message for bad depot path</title>
<updated>2013-01-27T06:00:38Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2013-01-27T03:11:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f487d308d819cf6c64b866cb2f5c366a13b1639'/>
<id>urn:sha1:0f487d308d819cf6c64b866cb2f5c366a13b1639</id>
<content type='text'>
Depot paths must start with //.  Exit with a better explanation
when a bad depot path is supplied.

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: verify expected refs in clone --bare test</title>
<updated>2013-01-15T17:46:29Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2013-01-15T00:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=695d69989429e9268c0587e3606399fc9d6cd6fa'/>
<id>urn:sha1:695d69989429e9268c0587e3606399fc9d6cd6fa</id>
<content type='text'>
Make sure that the standard branches are created as expected.

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: display unresolvable host error</title>
<updated>2012-11-26T19:00:49Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-11-23T22:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0'/>
<id>urn:sha1:e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0</id>
<content type='text'>
This test passes already.  Make sure p4 diagnostic errors are displayed.

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: catch p4 errors when streaming file contents</title>
<updated>2012-11-26T19:00:34Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-11-23T22:35:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=78189bead3f5fde22ae651d66208a0e0a375a819'/>
<id>urn:sha1:78189bead3f5fde22ae651d66208a0e0a375a819</id>
<content type='text'>
Error messages that arise during the "p4 print" phase of
generating commits were silently ignored.  Catch them,
abort the fast-import, and exit.

Without this fix, the sync/clone appears to work, but files that
are inaccessible by the p4d server will still be imported to git,
although without the proper contents.  Instead the errant files
will contain a p4 error message, such as "Librarian checkout
//depot/path failed".

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: refactor marshal_dump</title>
<updated>2012-07-06T06:22:00Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-07-04T13:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=798d598080a68deb4958d69adacee409a23b467b'/>
<id>urn:sha1:798d598080a68deb4958d69adacee409a23b467b</id>
<content type='text'>
This function will be useful in future tests.  Move it to
the git-p4 test library.  Let it accept an optional argument
to pick a certain marshaled object out of the input stream.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
