<?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>Perforce Interview Q&amp;A Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/perforce-interview-qa/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/perforce-interview-qa/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:51:22 +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>Interview Questions and Answer for Perforce Version Control Tool</title>
		<link>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/</link>
					<comments>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 22 Sep 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Perforce Interview]]></category>
		<category><![CDATA[Perforce Interview Q&A]]></category>
		<category><![CDATA[Perforce Interview Questions]]></category>
		<category><![CDATA[Perforce Interview Questions Answers]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[Top]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[Version Control Interview Questions and Answer]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/09/22/interview-questions-and-answer-for-perforce-version-control-tool/</guid>

					<description><![CDATA[<p>Some of the perforce commands which is not commonly used but useful. p4 annotate &#8211; Print file lines along with [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/">Interview Questions and Answer for Perforce Version Control Tool</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-3543 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question.png" alt="perforce-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/09/perforce-interview-question-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Some of the perforce commands which is not commonly used but useful.</strong><br />
p4 annotate &#8211; <a name="1041869"></a>Print file lines along with their revisions.<br />
<a name="1048072"></a>e.g p4 annotate file.c</p>
<p><strong>How to ignore files/folder in perforce workspace/client?</strong><br />
Assuming you have a client named &#8220;CLIENT&#8221;, a directory named &#8220;foo&#8221; (located at your project root), and you wish to ignore all .dll files in that directory tree, you can add the following lines to your workspace view to accomplish this:</p>
<p>-//depot/foo/*.dll //CLIENT/foo/*.dll<br />
-//depot/foo/&#8230;/*.dll //CLIENT/foo/&#8230;/*.dll</p>
<p>The first line removes them from the directory &#8220;foo&#8221; and the second line removes them from all sub directories. Now, when you &#8216;Reconcile Offline Work&#8230;&#8217;, all the .dll files will be moved into &#8220;Excluded Files&#8221; folders at the bottom of the folder diff display. They will be out of your way, but can still view and manipulate them if you really need to.</p>
<p>You can also do it another way, which will reduce your &#8220;Excluded Files&#8221; folder to just one, but you won&#8217;t be able to manipulate any of the files it contains because the path will be corrupt (but if you just want them out of your way, it doesn&#8217;t matter).</p>
<pre>-//depot/foo.../*.dll //CLIENT/foo.../*.dll</pre>
<p><a href="http://stackoverflow.com/questions/55449/can-you-ignore-a-file-in-perforce">Reference</a><br />
<a href="http://answers.perforce.com/articles/KB_Article/Exclude-Directories-from-Commands">How can I exclude a directory from a Perforce command?</a></p>
<p>P4IGNORE<br />
Specify a file that contains a list of files to ignore when adding files to the depot and reconciling workspaces.<br />
<a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/P4IGNORE.html">Reference</a></p>
<p><strong>How to check last 10 submitted, pending, or shelved changelists that include any file under the project directory?</strong><br />
p4 changes -m 5 //depot/project/&#8230;</p>
<p><strong>How to check last 10 submitted or pending, or shelved changelists that include any file under the project directory?</strong><br />
p4 changes -m 1 -s submitted | pending | shelved</p>
<p>Interview Questions Related to Perforce Admin</p>
<ol>
<li>How to take perforce backup</li>
<li>How to restore perforce backup</li>
<li>How to verify health of the perforce repos database</li>
<li>What is the ise of p4 dbverify and p4 verify</li>
</ol>
<p><strong>What is the use of p4 admin commands.</strong></p>
<p>The p4 admin command allows Perforce superusers to perform administrative tasks even when working from a different machine than the one running the shared Perforce service.<br />
p4 [g-opts] admin checkpoint [ -z | -Z ] [ prefix ]<br />
p4 [g-opts] admin journal [ -z ] [ prefix ]<br />
p4 [g-opts] admin stop<br />
p4 [g-opts] admin restart<br />
p4 [g-opts] admin updatespecdepot [ -a | -s type ]<br />
p4 [g-opts] admin resetpassword -a | -u user<br />
Reference – <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/p4_admin.html">Click here</a></p>
<p><strong>How to remove files from perforce permanently?</strong><br />
p4 archive -p with caution. This is the one of only two commands in Perforce that actually removes file data. (The other command that removes file data is p4 obliterate.)</p>
<p><strong>How to set properly in Perforce?</strong><br />
The Perforce service offers three ways of storing metadata: counters/keys, attributes, and properties.</p>
<p>If your application requires only the flat storage of simple key/value pairs, and attempts to implement no security model, use the p4 counters and p4 keys commands.</p>
<p>The p4 property command can be used by administrators to view and update property definitions stored in the Perforce service. The service does not use the property definitions; it provides this capability for other Perforce applications, such as P4V</p>
<p>If your application&#8217;s metadata is associated with particular files, use p4 attribute.</p>
<p>If your application&#8217;s metadata is not associated with files, and if you have a requirement to restrict its visibility to users, groups, and/or to control the precedence of multiple values using sequence numbers, use p4 property.</p>
<p>p4 property -n name -v value<br />
p4 counter mycounter 123<br />
p4 key mykey 12<br />
p4 attribute -n name [ -v value ] files&#8230;</p>
<p><strong>Perforce Integration with other Tools</strong></p>
<ol>
<li>Gitfushion</li>
<li>Swarm</li>
<li>Replication</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/">Interview Questions and Answer for Perforce Version Control Tool</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/interview-questions-and-answer-for-perforce-version-control-tool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
