# HG changeset patch # User mpm@selenic.com # Date 1117068022 28800 # Node ID 5c331d941c7f7e15618059f770c8ecd8a9d902a3 # Parent f9d8620ef4699375f5251a5e49e4faa94543f8a6 Update the README a bit diff -r f9d8620ef469 -r 5c331d941c7f README --- a/README Wed May 25 16:28:23 2005 -0800 +++ b/README Wed May 25 16:40:22 2005 -0800 @@ -20,9 +20,9 @@ $ hg init # creates .hg $ hg status # show changes between repo and working dir $ hg diff # generate a unidiff - $ hg export # export a changeset as a diff $ hg addremove # add all unknown files and remove all missing files $ hg commit # commit all changes, edit changelog entry + $ hg export # export a changeset as a diff Mercurial will look for a file named .hgignore in the root of your repository contains a set of regular expressions to ignore in file @@ -33,13 +33,14 @@ $ hg history # show changesets $ hg log Makefile # show commits per file $ hg checkout # check out the tip revision - $ hg checkout # check out a specified changeset + $ hg checkout # check out a specified changeset + # IDs can be tags, revision numbers, or unique + # subsets of changeset hash numbers $ hg add foo # add a new file for the next commit $ hg remove bar # mark a file as removed $ hg verify # check repo integrity $ hg tags # show current tags $ hg annotate [files] # show changeset numbers for each file line - $ hg blame [files] # show commit users for each file line Branching and merging: @@ -69,34 +70,19 @@ Network support: - The simple way: - # pull the self-hosting hg repo foo$ hg init foo$ hg merge http://selenic.com/hg/ foo$ hg checkout # hg co works too - # export your .hg directory as a directory on your webserver - foo$ ln -s .hg ~/public_html/hg-linux - + # export your current repo via HTTP with browsable interface + foo$ hg serve -n "My repo" -p 80 + # merge changes from a remote machine - bar$ hg merge http://foo/~user/hg-linux - - The new, fast, experimental way: + bar$ hg merge hg://foo/ + bar$ hg co # checkout the result - # pull the self-hosting hg repo - foo$ hg init - foo$ hg merge hg://selenic.com/hg/ - foo$ hg checkout # hg co works too + # Set up a CGI server on your webserver + foo$ cp hgweb.cgi ~/public_html/hg-linux/index.cgi + foo$ emacs ~/public_html/hg-linux/index.cgi # adjust the defaults - # Set up the CGI server on your webserver - foo$ ln -s .hg ~/public_html/hg-linux/.hg - foo$ cp hgweb.py ~/public_html/hg-linux/index.cgi - - # merge changes from a remote machine - bar$ hg merge hg://foo/~user/hg-linux - - Another approach which does perform well right now is to use rsync. - Simply rsync the remote repo to a read-only local copy and then do a - local pull. -