equal
deleted
inserted
replaced
2968 When REV is not given, print a summary of the current state of the |
2968 When REV is not given, print a summary of the current state of the |
2969 repository. |
2969 repository. |
2970 |
2970 |
2971 Specifying a path to a repository root or Mercurial bundle will |
2971 Specifying a path to a repository root or Mercurial bundle will |
2972 cause lookup to operate on that repository/bundle. |
2972 cause lookup to operate on that repository/bundle. |
|
2973 |
|
2974 .. container:: verbose |
|
2975 |
|
2976 Examples: |
|
2977 |
|
2978 - generate a build identifier for the working directory:: |
|
2979 |
|
2980 hg id --id > build-id.dat |
|
2981 |
|
2982 - find the revision corresponding to a tag:: |
|
2983 |
|
2984 hg id -n -r 1.3 |
|
2985 |
|
2986 - check the most recent revision of a remote repository:: |
|
2987 |
|
2988 hg id -r tip http://selenic.com/hg/ |
2973 |
2989 |
2974 Returns 0 if successful. |
2990 Returns 0 if successful. |
2975 """ |
2991 """ |
2976 |
2992 |
2977 if not repo and not source: |
2993 if not repo and not source: |