Show More
@@ -3263,10 +3263,11 b' def help_(ui, name=None, unknowncmd=Fals' | |||||
3263 | ('i', 'id', None, _('show global revision id')), |
|
3263 | ('i', 'id', None, _('show global revision id')), | |
3264 | ('b', 'branch', None, _('show branch')), |
|
3264 | ('b', 'branch', None, _('show branch')), | |
3265 | ('t', 'tags', None, _('show tags')), |
|
3265 | ('t', 'tags', None, _('show tags')), | |
3266 |
('B', 'bookmarks', None, _('show bookmarks')) |
|
3266 | ('B', 'bookmarks', None, _('show bookmarks')), | |
|
3267 | ] + remoteopts, | |||
3267 | _('[-nibtB] [-r REV] [SOURCE]')) |
|
3268 | _('[-nibtB] [-r REV] [SOURCE]')) | |
3268 | def identify(ui, repo, source=None, rev=None, |
|
3269 | def identify(ui, repo, source=None, rev=None, | |
3269 | num=None, id=None, branch=None, tags=None, bookmarks=None): |
|
3270 | num=None, id=None, branch=None, tags=None, bookmarks=None, **opts): | |
3270 | """identify the working copy or specified revision |
|
3271 | """identify the working copy or specified revision | |
3271 |
|
3272 | |||
3272 | Print a summary identifying the repository state at REV using one or |
|
3273 | Print a summary identifying the repository state at REV using one or | |
@@ -3310,7 +3311,7 b' def identify(ui, repo, source=None, rev=' | |||||
3310 |
|
3311 | |||
3311 | if source: |
|
3312 | if source: | |
3312 | source, branches = hg.parseurl(ui.expandpath(source)) |
|
3313 | source, branches = hg.parseurl(ui.expandpath(source)) | |
3313 |
repo = hg.peer(ui, |
|
3314 | repo = hg.peer(ui, opts, source) | |
3314 | revs, checkout = hg.addbranchrevs(repo, repo, branches, None) |
|
3315 | revs, checkout = hg.addbranchrevs(repo, repo, branches, None) | |
3315 |
|
3316 | |||
3316 | if not repo.local(): |
|
3317 | if not repo.local(): |
@@ -247,7 +247,7 b' Show all commands + options' | |||||
247 | grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude |
|
247 | grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude | |
248 | heads: rev, topo, active, closed, style, template |
|
248 | heads: rev, topo, active, closed, style, template | |
249 | help: extension, command |
|
249 | help: extension, command | |
250 | identify: rev, num, id, branch, tags, bookmarks |
|
250 | identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure | |
251 | import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity |
|
251 | import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity | |
252 | incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, insecure, subrepos |
|
252 | incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, style, template, ssh, remotecmd, insecure, subrepos | |
253 | locate: rev, print0, fullpath, include, exclude |
|
253 | locate: rev, print0, fullpath, include, exclude |
@@ -68,7 +68,7 b' pretxncommit and commit hooks can see bo' | |||||
68 | test generic hooks |
|
68 | test generic hooks | |
69 |
|
69 | |||
70 | $ hg id |
|
70 | $ hg id | |
71 | pre-identify hook: HG_ARGS=id HG_OPTS={'bookmarks': None, 'branch': None, 'id': None, 'num': None, 'rev': '', 'tags': None} HG_PATS=[] |
|
71 | pre-identify hook: HG_ARGS=id HG_OPTS={'bookmarks': None, 'branch': None, 'id': None, 'insecure': None, 'num': None, 'remotecmd': '', 'rev': '', 'ssh': '', 'tags': None} HG_PATS=[] | |
72 | warning: pre-identify hook exited with status 1 |
|
72 | warning: pre-identify hook exited with status 1 | |
73 | [1] |
|
73 | [1] | |
74 | $ hg cat b |
|
74 | $ hg cat b |
General Comments 0
You need to be logged in to leave comments.
Login now