Install mercurial on ubuntu Jaunty 9.04
Submitted by Sam Rose on Tue, 10/20/2009 - 20:20
$ sudo aptitude install python-dev python-virtualenv pythin-setuptools $ easy_install -U mercurial
Test with
$ hg -v
Should return:
hg -v
Mercurial Distributed SCM (version 1.3.1)
Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
basic commands:
add:
add the specified files on the next commit
annotate, blame:
show changeset information by line for each file
clone:
make a copy of an existing repository
commit, ci:
commit the specified files or all outstanding changes
diff:
diff repository (or selected files)
export:
dump the header and diffs for one or more changesets
forget:
forget the specified files on the next commit
init:
create a new repository in the given directory
log, history:
show revision history of entire repository or files
merge:
merge working directory with another revision
parents:
show the parents of the working directory or revision
pull:
pull changes from the specified source
push:
push changes to the specified destination
remove, rm:
remove the specified files on the next commit
serve:
export the repository via HTTP
status, st:
show changed files in the working directory
update, up, checkout, co:
update working directory
global options:
-R --repository repository root directory or symbolic path name
--cwd change working directory
-y --noninteractive do not prompt, assume 'yes' for any required answers
-q --quiet suppress output
-v --verbose enable additional output
--config set/override config option
--debug enable debugging output
--debugger start debugger
--encoding set the charset encoding (default: UTF-8)
--encodingmode set the charset encoding mode (default: strict)
--traceback print traceback on exception
--time time how long the command takes
--profile print command execution profile
--version output version information and exit
-h --help display help and exit
use "hg help" for the full list of commandsdone.
- Sam Rose's blog
- Login to post comments

