<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>p4 Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/p4/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/p4/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:55:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to set latest P4 CL# into property?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-set-latest-p4-cl-into-property/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-set-latest-p4-cl-into-property/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 07 Dec 2017 06:11:20 +0000</pubDate>
				<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1959</guid>

					<description><![CDATA[<p>tpatil created the topic: How to set latest P4 CL# into property? We have CI setup using bamboo, P4 &#038; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-latest-p4-cl-into-property/">How to set latest P4 CL# into property?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: How to set latest P4 CL# into property?</strong><br />
We have CI setup using bamboo, P4 &#038; maven. When I trigger the build from bamboo it gives me the CL# on which the build is done on build results page.</p>
<p>How can I get this value/property in pom.xml? I want to add to this CL# to MANIFEST.MF file.</p>
<p>Thanks,<br />
-Tushar</p>
<p><strong>How to set latest P4 CL# into property?</strong><br />
This may serve your ur purpose&#8230;<br />
p4 changes -s submitted -m1</p>
<p>plz refer following articles as well</p>
<p><a href="http://stackoverflow.com/questions/47007/determ...ynced-to-in-perforce">stackoverflow.com/questions/47007/determ&#8230;ynced-to-in-perforce</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>tpatil replied the topic: Re:How to set latest P4 CL# into property?</strong><br />
<code>/**<br />
*Usage in pon.xml<br />
*	<plugin>
*	<groupId>test.maven</groupId><br />
*	<artifactId>maven-p4-plugin</artifactId><br />
*	<executions><br />
*	<execution><br />
*	<goals><br />
*	<goal>p4changes</goal><br />
*	</goals><br />
*	<configuration><br />
*	<url>//depot/ABC/2/X/...</url><br />
*	</configuration><br />
*	</execution><br />
*	</executions><br />
*	</plugin>
*<br />
* Goal which touches a timestamp file.<br />
*<br />
* @goal p4changes<br />
*<br />
* @phase process-sources<br />
*/<br />
public class P4RevisionMojo extends AbstractMojo {</p>
<p>private Process p;<br />
private Properties prop;<br />
private MavenProject project;<br />
/**<br />
* @parameter expression="${p4.url}" default-value="./..."<br />
* @required<br />
* @since 1.0<br />
*/<br />
private String suffix;<br />
/**<br />
* @parameter expression="${p4.port}" default-value="${env.P4PORT}"<br />
* @optional<br />
* @since 1.0<br />
*/<br />
private String p4port;<br />
/**<br />
* @parameter expression="${p4.client}" default-value="${env.P4CLIENT}"<br />
* @optional<br />
* @since 1.0<br />
*/<br />
private String p4client;<br />
/**<br />
* @parameter expression="${p4.user}" default-value="${env.P4USER}"<br />
* @optional<br />
* @since 1.0<br />
*/<br />
private String p4user;<br />
/**<br />
* @parameter expression="${p4.passwd}" default-value="${env.P4PASSWD}"<br />
* @optional<br />
* @since 1.0<br />
*/<br />
private String p4passwd;</p>
<p>public void execute() throws MojoExecutionException {<br />
try {<br />
String cmd = "p4 changes -m 1 " + url;<br />
this.getLog().info("Executing P4 command: " + cmd);<br />
p = Runtime.getRuntime().exec(cmd);<br />
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));<br />
String line = stdInput.readLine();</p>
<p>String property = "p4.revision";<br />
if (suffix != null && suffix.length() > 0) {<br />
property = property.concat("." + suffix);<br />
}</p>
<p>prop.setProperty("buildtstamp", new Date().toString());<br />
prop.setProperty(property, "000000");<br />
while (line != null) {<br />
String[] line_items = line.split(" ");<br />
if (line_items.length >= 1) {<br />
if (line_items[0].equalsIgnoreCase("Change")) {<br />
prop.setProperty(property, line_items[1]);<br />
this.getLog().info("P4 Revision ${" + property + "} :::: " + prop.getProperty(property));<br />
}</p>
<p>}<br />
return;<br />
}</p>
<p>} catch (IOException e) {<br />
// TODO Auto-generated catch block<br />
e.printStackTrace();<br />
}<br />
}<br />
}</code></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-latest-p4-cl-into-property/">How to set latest P4 CL# into property?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-set-latest-p4-cl-into-property/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>P4 shelve</title>
		<link>https://www.scmgalaxy.com/tutorials/p4-shelve/</link>
					<comments>https://www.scmgalaxy.com/tutorials/p4-shelve/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 05:08:06 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1730</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: p4 shelve Store files from a pending changelist in the depot, without submitting them. Shelving is [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-shelve/">P4 shelve</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: p4 shelve</strong><br />
