How-Tos
Revision as of 11:58, 4 December 2008 by Crulshorukh (talk | contribs) (→Applying a patch to a Repo)
Contents
Welcome
Welcome to the Seneca How-To page. You'll find How-To's for all things Open Source related.
Wiki
Mozilla
Firefox |
|||||||||
|
Thunderbird
Mercurial
=====Applying a patch to a Repo=====
Step 1 Download the .patch or .diff file onto your machine Step 2 Navigate to the repo that you want to install the patch to i.e. testRepo (I will using repo name for this example, substitute it with your repo name when you are trying to apply a patch yourself) Step 3 Open testRepo\.hg\hgrc (the config file) Step 4 Add the following to hgrc and save (This enables queues for hg so that we can use commands that we need, qimport and qpush)[extensions] hgext.mq = Step 5 Now open up a command prompt and navigate to your repo directory Step 6 Type in hg qimport <<full-path-of-patch-file>> and press enter Step 7 The above command should create a patch folder within testRepo\.hg\patches\ Step 8 Next navigate to testRepo\.hg\patches\ Step 9 Type in hg qpush <<patch-file-name>> Step 10 Done! The patch should have been applied (if you get an error such as “abort: local changes found, refresh first” then that means you have made changes to the original files and the patch won’t work) |
Open Office
Eclipse
Linux
Fedora
Ubuntu
- Ubuntu: http://www.ubuntu.com/
- Ubuntu Forums: http://ubuntuforums.org