Thursday, July 1, 2010

Resolving SVN conflict

At times there may arise a conflict when working with svn. Let's see how we can minimize it. when a conflict occurs four new files are created. they are the followings:
myfile – the original with markers
myfile.mine – your version
myfile.r5 – the original your worked with
myfile.r6 – the most update version from your colleague
There are several options for resolving conflicts.

1. I can keep all my works and discard the changes my colleague made with the following command:
$ cp myfile.mine myfile
$ svn resolved myfile
Resolved conflicted state of 'myfile'
2. I will discard all my changes and keep my colleagues work with these commands:
$ svn revert myfile
Reverted 'myfile'
$ svn update myfile
At revision 6.
The ‘resolved’ command will clean up all the special files that were generated. Now commit your changes.

3. we can merge both version. we need to do this manually removing the markers and placing the codes of my mine and my colleagues as necessary. then do the following command:
$ svn resolved myfile
Resolved conflicted state of 'myfile'
Now commit your changes.


See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Technical Support:

If you still face the technical problem, please get support of our highly skilled technical team: garazlab.com.


Wordpress Plugins:
  1. Real-Time Health Data from Every Where:WP plugin to display real-time health data & increase sale by promoting user specific products according to health information: garazlab.com.
  2. Woocommerce Stock Notification Builder:Sends desktop, mobile & email notifications with full customization.Build your own product notification system with it: garazlab.com.

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

2 comments:

Anonymous said...

Your number 1 and 2 are the wrong way around.

Unknown said...

I have fixed the bug; thanks for ur comment.