Store files from a pending changelist in the depot, without submitting them.</p>
<p>Shelving is the process of temporarily storing work in progress on a Perforce Server without submitting a changelist. Shelving is useful when you need to perform multiple development tasks (such as interruptions from higher-priority work, testing across multiple platforms) on the same set of files, or share files for code review before committing your work to the depot.<br />
The p4 shelve command creates, modifies, or discards shelved files in a pending changelist. Shelved files persist in the depot until they are discarded (by means of p4 shelve -d) or replaced by subsequent p4 shelve commands.<br />
After shelving files, you can revert or modify them in your client workspace, and restore the shelved versions of those files to your workspace with the p4 unshelve command.<br />
While files are shelved, other users can unshelve the shelved files into their own workspaces, or into other client workspaces.<br />
Files that have been shelved can also be accessed with the p4 diff, p4 diff2, p4 files, and p4 print commands, using the revision specifier @=change, where change is the pending changelist number.<br />
If no arguments are specified, p4 shelve creates a new changelist, adds files from the user&#8217;s default changelist, and (after the user completes a form similar to that used by p4 submit), shelves the specified files into the depot. If a file pattern is given, p4 shelve shelves only the files that match the pattern.</p>
<p>For More Info&#8230;<br />
www.perforce.com/perforce/doc.current/ma&#8230;s/cmdref/shelve.html<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-shelve/">P4 shelve</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/p4-shelve/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Alternate to p4 proxy</title>
		<link>https://www.scmgalaxy.com/tutorials/alternate-to-p4-proxy/</link>
					<comments>https://www.scmgalaxy.com/tutorials/alternate-to-p4-proxy/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 12:25:26 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1686</guid>

					<description><![CDATA[<p>scmuser created the topic: Alternate to p4 proxy Hi, I know p4 proxy which enables the p4 server working in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alternate-to-p4-proxy/">Alternate to p4 proxy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Alternate to p4 proxy</strong><br />
Hi,</p>
<p>I know p4 proxy which enables the p4 server working in distributed environment&#8230;do you know any alternate to p4 proxy which can replicate the p4 server to remote location with all p4 operationb supported as its in p4 proxy?</p>
<p><strong>rajeshkumar replied the topic: Re: Alternate to p4 proxy</strong><br />
Hi,</p>
<p>if you are looking for any of the answer of the following questions, perforce answer is NO&#8230;</p>
<p>1/ Is there any alternate ways to setup P4 Proxy Server? NOT using p4p/p4ps</p>
<p>ANSWER: NO</p>
<p>2/ Is There ways to setup perforce server distributed in 2 different location where each time submit operation happens with nearest located server and BOTH server sync the DB and versioning files with each other?</p>
<p>ANSWER: NO<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/alternate-to-p4-proxy/">Alternate to p4 proxy</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/alternate-to-p4-proxy/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Need correct P4win and p4v installer</title>
		<link>https://www.scmgalaxy.com/tutorials/need-correct-p4win-and-p4v-installer/</link>
					<comments>https://www.scmgalaxy.com/tutorials/need-correct-p4win-and-p4v-installer/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 11:54:40 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1672</guid>

					<description><![CDATA[<p>scmuser created the topic: Need correct P4win and p4v installer My Server version is 2004.2 and I would like to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/need-correct-p4win-and-p4v-installer/">Need correct P4win and p4v installer</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Need correct P4win and p4v installer</strong><br />
My Server version is 2004.2 and I would like to have supported p4win and p4v which will support to my perforce server in 64 bit.</p>
<p>Could you please let me know from where I can download right installer?</p>
<p><strong>rajeshkumar replied the topic: Re: Need correct P4win and p4v installer</strong><br />
the current version of the P4V client is only compatible with Perforce servers 2005.2 and later. The last version of P4V that worked with P4D 2004.2 was P4V 2008.2 which can be downloaded from our ftp site.</p>
<p>The 64bit version can be downloaded from:</p>
<p><a href="ftp://ftp.perforce.com/perforce/r08.2/bin.ntx64/">ftp://ftp.perforce.com/perforce/r08.2/bin.ntx64/ </a></p>
<p>and the 32bit version can be downloaded from:</p>
<p><a href="ftp://ftp.perforce.com/perforce/r08.2/bin.ntx86/">ftp://ftp.perforce.com/perforce/r08.2/bin.ntx86/</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/need-correct-p4win-and-p4v-installer/">Need correct P4win and p4v installer</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/need-correct-p4win-and-p4v-installer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Use of p4 spec command</title>
		<link>https://www.scmgalaxy.com/tutorials/use-of-p4-spec-command/</link>
					<comments>https://www.scmgalaxy.com/tutorials/use-of-p4-spec-command/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 11:51:39 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1670</guid>

					<description><![CDATA[<p>scmuser created the topic: Use of p4 spec command Use of p4 spec -o label command &#8220;p4 spec&#8221; is an [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-spec-command/">Use of p4 spec command</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Use of p4 spec command</strong><br />
Use of p4 spec -o label command</p>
<p>&#8220;p4 spec&#8221; is an unsupported command and thus not documented in the command reference. The only reference we have is &#8220;p4 help spec&#8221;:</p>
<p>spec &#8212; Edit spec definitions (unsupported)</p>
<p>p4 spec [-d -i -o] type</p>
<p>Edit any type of specification: branch, change, client, depot,<br />
group, job, label, spec, stream, trigger, typemap, or user. Only<br />
the comments and the formatting hints can be changed. Any fields<br />
that you add during editing are discarded when the spec is saved.</p>
<p>&#8216;p4 jobspec&#8217; is equivalent to &#8216;p4 spec job&#8217;, and any custom spec<br />
(include the job spec) can be deleted with &#8216;p4 spec -d type&#8217;.</p>
<p>Please let me know if you have any further questions.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-spec-command/">Use of p4 spec command</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/use-of-p4-spec-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>P4 replication: do not read compressed journals?</title>
		<link>https://www.scmgalaxy.com/tutorials/p4-replication-do-not-read-compressed-journals/</link>
					<comments>https://www.scmgalaxy.com/tutorials/p4-replication-do-not-read-compressed-journals/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 11:37:16 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1659</guid>

					<description><![CDATA[<p>scmuser created the topic: p4 replication: do not read compressed journals? p4 replicate and p4 pull (when replicating metadata) do [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-do-not-read-compressed-journals/">P4 replication: do not read compressed journals?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: p4 replication: do not read compressed journals?</strong><br />
p4 replicate and p4 pull (when replicating metadata) do not read compressed journals. Therefore, the master server must not compress rotated journals until the replica server has fetched all journal records from older journals</p>
<p>Based on the major issue, how should be solve this?</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-do-not-read-compressed-journals/">P4 replication: do not read compressed journals?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/p4-replication-do-not-read-compressed-journals/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>P4 replication issues</title>
		<link>https://www.scmgalaxy.com/tutorials/p4-replication-issues/</link>
					<comments>https://www.scmgalaxy.com/tutorials/p4-replication-issues/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 11:30:04 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1655</guid>

					<description><![CDATA[<p>scmjobs created the topic: P4 replication issues URL www.perforce.com/perforce/r10.2/manuals/&#8230;/10_replication.html In Given URL, Above, it has particular system requirement&#8230;. p4 replicate [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-issues/">P4 replication issues</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmjobs created the topic: P4 replication issues</strong><br />
URL <a href="http://www.perforce.com/perforce/r10.2/manuals/.../10_replication.html">www.perforce.com/perforce/r10.2/manuals/&#8230;/10_replication.html </a></p>
<p>In Given URL, Above, it has particular system requirement&#8230;.</p>
<p>p4 replicate and p4 pull (when replicating metadata) do not read compressed journals. Therefore, the master server must not compress rotated journals until the replica server has fetched all journal records from older journals.</p>
<p>Questions:<br />
1. How to make sure that replica Server has fetch all journal records from older journals?<br />
2. After fetching all journal records, can i compress journal?<br />
3. if I compress jounral after fetch, will Master and replicate server will do replication??</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-issues/">P4 replication issues</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/p4-replication-issues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>P4 Replication and P4 Broker Questions</title>
		<link>https://www.scmgalaxy.com/tutorials/p4-replication-and-p4-broker-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/p4-replication-and-p4-broker-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 10:54:28 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1641</guid>

					<description><![CDATA[<p>scmuser created the topic: P4 Replication and P4 Broker Questions I would like to implement such a functionality in which [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-and-p4-broker-questions/">P4 Replication and P4 Broker Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: P4 Replication and P4 Broker Questions</strong><br />
I would like to implement such a functionality in which if my broker has redirect p4 command to Rep1 server, and same time I got another sync command, it should redirect to rep2 from broker as rep 1 is already busy.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/p4-replication-and-p4-broker-questions/">P4 Replication and P4 Broker Questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/p4-replication-and-p4-broker-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Difference between p4 Pull and p4 replicate</title>
		<link>https://www.scmgalaxy.com/tutorials/difference-between-p4-pull-and-p4-replicate/</link>
					<comments>https://www.scmgalaxy.com/tutorials/difference-between-p4-pull-and-p4-replicate/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 05 Dec 2017 10:49:34 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[p4]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1637</guid>

					<description><![CDATA[<p>scmuser created the topic: Difference between p4 Pull and p4 replicate Difference between p4 Pull and p4 replicate????</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/difference-between-p4-pull-and-p4-replicate/">Difference between p4 Pull and p4 replicate</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Difference between p4 Pull and p4 replicate</strong><br />
Difference between p4 Pull and p4 replicate????</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/difference-between-p4-pull-and-p4-replicate/">Difference between p4 Pull and p4 replicate</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/difference-between-p4-pull-and-p4-replicate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Different Perforce Tools and Their Short Summary &#124; Know About Different Perforce tools</title>
		<link>https://www.scmgalaxy.com/tutorials/different-perforce-tools-and-their-short-summary/</link>
					<comments>https://www.scmgalaxy.com/tutorials/different-perforce-tools-and-their-short-summary/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 22 May 2012 10:47:16 +0000</pubDate>
				<category><![CDATA[Concept & Definition]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Clients]]></category>
		<category><![CDATA[Description]]></category>
		<category><![CDATA[Different]]></category>
		<category><![CDATA[Different Perforce Tools]]></category>
		<category><![CDATA[Different Perforce tools Guide]]></category>
		<category><![CDATA[Different Perforce tools Summary]]></category>
		<category><![CDATA[Different Perforce tools Tutorials]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Know About Different Perforce tools]]></category>
		<category><![CDATA[List of Perforce tools]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[Perforce Tools]]></category>
		<category><![CDATA[Perforce Tools Introduction]]></category>
		<category><![CDATA[Plug-ins & Integrations]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Summary]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tools & Utilities]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/05/22/different-perforce-tools-and-their-short-summary/</guid>

					<description><![CDATA[<p>Different Perforce Tools and Their Short Summary Clients P4V: Visual Client &#8211; (Included in the P4V Installer) Provides access to [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/different-perforce-tools-and-their-short-summary/">Different Perforce Tools and Their Short Summary | Know About Different Perforce tools</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3808 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/different-perforce-tools.png" alt="different-perforce-tools" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/different-perforce-tools.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/different-perforce-tools-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Different Perforce Tools and Their Short Summary</strong></p>
<p><strong>Clients</strong><br />
<strong>P4V:</strong> Visual Client &#8211; (Included in the P4V Installer)<br />
Provides access to versioned files through a graphical interface and also includes tools for merging and visualizing code evolution.<br />
<strong>P4Merge:</strong> Visual Merge Tool &#8211; (Included in the P4V Installer)<br />
Provides graphical three-way merging and side-by-side file comparisons<br />
<strong>P4:</strong> Command-Line Client &#8211; (Included in the Perforce Server Windows Installer)<br />
(Included in the Perforce Server Windows Installer)<br />
<strong>P4Web:</strong> Web Client &#8211; (Included in the P4Web Installer)<br />
Provides convenient access to versioned files through popular web browsers</p>
<p><strong>Server</strong><br />
<strong>P4D:</strong> Server &#8211; (Included in the Perforce Server Windows Installer)<br />
Stores and manages access to versioned files, tracks user operations and records all activity in a centralized database.<br />
<strong>P4P:</strong> Proxy Server &#8211; (Included in the Perforce Server Windows Installer)<br />
A self-maintaining proxy server that caches versioned files remotely on distributed networks.</p>
<p><strong>Plug-ins &amp; Integrations</strong><br />
<strong>P4WSAD</strong>: Plug-in for Eclipse and WebSphere Studio<br />
Access Perforce from within the Eclipse IDE and the Rational/WebSphere Studio WorkBench family of products<br />
<strong>P4SCC:</strong> SCC Plug-in &#8211; (Included in the P4V Installer)<br />
Enables you to perform Perforce operations from within IDEs that support the Microsoft SCC API including Visual Studio.<br />
<strong>P4EXP:</strong> Plug-in for Windows Explorer &#8211; (Included in the P4V Installer)<br />
Allows Windows users direct access to Perforce.<br />
<strong>P4DTG:</strong> Defect Tracking Gateway &#8211; (Included in the P4DTG Installer)<br />
Allows information to be shared between Perforce’s basic defect tracking system and external defect tracking systems.<br />
<strong>P4GT:</strong> Plug-in for Graphical Tools<br />
Provides seamless access to version control for files from within Adobe Photoshop, SoftImage XSI, Autodesk’s 3ds max, and Maya<br />
<strong>P4OFC:</strong> Plug-in for Microsoft Office<br />
Allows documents to be easily stored and managed in Perforce directly from Microsoft Word, Excel, PowerPoint and Project.</p>
<p><strong>Tools &amp; Utilities</strong><br />
<strong>P4Report:</strong> Reporting System<br />
Supports leading tools such as Crystal Reports, Microsoft Access, and Microsoft Excel, or any reporting<br />
tool that interfaces with an ODBC data source.<br />
<strong>P4Thumb</strong>: Thumbnail Generator<br />
Creates thumbnails of graphics files managed by Perforce and stores the thumbnails in the server for presentation in P4V.<br />
<strong>P4FTP:</strong> FTP Plug-in<br />
Allows FTP clients like Dreamweaver, Netscape, and Internet Explorer to access files in Perforce depots.&#8217;<br />
Links to Download: <a href="http://www.perforce.com/perforce/downloads/platform.html">http://www.perforce.com/perforce/downloads/platform.html</a></p>
<p>Good Video Tutorial Links<br />
<a href="http://www.perforce.com/perforce/media_library/tutorials.html">http://www.perforce.com/perforce/media_library/tutorials.html</a><br />
<a href="http://www.perforce.com/perforce/demo/testdrive.html">http://www.perforce.com/perforce/demo/testdrive.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/different-perforce-tools-and-their-short-summary/">Different Perforce Tools and Their Short Summary | Know About Different Perforce tools</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/different-perforce-tools-and-their-short-summary/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Use of p4 duplicate command &#124; P4 Command Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/use-of-p4-duplicate-command/</link>
					<comments>https://www.scmgalaxy.com/tutorials/use-of-p4-duplicate-command/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 16 May 2012 11:27:22 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Copy]]></category>
		<category><![CDATA[Duplicate]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[p4 clone]]></category>
		<category><![CDATA[p4 commands]]></category>
		<category><![CDATA[p4 commands guide]]></category>
		<category><![CDATA[p4 copy]]></category>
		<category><![CDATA[p4 duplicate command]]></category>
		<category><![CDATA[p4 duplicate tutorial]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Use]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/05/16/use-of-p4-duplicate-command/</guid>

					<description><![CDATA[<p>Use of p4 duplicate command Problem Area is &#8211; Is there any possibility to rename branch name? as directory rename [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-duplicate-command/">Use of p4 duplicate command | P4 Command Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-3825 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/p4-duplicate-command.png" alt="p4-duplicate-command" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/p4-duplicate-command.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/p4-duplicate-command-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Use of p4 duplicate command</strong></p>
<p><strong>Problem Area is &#8211; </strong><br />
Is there any possibility to rename branch name? as directory rename is possible?</p>
<p><strong>Solution is &#8211; </strong>p4 duplicate command</p>
<p>What the command ‘p4 duplicate’ was implement to do was create a duplicated revision of a folder as if it always existed. This is explained in the ‘p4 help duplicate’, I have copied below:</p>
<pre>Duplicate revisions as if they always existed.  All aspects of
   the source revisions are mirrored into the target revisions,
   including changelist number, date, attributes, and contents.
   The target revision must not already exist, and the target file
must not be opened (for any operation) on any client.</pre>
<p>Integration records are duplicated as well.</p>
<p>To rename branch names is possible with the process of a deep rename operation.</p>
<p><strong><em>p4 duplicate //depot/Jam/MAINds/&#8230; //depot/Jam/MAIN/&#8230;</em></strong></p>
<p>The above command will create an exact copy of the branch you&#8217;re duplicating including its integration history.</p>
<p>Then the duplication source is not wanted anymore, so you will need to use the obliterate command:</p>
<p><em><strong>p4 obliterate -y //depot/Jam/MAINds/&#8230;</strong></em></p>
<p>You can find more information about &#8220;p4 duplicate&#8221; by running the &#8220;p4 help duplicate&#8221; command.</p>
<p>If you have any further questions please let me know.</p>
<p>Reference &#8211;</p>
<p>Perforce Support and</p>
<p><a href="http://maillist.perforce.com/pipermail/perforce-user/2010-November/027364.html" target="_blank" rel="noopener">http://maillist.perforce.com/pipermail/perforce-user/2010-November/027364.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-duplicate-command/">Use of p4 duplicate command | P4 Command Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/use-of-p4-duplicate-command/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Perforce Slow Sync issues &#124; Perforce Slow Sync Troubleshooting Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce-slow-sync-issues/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce-slow-sync-issues/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 23 Apr 2012 07:19:51 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[issues.]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[Perforce Slow Sync]]></category>
		<category><![CDATA[Perforce Slow Sync Issue]]></category>
		<category><![CDATA[Perforce Slow Sync problem]]></category>
		<category><![CDATA[Perforce Slow Sync Troubleshooting]]></category>
		<category><![CDATA[Perforce Slow Sync Troubleshooting Guide]]></category>
		<category><![CDATA[Perforce Troubleshooting]]></category>
		<category><![CDATA[Perforce Troubleshooting Guide]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Resolve]]></category>
		<category><![CDATA[Slow]]></category>
		<category><![CDATA[Slow Sync]]></category>
		<category><![CDATA[sync]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/04/23/perforce-slow-sync-issues/</guid>

					<description><![CDATA[<p>Perforce Slow Sync issues Network latency Sync Performance issues are not obvious with locally connected hosts, as the network latency [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-slow-sync-issues/">Perforce Slow Sync issues | Perforce Slow Sync Troubleshooting Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-3840 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/04/perforce-slow-sync-issues.png" alt="perforce-slow-sync-issues" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/04/perforce-slow-sync-issues.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/04/perforce-slow-sync-issues-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Perforce Slow Sync issues</strong></p>
<p><strong>Network latency</strong><br />
Sync Performance issues are not obvious with locally connected hosts, as the network latency is low. However, as latency increases, performance worsens.</p>
<p>To correct the issue, follow these steps on the client machines exhibiting the issue:<br />
<a href="http://kb.perforce.com/article/1191/slow-sync-on-remote-windows-clients" target="_blank" rel="noopener">http://kb.perforce.com/article/1191/slow-sync-on-remote-windows-clients</a></p>
<p><strong>Network problems: </strong><br />
How do I determine if slow Perforce response time is caused by network problems?</p>
<p>A network issue can be suspected if Perforce commands run quickly on the local machine but run slowly across a network. You can also compare the lapse time against the usage time, for example, if the information is available in the Perforce logs.</p>
<p>Any of the following can cause slow responses:</p>
<ol>
<li>Misconfigured domain name server (DNS)</li>
<li>Misconfigured Windows name server (WINS) or Windows domain</li>
<li>Slow network response</li>
</ol>
<p><strong>1. p4 info</strong></p>
<p>A good initial test is to run the p4 info command. If this command does not respond nearly immediately then there is a network related problem.<br />
The p4 info command uses the P4PORT setting to contact the Perforce Server. If the P4PORT setting uses the hostname of the server machine, a DNS lookup is required to fetch the server IP address. If the DNS server is failing or the network is slow, the lookup process takes time. You can use the IP address directly to avoid the DNS lookup.</p>
<p><strong>2. Hostname vs. IP Address</strong><br />
On a client machine, try using the Perforce Server&#8217;s IP address in the P4PORT setting. This avoids the DNS lookup used to convert the hostname to an IP address. Here is a P4PORT example which uses the server hostname:</p>
<p>P4PORT=hostname:1666<br />
Using the IP address directly, the P4PORT setting then looks like this:</p>
<p>P4PORT=1.2.3.4:1666</p>
<p>If you do not have the Perforce Server machine&#8217;s IP address handy, you can use the ping command to find it. Here is an example of how you would run the ping command:</p>
<p><strong>3. ping hostnam</strong></p>
<p>The output of the ping command lists the IP address for the hostname.</p>
<p>If the p4 info command responds immediately when you use the IP address in the P4PORT setting, you have a misconfigured DNS.</p>
<p>&#8220;p4 info&#8221; vs. P4Win</p>
<p>The p4 info command is processed by the Perforce Server. As the Perforce Server compiles the output information for the command, it does a reverse DNS lookup on the client&#8217;s IP address. A forward DNS lookup might be fast, while a reverse DNS lookup is slow. One way to determine if a reverse DNS lookup is slow is by using P4Win, the Perforce Visual Client. The &#8220;Show Connection Info&#8221; operation in P4Win does not perform a reverse DNS lookup.</p>
<p>You can compare the response of P4Win&#8217;s &#8220;Show Connection Info&#8221; with the response from the command line p4 info. If a &#8220;Show Connection Info&#8221; operation is fast while a p4 info is slow, there is a reverse DNS lookup problem on the Perforce Server machine.</p>
<p><strong>4. The &#8220;hosts&#8221; file</strong></p>
<p>To work around DNS problems, add hostname IP address entries to the hosts file. This task is typically performed by a Systems Administrator; be sure to follow your company&#8217;s standard procedures.</p>
<p>Rather than using an IP address for the P4PORT setting, you can add a hostname IP address entry in your hosts file. The host file can be tricky to find. Here are a few places it can be:</p>
<p>Windows Server 2000 (and later):</p>
<p>C:\Winnt\System32\Drivers\etc\hosts</p>
<p>Unix:</p>
<p>/etc/hosts</p>
<p>The following is an example entry for the hosts file:</p>
<p>1.2.3.4 hostname</p>
<p>If you have determined there is a reverse DNS problem, you need to add an entry for your client hostname in the machine&#8217;s hosts file where the Perforce Server resides.</p>
<p><strong>5. Wildcards on Windows</strong></p>
<p>In some cases, p4 commands using unquoted file patterns with a combination of depot syntax or client syntax and wildcards can cause delays.</p>
<p>p4 files //depot/*</p>
<p>p4 files //client/*</p>
<p>The delay occurs because the wild card expansion routines for Windows mistakes the depot name or client name for a network system name. You can prevent the delay by putting double quotes around the file pattern:</p>
<p>p4 files &#8220;//depot/*&#8221;</p>
<p>Network Topology</p>
<p>Most networks use 100 Mbit technology. The maximum theoretical transfer rate of this type of network is 10 Mbytes per second. In most cases slower transfer rates are experienced. If a network is saturated, transfer rates can drop off significantly, maybe as low as 4 Mbytes per second. In cases of network saturation use of network routers or switches can help.</p>
<p><strong>6. Client on a Network Filesystem</strong></p>
<p>It is possible that the p4 executable itself is on a networked file system that is performing very poorly. To check for slow access to the executable, try running:</p>
<p>p4 -v</p>
<p>The p4 -v command simply prints out the version information and does not attempt to access the network. If you get a slow response, network access to the p4 executable itself may be the problem. Try copying or downloading the p4 executable onto a local filesystem.</p>
<p><strong>7. Server on a Network Filesystem</strong></p>
<p>Using a network filesystem for the Perforce Server must be thought through very carefully. Just as in the scenario above with the Perforce client stored on a network filesystem, data to and from the server application must go through the network twice. The Perforce Server also uses file locking on vital data files. Not all network filesystems have efficient locking implementations and some are buggy.</p>
<p>If the network is saturated and the transfer rate is down to about 4 Mbytes per second, the Perforce Server cannot satisfy client requests. Each client request uses part of the network, and the Perforce Server must share that resource in order to access the network filesystem. A cheap hard drive these days will provide a 20 Mbyte per second transfer rate. A good SCSI hard drive can transfer as much as 160 Mbytes per second. If possible, try to avoid a network filesystem related server bottle neck.</p>
<p>Try and play with &#8220;p4 ping&#8221; by progressively increasing the message count, receive and transmit lengths (one at a time). If you hit the same wall repeatedly, then this could very well be indicative of some throttling taking place somewhere</p>
<p><strong>8. p4 -z tag info</strong></p>
<p><strong>9. Reference.</strong></p>
<p><a href="http://kb.perforce.com/article/40/isolating-network-problems" target="_blank" rel="noopener">http://kb.perforce.com/article/40/isolating-network-problems</a><br />
<a href="http://kb.perforce.com/article/40/isolating-network-problems" target="_blank" rel="noopener">http://kb.perforce.com/article/1191/slow-sync-on-remote-windows-clients</a><br />
<a href="http://kb.perforce.com/article/1462/slow-sync-performance-on-windows" target="_blank" rel="noopener">http://kb.perforce.com/article/1462/slow-sync-performance-on-windows</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-slow-sync-issues/">Perforce Slow Sync issues | Perforce Slow Sync Troubleshooting Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce-slow-sync-issues/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>“Cheat Sheet” of Perforce command-line &#124; Perforce command-line Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/cheat-sheet-of-perforce-command-line/</link>
					<comments>https://www.scmgalaxy.com/tutorials/cheat-sheet-of-perforce-command-line/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 20 Jun 2009 04:59:12 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Cheat Sheet]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Data-mining commands]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[p4 changes]]></category>
		<category><![CDATA[p4 filelog]]></category>
		<category><![CDATA[p4 files]]></category>
		<category><![CDATA[P4V]]></category>
		<category><![CDATA[Perforce Command Reference]]></category>
		<category><![CDATA[Perforce command-line]]></category>
		<category><![CDATA[Perforce command-line Cheat Sheet]]></category>
		<category><![CDATA[Perforce command-line Guide]]></category>
		<category><![CDATA[Perforce command-line Help]]></category>
		<category><![CDATA[Perforce command-line List]]></category>
		<category><![CDATA[Perforce command-line Reference]]></category>
		<category><![CDATA[Perforce command-line Resource]]></category>
		<category><![CDATA[Perforce command-line Tutorial]]></category>
		<category><![CDATA[Reference guide]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/06/20/cheat-sheet-of-perforce-command-line/</guid>

					<description><![CDATA[<p>A way to remember data-mining commands The following is a set of questions that will be used during the Perforce [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cheat-sheet-of-perforce-command-line/">“Cheat Sheet” of Perforce command-line | Perforce command-line Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-4061 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/perforce-command-line-cheat.png" alt="perforce-command-line-cheatsheet" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/perforce-command-line-cheat.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/perforce-command-line-cheat-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<table border="0" width="100%">
<tbody>
<tr>
<td class="HEADING">A way to remember data-mining commands</td>
</tr>
<tr>
<td class="HEADING_BODY">The following is a set of questions that will be used during the Perforce training to remind students which “data-mining” commands to use for specific situations. Perforce is a terrific tool, but it’s easy to get lost in the choices between “p4 files” and “p4 changes” and “p4 filelog” and so on. This list can help a great deal.</p>
<table border="1" width="100%">
<tbody>
<tr>
<td bgcolor="#666666">
<div align="center"><strong><span style="color: #ffffff;">the question starts with…</span></strong></div>
</td>
<td bgcolor="#666666">
<div align="center"><strong><span style="color: #ffffff;">the answer starts with…<br />
</span></strong></div>
</td>
<td bgcolor="#666666">
<div align="center"><strong><span style="color: #ffffff;">Examples</span></strong></div>
</td>
</tr>
<tr>
<td>“What are the filenames that…?”</td>
<td>“p4 files….”</td>
<td>p4 files //depot/…#have<br />
p4 have<br />
p4 files //depot/…<br />
(which is the same as)<br />
p4 files //depot/…#head<br />
p4 files //depot/…@label<br />
p4 files //depot/…@client<br />
p4 files //depot/…@2001/02/12<br />
p4 files //depot/…@1541</td>
</tr>
<tr>
<td>“What are the differences between the<br />
workspace copy of XXX and the depot<br />
copy of XXX?”</td>
<td>“p4 diff …”</td>
<td>• p4 diff file.c<br />
• p4 diff file.c#2<br />
• p4 diff file.c#head<br />
• p4 diff //… or “p4 diff”<br />
• p4 diff –se</td>
</tr>
<tr>
<td>“What are the differences the depot copy<br />
of ______ and the depot copy of ______?”</td>
<td>“p4 diff2 ….”</td>
<td>• p4 diff2 file1.c file2.c<br />
• p4 diff2 file1.c#1 file.c#2<br />
• p4 diff2 dir1/… dir2/…<br />
• p4 diff2 dir1/…@now dir1/…@2000/01/02</td>
</tr>
<tr>
<td>“Tell me everything about changelist #___.”</td>
<td>“p4 describe”</td>
<td>• p4 describe 1231</td>
</tr>
<tr>
<td>“What’s a list of changelists that….?”</td>
<td>“p4 changes….”</td>
<td>• p4 changes<br />
(which is the same as)<br />
p4 changes //…<br />
• p4 changes file.c<br />
• p4 changes –i file.c | grep 1255<br />
• p4 changes //depot/…@label1,@label2</td>
</tr>
</tbody>
</table>
<p>&nbsp;</td>
</tr>
<tr>
<td class="HEADING">“Cheat Sheet” of Perforce command-line</td>
</tr>
<tr>
<td class="HEADING_BODY">The following list is a set of helpful commands that anyone can run, but that the person administering the Perforce codelines will<br />
be using a lot. They’re included here for quick reference.</p>
<table border="1" width="100%">
<tbody>
<tr>
<td align="left" valign="top" bgcolor="#999999">
<div align="center"><span style="color: #ffffff;"><strong>Function</strong></span></div>
</td>
<td align="left" valign="top" bgcolor="#999999">
<div align="center"><span style="color: #ffffff;"><strong>Commands</strong></span></div>
</td>
</tr>
<tr>
<td align="left" valign="top">Create a new workspace…<br />
1. That’s modeled after the<br />
“1.0dev” workspace – same<br />
mappings<br />
2. That’s the Perforce defaults,</td>
<td align="left" valign="top">Set the workspace name using “p4 set” or in the environment. Then run:<br />
1. p4 client –t 1.0dev<br />
2. p4 client</td>
</tr>
<tr>
<td align="left" valign="top">Retrieve a file as of<br />
1. Now (head revision)<br />
2. April 15, 2000<br />
3. Label “xyz”<br />
4. Changelist 123456<br />
5. the revision that client<br />
“jab.work” has retrieved<br />
6. The revision you had before<br />
accidently bashing your disk</td>
<td align="left" valign="top">Use “p4 sync” as follows:<br />
1. p4 sync file.java<br />
p4 sync file.java#head<br />
p4 sync file.java@now<br />
2. p4 sync file.java@2000/04/15<br />
3. p4 sync file.java@xyz<br />
4. p4 sync file.java@123456<br />
5. p4 sync file.java@jab.work<br />
6. p4 sync –f file.java#have<br />
See “p4 help revisions” for more examples. Note that anywhere that “file.java” is used in these<br />
examples, a full pathname (“c:\work\projects\file.java”) or depot name<br />
(“//depot/rel_218/base/projects/file.java”) could be used.</td>
</tr>
<tr>
<td align="left" valign="top">Open a file for:<br />
1. add<br />
2. edit<br />
3. delete<br />
And then publish the change to others<br />
.</td>
<td align="left" valign="top">Use “p4” with the appropriate verb:<br />
• p4 add file.java<br />
• p4 edit file.java<br />
• p4 delete file.java<br />
Then “p4 submit” to publish it</td>
</tr>
<tr>
<td align="left" valign="top">What have I changed in the files I<br />
have opened for edit?</td>
<td align="left" valign="top">• p4 diff (for all opened files)<br />
• p4 diff file1 file2 (for specific files)</td>
</tr>
<tr>
<td align="left" valign="top">Undo a checkout.</td>
<td align="left" valign="top">If the file hasn’t been submitted yet:<br />
• Use “p4 revert –a” to find all opened files that have no modifications – it’ll revert those.<br />
• Use “p4 revert file.java” to revert an individual file.<br />
• Use “p4 revert //…” to revert all files.<br />
Remember that “p4 revert” is irreversible.<br />
If the file has been submitted, you’ll need to open the file for edit and check in a prior revision.<br />
Use very good change descriptions to say what you did and why.</td>
</tr>
<tr>
<td align="left" valign="top">Interrupt your work to edit a single<br />
file and check it in, without any other<br />
disruptions. (You’re hacking Java and<br />
someone needs a “relnotes.txt”<br />
updated ASAP to issue a release.)</td>
<td align="left" valign="top">Two ways:<br />
1. Edit the file and submit only that file.<br />
• p4 edit relnotes.txt<br />
• do the modifications<br />
• p4 submit relnotes.txt<br />
2. Make a new changelist to manage just that change.<br />
• p4 change<br />
remove all the files in this change from the Files: section, it’ll create an empty<br />
change.<br />
• p4 edit –c XXX relnotes.txt<br />
where XXX is the change number in the previous step<br />
• p4 submit –c XXX</td>
</tr>
<tr>
<td align="left" valign="top">Publish your work to others</td>
<td align="left" valign="top">“p4 submit”</td>
</tr>
<tr>
<td align="left" valign="top">Compress the data on the net<br />
because you have a slow modem line<br />
between your workspace and the<br />
server.</td>
<td align="left" valign="top">Run “p4 client” for your workspace, and change the options from “nocompress” to “compress”.<br />
(Read “p4 help client” for details.)</td>
</tr>
<tr>
<td align="left" valign="top">Get the list of…<br />
1. All changelists applied to the<br />
base codeline<br />
2. … to the prodxyz codeline<br />
3. … to the prodxyz codeline,<br />
including those applied<br />
originally to another codeline<br />
and integrated into prodxyz<br />
4. All revisions of file.java</td>
<td align="left" valign="top">Use “p4 changes” or “p4 filelog” as follows:<br />
1. p4 changes //depot/eng/…<br />
2. p4 changes //depot/eng/prodxyz/…<br />
3. p4 changes –i //depot/eng/prodxyz/…<br />
4. p4 filelog file.java</td>
</tr>
<tr>
<td align="left" valign="top">Push … from the base codeline<br />
(“prodxyz”) to the 1.0.1 codeline<br />
(“prodxyz-1.0.1”):<br />
1. Push change #1232<br />
2. From change #129 to #134<br />
3. all changes in the base<br />
codeline</td>
<td align="left" valign="top">Use “p4 integrate –b prodxyz-1.0.1” as the place to start, in each case:<br />
1. p4 integ –b prodxyz-1.0.1 //…@=1232<br />
2. p4 integ –b prodxyz-1.0.1 //…@129,@134<br />
3. p4 integ –b prodxyz-1.0.1 (no additional args)<br />
Note that this assumes that the named branch specification “prodxyz-1.0.1” has been created<br />
by your project lead or administrator using “p4 branch”.</td>
</tr>
<tr>
<td align="left" valign="top">Push … from the prodxyz-1.0.1<br />
codeline to the base (“prodxyz”)<br />
codeline:<br />
1. Push change #1235<br />
2. From change #127 to #128<br />
3. all changes in the base</td>
<td align="left" valign="top">Use “p4 integrate –b prodxyz-1.0.1” as the place to start, in each case:<br />
1. p4 integ –b prodxyz-1.0.1 –r @=1235<br />
2. p4 integ –b prodxyz-1.0.1 –r //…@127,@128<br />
3. p4 integ –b prodxyz-1.0.1 –r (no additional args)<br />
The “-r” reverses the order of source/target in that named branch specification.<br />
Note that for the ‘selective integration’ cases, you’ll want to be VERY CAUTIOUS of ‘accept<br />
theirs’.</td>
</tr>
<tr>
<td align="left" valign="top">Show the ‘diff’ between the<br />
prodxyz-1.0.1 codeline and its<br />
parent</td>
<td align="left" valign="top">“p4 diff2 –b prodxyz-1.0.1” (This works because “prodxyz” is the name of the branch<br />
specification, not because “prodxyz” is part of “//depot/prodxyz/…”)</td>
</tr>
<tr>
<td align="left" valign="top">What branches do I have?</td>
<td align="left" valign="top">If you use “p4 branch” to create branch specifications and use them consistently, then “p4<br />
branches” provides this info.</td>
</tr>
<tr>
<td align="left" valign="top">How do I make a new codeline<br />
named prodxyz-2.0?</td>
<td align="left" valign="top">There are several steps:<br />
1. Make a named branch specification. Save it.<br />
• “p4 prodxyz-2.0”<br />
• if you want to exactly imitate another branch (e.g. prodxyz), use<br />
“p4 branch –o prodxyz-1.0.1 &gt; tmp” to capture the output, edit this temporary file<br />
and replace the “1.0.1” references with “2.0”, then run “p4 branch –i &lt; tmp”.<br />
2. Run the “p4 integrate” command to populate this new codeline. Submit the change.<br />
• p4 integrate –b prodxyz-2.0<br />
or, if you want to push content as of a certain label (e.g. “xyz”) from the parent,<br />
p4 integrate –b prodxyz-2.0 //…@xyz<br />
• p4 submit<br />
3. Send e-mail telling everyone about this codeline and what it’s used for.</td>
</tr>
<tr>
<td align="left" valign="top">Put everything onto a laptop, you’re<br />
going to the beach and want to hack.<br />
(This assumes that you won’t be<br />
connected to a net while away.)</td>
<td align="left" valign="top">There are several steps:<br />
1. Connect the laptop to the net.<br />
2. Run “p4 sync” to populate the source onto the laptop.<br />
3. Leave for the beach.<br />
4. While editing, use “chmod” or “attrib” to make the files writeable. Make your changes.<br />
5. Get back to work, reconnect to the net.<br />
6. Run the following commands to tell you what’s updated and open them for<br />
add/edit/delete:<br />
• p4 diff –se | p4 –x – edit<br />
• p4 diff –sd | p4 –x – delete<br />
• find . –type f –print | p4 –x – add<br />
Then inspect what’s opened (“p4 opened”) and what you’ve changed (“p4 diff”). Submit or<br />
revert as appropriate.</td>
</tr>
<tr>
<td align="left" valign="top">Run a checkpoint</td>
<td align="left" valign="top">“p4 admin checkpoint” – only an administrator can run this. (An administrator has “super”<br />
permissions in the “p4 protect” data.)<br />
Be sure to back up the checkpoint, the current journal, and each of the “depot” directories on<br />
the server machine!</td>
</tr>
<tr>
<td align="left" valign="top">Change the security/permissions</td>
<td align="left" valign="top">“p4 protect” – only an administrator can run this.<br />
Also…<br />
“p4 protects” – used in 2006.1 and later to TELL you your permissions .</td>
</tr>
<tr>
<td align="left" valign="top">Make a label</td>
<td align="left" valign="top">It’s a two-step process:<br />
1. Make the label using “p4 label xxx”<br />
2. Populate it using “p4 labelsync –l xxx”<br />
or if you have a specific list of files,<br />
“p4 labelsync –l xxx file1 file2 …”.</td>
</tr>
<tr>
<td align="left" valign="top">Copy a label’s contents to another<br />
label. Assume that the existing label<br />
is “xxx” and the new label is to be<br />
“abc”.</td>
<td align="left" valign="top">Again, a two-step process:<br />
1. Make the label using “p4 label –t xxx abc”<br />
2. Populate it using<br />
“p4 labelsync –l abc //…@xxx”<br />
Note that the second step is really identical to the second step in the previous question – we’re<br />
just specifying a very specific list of revisions [of files] to include in the new label.<br />
(Also…<br />
In 2005.1 and later, “p4 tag” will make the label and apply it to a set of files.)</td>
</tr>
<tr>
<td align="left" valign="top"></td>
<td align="left" valign="top"></td>
</tr>
</tbody>
</table>
<p>&nbsp;</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cheat-sheet-of-perforce-command-line/">“Cheat Sheet” of Perforce command-line | Perforce command-line Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/cheat-sheet-of-perforce-command-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Command Line to find a Change list properties in perforce server</title>
		<link>https://www.scmgalaxy.com/tutorials/command-line-to-find-a-change-list-properties-in-perforce-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/command-line-to-find-a-change-list-properties-in-perforce-server/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 12 Jan 2009 12:04:18 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Changelist]]></category>
		<category><![CDATA[Changes]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Command Reference]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[Line]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[p4 Command Line]]></category>
		<category><![CDATA[Perforce get changelist number]]></category>
		<category><![CDATA[Perforce server]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/01/12/command-line-to-find-a-change-list-properties-in-perforce-server/</guid>

					<description><![CDATA[<p>Command Line to find a Change list properties and associated path of the file in perforce server view: Examples of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/command-line-to-find-a-change-list-properties-in-perforce-server/">Command Line to find a Change list properties in perforce server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3644 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/command-line-to-find-a-chan.png" alt="command-line-to-find-a-change-list-properties-in-perforce-server" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/command-line-to-find-a-chan.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/command-line-to-find-a-chan-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Command Line to find a Change list properties and associated path of the file in perforce server view:</strong></p>
<p>Examples of the command you want:<br />
p4 describe 1231928<br />
p4 describe -s 1231928<br />
p4 files @=1231928</p>
<p>Where 1231928 is the change list number.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/command-line-to-find-a-change-list-properties-in-perforce-server/">Command Line to find a Change list properties in perforce server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/command-line-to-find-a-change-list-properties-in-perforce-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Step by step guide on PerforceDFiles Tool &#124; Perforce Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/perforcedfiles-tool/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforcedfiles-tool/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 07 Jan 2009 18:39:25 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[p4]]></category>
		<category><![CDATA[Perforce files]]></category>
		<category><![CDATA[Perforce Guide]]></category>
		<category><![CDATA[Perforce server]]></category>
		<category><![CDATA[Perforce Tutorial]]></category>
		<category><![CDATA[PerforceDFiles]]></category>
		<category><![CDATA[PerforceDFiles Tool]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[tool]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/01/07/perforcedfiles-tool/</guid>

					<description><![CDATA[<p>PerforceDFiles Use: This tool can be used to add thousands of files and directory in perforce server on single click [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforcedfiles-tool/">Step by step guide on PerforceDFiles Tool | Perforce Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3650 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/perforcedfiles-tool.png" alt="perforcedfiles-tool" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/perforcedfiles-tool.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/perforcedfiles-tool-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>PerforceDFiles</strong><br />
<strong>Use: </strong><br />
<strong>This tool can be used to add thousands of files and directory in perforce server on single click which is having different-different hierarchy </strong></p>
<p><strong>Prerequisite:</strong><br />
Java should install and class path should set.</p>
<p><strong>Step1: </strong><br />
Put the code under ClientSpec root folder in the same hierarchy which you want to add in perforce server.</p>
<p><strong>Step2:</strong><br />
Create a changelist first. Just go to command prompt and type “p4 change”. Perforce will automatically create a changelist and will give you the changelist number. It will also ask you to update a text file with the changelist description. Just give the appropriate description there. Note the changelist number.</p>
<p><strong>Step3</strong>:</p>
<p>The file file has one file called “config.properties”. So first update it with two values. The changelist number and the source path. The source path can be “D:/Perforce/Components/DatabaseServer”.<br />
Use forward slash only “/”.</p>
<p><strong>Step4:</strong> Once these files are updated, you can run the script file “makescript.bat” which will update the “checkinscripts.bat” with new checkin scripts.</p>
<p><strong>Step5:</strong> Run “checkinscripts.bat” and refresh perforce console. See that new folder is created below components folder and the files are inside</p>
<p><strong>Note: </strong>The file which will not be added into perforce server can be found in “missedfiles.log”</p>
<p>&nbsp;</p>
<p><strong>Links: </strong><a href="index.php?option=com_docman&amp;Itemid=110"><strong>http://www.scmgalaxy.com/index.php?option=com_docman&amp;Itemid=110</strong></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforcedfiles-tool/">Step by step guide on PerforceDFiles Tool | Perforce Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforcedfiles-tool/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
