<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t9800-git-p4-basic.sh, branch v2.23.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.23.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.23.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-03-14T03:34:39Z</updated>
<entry>
<title>git p4 test: use 'test_atexit' to kill p4d and the watchdog process</title>
<updated>2019-03-14T03:34:39Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-03-13T12:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=99e37c2560ecb1cc44bb743a2e4aaaedb5da1a90'/>
<id>urn:sha1:99e37c2560ecb1cc44bb743a2e4aaaedb5da1a90</id>
<content type='text'>
Use 'test_atexit' to run cleanup commands to stop 'p4d' at the end of
the test script or upon interrupt or failure, as it is shorter,
simpler, and more robust than registering such cleanup commands in the
trap on EXIT in the test scripts.

Note that one of the test scripts, 't9801-git-p4-branch.sh', stops and
then re-starts 'p4d' twice in the middle of the script; take care that
the cleanup functions to stop 'p4d' are only registered once.

Note also that 'git p4' tests invoke different functions in the trap
on EXIT ('cleanup') and in the last test before 'test_done'
('kill_p4d').  Register both of these functions with 'test_atexit' for
now, and a a later patch in this series will then clean up the
redundancy.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&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>Merge branch 'gv/p4-multi-path-commit-fix'</title>
<updated>2016-12-27T08:11:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-12-27T08:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d7dcd52a42fc3d93c503da626fb669b3eee46ddc'/>
<id>urn:sha1:d7dcd52a42fc3d93c503da626fb669b3eee46ddc</id>
<content type='text'>
"git p4" that tracks multile p4 paths imported a single changelist
that touches files in these multiple paths as one commit, followed
by many empty commits.  This has been fixed.

* gv/p4-multi-path-commit-fix:
  git-p4: fix multi-path changelist empty commits
</content>
</entry>
<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: support git worktrees</title>
<updated>2016-12-14T00:04:53Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2016-12-13T21:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=378f7be1e74661ff1480cc44a5f039ef85da7288'/>
<id>urn:sha1:378f7be1e74661ff1480cc44a5f039ef85da7288</id>
<content type='text'>
git-p4 would attempt to find the git directory using
its own specific code, which did not know about git
worktrees.

Rework it to use "git rev-parse --git-dir" instead.

Add test cases for worktree usage and specifying
git directory via --git-dir and $GIT_DIR.

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