2342 |
2342 |
2343 def identify(ui, repo, source=None, rev=None, |
2343 def identify(ui, repo, source=None, rev=None, |
2344 num=None, id=None, branch=None, tags=None, bookmarks=None): |
2344 num=None, id=None, branch=None, tags=None, bookmarks=None): |
2345 """identify the working copy or specified revision |
2345 """identify the working copy or specified revision |
2346 |
2346 |
2347 With no revision, print a summary of the current state of the |
2347 Print a summary identifiying the repository state at REV |
|
2348 using one or two parent hash identifiers, followed by a |
|
2349 "+" if there are uncommitted changes in the working directory, |
|
2350 the branch name (omitted if default) and a list of tags, bookmarks. |
|
2351 |
|
2352 When REV is not given, print a summary of the current state of the |
2348 repository. |
2353 repository. |
2349 |
2354 |
2350 Specifying a path to a repository root or Mercurial bundle will |
2355 Specifying a path to a repository root or Mercurial bundle will |
2351 cause lookup to operate on that repository/bundle. |
2356 cause lookup to operate on that repository/bundle. |
2352 |
|
2353 This summary identifies the repository state using one or two |
|
2354 parent hash identifiers, followed by a "+" if there are |
|
2355 uncommitted changes in the working directory, a list of tags for |
|
2356 this revision and a branch name for non-default branches. |
|
2357 |
2357 |
2358 Returns 0 if successful. |
2358 Returns 0 if successful. |
2359 """ |
2359 """ |
2360 |
2360 |
2361 if not repo and not source: |
2361 if not repo and not source: |