How to remove all .orig files created by Mercurial
Answer:
In your working directory, execute the command below to remove all .orig files:
# rm **/*.orig
Short and sweet.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to remove all .orig files created by Mercurial
Answer:
In your working directory, execute the command below to remove all .orig files:
# rm **/*.orig
Short and sweet.
Suggested Mercurial .hgignore settings for XCode projects
Answer:
Save the following lines as .hgignore and put it under the root of your project root directory, Mercurial will ignore them automatically.
^build/*
\.mode1v3
\.pbxuser
\.DS_Store
^\.*
Adding the missing ignore function to Mercurial
Answer:
The following script add the ignore function to the Mercurial
#!/usr/bin/env python
"""Ignore pathnames and patterns"""
import os
def ignore(ui, repo, *pathnames):
"""Ignore the given pathnames and patterns."""
outf = open(os.path.join(repo.root, ".hgignore"), "a")
for p in pathnames:
outf.write(p + "\n")
outf.close()
return
cmdtable = {
'ignore': (ignore, [], "hg ignore pathname [pathname]"),
}
Save the script as ignore.py (e.g. ~/hg/ignore.py), and add the following line in your own ~/.hgrc
[extensions]
ignore = ~/hg/ignore.py
Reference: http://dmoonc.com/blog/?p=266
Install Mercurial in Ubuntu
Answer:
Mercurial is a scalable distributed version control system, to install it in Ubuntu, type
# sudo apt-get install mercurial
That's it.
Clone an existing project using Mercurial
Answer:
To clone an existing Mercurial project, use the following simple command:
# hg clone https://bitbucket.org/ellislab/codeigniter
That's all.