# HG changeset patch # User Matt Mackall # Date 2011-09-16 21:52:45 # Node ID 24f5489452af2a21f0b3dbcee0576d26c2be65ee # Parent 0be86ec3cafed3493820381db06cab0293f8eea8 id: add some help examples diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2971,6 +2971,22 @@ def identify(ui, repo, source=None, rev= Specifying a path to a repository root or Mercurial bundle will cause lookup to operate on that repository/bundle. + .. container:: verbose + + Examples: + + - generate a build identifier for the working directory:: + + hg id --id > build-id.dat + + - find the revision corresponding to a tag:: + + hg id -n -r 1.3 + + - check the most recent revision of a remote repository:: + + hg id -r tip http://selenic.com/hg/ + Returns 0 if successful. """