<?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>revert Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/revert/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/revert/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 10:15:12 +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 revert the changes once its submitted in Gerrit</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 13:10:23 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[patch set]]></category>
		<category><![CDATA[patchsets]]></category>
		<category><![CDATA[revert]]></category>
		<category><![CDATA[Submit]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5229</guid>

					<description><![CDATA[<p>How to revert the changes once its submitted in Gerrit The Revert button is available if the change has been [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</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-5273" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit-2-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to revert the changes once its submitted in Gerrit</strong></p>
<p><strong>The Revert button is available if the change has been submitted</strong>. This Reverts the change via creating a new one. When the Revert button is pressed, a panel will appear to allow the user to enter a commit message for the reverting change.</p>
<p>Once a revert change is created, the original author and any reviewers of the original change are added as reviewers and a message is posted to the original change linking to the revert.</p>
<p>However, <strong>patchsets can not be reverted</strong>. so first you have to checkout one of the previous patchset. you can get the command from Gerrit review board at each patchset download panel. After checking it out amend it to generate new commit hash then pushed again as a new patchset.</p>
<p>If I have multiple patch set versions for one change in Gerrit, You can only submit the latest patch set version. The design assumes that the most recent patch set is the one developers will review and test, and as such older patch sets can not be submitted.</p>
<p><strong>Good Read</strong><br />
http://www.saros-project.org/node/155</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-revert-the-changes-once-its-submitted-in-gerrit/">How to revert the changes once its submitted in Gerrit</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-revert-the-changes-once-its-submitted-in-gerrit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Perforce</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 21:12:51 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Changelist]]></category>
		<category><![CDATA[Perforve customization]]></category>
		<category><![CDATA[revert]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4784</guid>

					<description><![CDATA[<p>Perforce Customization To Revert Changelist</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce/">Perforce</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Perforce Customization To Revert Changelist</p>
<p><img decoding="async" class="alignnone" src="http://community.scmgalaxy.com/serve-file/e0/l1481295943/di/c1/ilQNp3f2A1nYWNrLbPKyv694jnMlScRTKGlu6dOpNUo/1/84/file/largethumb1297753493clip_image002.jpg" alt="perforce revert change list" width="440" height="336" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce/">Perforce</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Perforce Customization To Revert Changelist</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist-2/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 21:09:47 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Changelist]]></category>
		<category><![CDATA[Perforce Customization]]></category>
		<category><![CDATA[revert]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4782</guid>

					<description><![CDATA[<p>Perforce Customization To Revert Changelist</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist-2/">Perforce Customization To Revert Changelist</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Perforce Customization To Revert Changelist</strong></p>
<p><img decoding="async" class="alignleft" src="http://community.scmgalaxy.com/serve-file/e0/l1481295943/di/c1/k2wnX-gvqSh_xCOkFoFXYj_pOXv7J77wR7WoQIJD23I/1/84/file/largethumb1297753528clip_image003.jpg" alt="Perforce Customization To Revert Changelist" width="576" height="298" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist-2/">Perforce Customization To Revert Changelist</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Perforce Customization To Revert Changelist</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 06:29:26 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Changelist]]></category>
		<category><![CDATA[Customize Perforce]]></category>
		<category><![CDATA[Perforce Customization]]></category>
		<category><![CDATA[revert]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4577</guid>

					<description><![CDATA[<p>Perforce Customization To Revert Changelist Attachech Python File: Download here Perforce Python script to revert Changelist Purpose In Perforce if we [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist/">Perforce Customization To Revert Changelist</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Perforce Customization To Revert Changelist</strong></p>
<p><strong>Attachech Python File: Download here</strong> <a href="http://community.scmgalaxy.com/pg/file/rajeshkumar/read/16737/perforce-python-script-to-revert-changelist">Perforce Python script to revert Changelist</a></p>
<p><strong>Purpose</strong></p>
<p>In Perforce if we check in any change list and in case if we want to revert the change list. Perforce does not have feature to Revert Change List.</p>
<p><strong>We have to do it manually by using following steps.</strong></p>
<p>1) Take a change list version which is predecessor of the current one which we want to revert<br />
2) Do head sync to that change list revision.<br />
3) Check out the files which we want to revert. Resolve them and check in</p>
<p>But we can very well eliminate the above three manual steps and automate the process of Reverting Change list by Customizing Perforce to have Revert Change List Feature.<br />
This feature will be very useful if the Changelist which we want to revert have large number of files</p>
<p><strong>Risk</strong><br />
There is no Risk with this feature because the changelist which we revert are not directly submitted. When we do a Revert Change List a new Change List will be created and we have the capability to resolve the conflict if there are more than one Revision for that file.</p>
<p><strong>Required Software Version</strong><br />
Download Recent version of Python from <a href="http://www.python.org/download/" rel="nofollow">http://www.python.org/download/</a> and   Install Python and set the path for library files of python in the environment variables just like java.</p>
<p><strong>Software Program Required for Customization</strong></p>
<p>I have downloaded Python Program from the following URL which will help in Reverting Change List. (<a href="http://www.tilander.org/aurora/2007/06/reverting-a-perforce-changelis.html" rel="nofollow">http://www.tilander.org/aurora/2007/06/reverting-a-perforce-changelis.html</a>).</p>
<p><strong>Perforce Client Side Changes for Customization</strong></p>
<p>Following Customization needs to be done to add Revert ChangeList option in  perforce.</p>
<p>1.    Open Perforce<br />
2.    Go to Tools &gt;&gt; Customize<br />
3.    Click Add Button<br />
4.    Enter Name as RevertChangeList, Give the location of the Python Program<br />
5.    Give the argument as -c $c -p $p -u $u %c<br />
C – Client<br />
P &#8211;  Port Number<br />
U –User</p>
<p><a href="http://community.scmgalaxy.com/mod/file/download.php?file_guid=16734"><img decoding="async" src="http://community.scmgalaxy.com/mod/file/thumbnail.php?file_guid=16734&amp;size=large" alt="image" /></a></p>
<p>Note : Make sure “Close window upon exit” is not checked initially for the first time. So that we can see the success message in console.<br />
In case if it is checked. If the Python Program fails. Then we may not be able to see the message.</p>
<p>6.    Once this is done then Click View Submitted Change List. Right click the change list which you want to revert and click RevertChangeList.</p>
<p>&nbsp;</p>
<p><a href="http://community.scmgalaxy.com/mod/file/download.php?file_guid=16735"><img decoding="async" src="http://community.scmgalaxy.com/mod/file/thumbnail.php?file_guid=16735&amp;size=large" alt="image" /></a></p>
<p>7.    Once this is done all the files that were reverted will be available under Default Changelist.<br />
8.    Create New Changelist and move all from Default Changelist.<br />
9.    Check the whether they are reverted properly. If there are some version conflict then resolve them and checkin.<br />
10.    Using this feature I had reverted changelist Number : 163806<br />
11.    Outside Perforce also this utility can be run. We can also run the utility from windows prompt by giving following command</p>
<p><strong>Command :</strong><br />
p4revert.py -c &lt;Client&gt; -p &lt;Port&gt; -u &lt;User&gt; &lt;ChangeList&gt;</p>
<p>Example:<br />
p4revert.py -c Mramchandran -p 10.10.50.201:1666 -u jayesh 163806</p>
<p>This is not tested. It is also convenient to use through perforce.</p>
<p><strong>Troubleshooting</strong></p>
<p>1.If my Revert ChangeList contains file say A.java and that file is also part of another change list in the client machine. Then the file A.java will not be reverted.<br />
2. Always check the number of files that are present in the changelist is same as same number of files that are present in the new change list once RevertChangeList is done.</p>
<p><strong>Limitations</strong><br />
1. The only limitation this tool has is the Revert ChangeList customization is written in Python. It will be good if we can understand the logic and convert to Java.</p>
<p><strong>References</strong></p>
<p>1. <a href="http://www.tilander.org/aurora/2007/06/reverting-a-perforce-changelis.html" rel="nofollow">http://www.tilander.org/aurora/2007/06/reverting-a-perforce-changelis.html</a><br />
2. <a href="http://kb.perforce.com/?article=014" rel="nofollow">http://kb.perforce.com/?article=014</a><br />
3. <a href="http://www.python.org/download/" rel="nofollow">http://www.python.org/download/</a></p>
<p>Contributed Made by: Ramchandran M</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist/">Perforce Customization To Revert Changelist</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce-customization-to-revert-changelist/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Reopen and revert files in perforce.</title>
		<link>https://www.scmgalaxy.com/tutorials/reopen-and-revert-files-in-perforce/</link>
					<comments>https://www.scmgalaxy.com/tutorials/reopen-and-revert-files-in-perforce/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 04 Dec 2017 12:09:58 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[revert]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1558</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Reopen and revert files in perforce. If the perforce user access has been removed/blocked from user [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/reopen-and-revert-files-in-perforce/">Reopen and revert files in perforce.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Reopen and revert files in perforce.</strong><br />
If the perforce user access has been removed/blocked from user table and they have so many files opened. There could be two ways to to revert the files.</p>
<p>Problem:<br />
p4 -p server:port -u username -c clientname -H hostname revert //&#8230;<br />
Access for user &#8216;username &#8216; has not been enabled by &#8216;p4 protect&#8217;.<br />
p4 -p server:port -u username1 -c clientname -H hostname revert -k //&#8230; ( tried using differernt user &#8216;username&#8217;)<br />
//depot/rajesh/file1.txt#none &#8211; belongs to user username, not reverted</p>
<p>Solution 1:<br />
So I found one solution for it<br />
another user could take ownership of the files. Here&#8217;s an example:<br />
Users &#8216;rajesh&#8217; and &#8216;kumar&#8217; have each opened a file in workspace &#8216;temporary&#8217;.<br />
>p4 opened -a //depot/test&#8230;<br />
//depot/test.js#3 &#8211; edit default change (xtext) by rajesh@temporary<br />
//depot/test2.js#2 &#8211; edit default change (text) by kumar@temporary</p>
<p>I use the &#8216;reopen&#8217; command to change the user:<br />
>p4 -u kumar -c temporary reopen //depot/test&#8230;<br />
//depot/test.js#3 &#8211; reopened; user kumar<br />
//depot/test2.js#2 &#8211; reopened; user kumar</p>
<p>As these changes are now &#8216;mine&#8217;, I can revert them (noting the &#8216;-k&#8217; flag here):<br />
>p4 -u kumar -c temporary revert -k //depot/test&#8230;<br />
//depot/test.js#3 &#8211; was edit, cleared<br />
//depot/test2.js#2 &#8211; was edit, cleared</p>
<p>Solution 2: Add the missing user for temporary and follow the steps as in problem statement<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re: Reopen and revert files in perforce.</strong><br />
Problem</p>
<p>Error message when you try to delete the clientspec of users<br />
Client &#8216;rajesh-test-client&#8217; has files shelved; use &#8216;shelve -df&#8217; to remove them, and then try again.</p>
<p>Solution:</p>
<p>Some times you may not able to delete client spec and user due to many reason. if user has opened few files in another users clientspec. please follow the steps as given</p>
<p>p4 -p server:port -u username users | grep username<br />
p4 -p server:port -u username clients | grep username<br />
p4 -p server:port -u username client -f -d clientname<br />
p4 -p server:port -u username user -d -f username<br />
p4 -p server:port -u username opened -C clientname //&#8230;<br />
p4 -p server:port -u username client clientname<br />
p4 -p server:port -u username describe 662626<br />
p4 -p server:port -u username protect -o | grep jfung<br />
p4 -p server:port -u username protect<br />
p4 -p server:port -u username login jfung<br />
p4 -p server:port -u username -c clientname -H localhost.localdomain revert -k //&#8230;<br />
p4 -p server:port -u username clients | grep username<br />
p4 -p server:port -u username opened -u username //&#8230;<br />
p4 -p server:port -u username client -d -f clientanam<br />
p4 -p server:port -u username user -d -f username<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re: Reopen and revert files in perforce</strong>.<br />
Problem: One more very interesting scenario where there is no files pending but few files shelved in pending change list.</p>
<p>Answer:<br />
p4 -p server:port -u username client -d -f worksapce_name<br />
Client &#8216;worksapce_name&#8217; has files shelved; use &#8216;shelve -df&#8217; to remove them, and then try again.</p>
<p>p4 -p server:port -u username opened -a //&#8230; | grep worksapce_name<br />
NONE</p>
<p>p4 -p server:port -c clientname changes -s pending -c workspace_name //&#8230;<br />
Change 217927 on 2011/07/13 by username@workspace_name *pending* &#8216;<enter description here> <saved'
Change 214935 on 2011/06/29 by username@workspace_name *pending* 'TootlTip Bug.. Got Deffered '
 
p4 -p server:port -c clientname changes -s pending -c workspace_name -s shelved -c workspace_name //...
Change 217927 on 2011/07/13 by username@workspace_name *pending* '<enter description here> <saved'
Change 214935 on 2011/06/29 by username@workspace_name *pending* 'TootlTip Bug.. Got Deffered '
 
p4 -p server:port -u username change -d 217927
Change 217927 belongs to client workspace_name.
 
p4 -p server:port -c workspace_name change -d 217927
Change 217927 belongs to user username.
 
p4 -p server:port -u username -c workspace_name change -d 217927
 
p4 -p server:port -u username -c workspace_name change -d 217927
Change 217927 has shelved files associated with it and can't be deleted.
 
p4 -p server:port -u username -c workspace_name shelve -r -d 217927
Change 217927 has shelved files associated with it and can't be deleted.
 
p4 -p server:port -u username -c workspace_name shelve -c 217927 -d
 
p4 -p server:port -u username -c workspace_name shelve -c 214935 -d
 
p4 -p server:port -u username client -d -f workspace_name
Client workspace_name deleted.
 
p4 -p server:port -u username user -d -f username
Regards,
Rajesh Kumar
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re: Reopen and revert files in perforce.</strong><br />
How to reverts file opened by Perforce user?<br />
To Revert these changes –<br />
This will list down the files and client&#8217;s name where the file has been opened.<br />
p4 -p Server:port -u rajesh opened –a | grep other_user</p>
<p>Now get the host name of the client,<br />
p4 -p Server:port -u rajesh client -o admin-ols-dump | grep –i host</p>
<p>Login as user from super user account.<br />
p4 -p Server:port -u rajesh login other_user</p>
<p>Frame the commands and run it in the given fashion.<br />
p4 -p Server:port -u other_user -c <clientname> -h <hostname> revert -k //depot/releases/filename.txt<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/reopen-and-revert-files-in-perforce/">Reopen and revert files in perforce.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/reopen-and-revert-files-in-perforce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
