Mercurial > hg-stable
changeset 16007:f06c53ca59a9 stable
revset: fix documentation for 'remote()' predicate
current documentation for 'remote()' predicate is wrong about
specification of parameters.
there are 3 patterns:
# of
param: id: remote:
- 0 current branch "defult" remote
- 1 specified "defult" remote
- 2 specified specified
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 27 Jan 2012 22:29:58 +0900 |
parents | 39e60576ac98 |
children | 02a497a17257 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Jan 27 22:29:58 2012 +0900 +++ b/mercurial/revset.py Fri Jan 27 22:29:58 2012 +0900 @@ -745,7 +745,7 @@ return [r for r in subset if repo._phaserev[r] == phases.public] def remote(repo, subset, x): - """``remote([id], [path])`` + """``remote([id [,path]])`` Local revision that corresponds to the given identifier in a remote repository, if present. Here, the '.' identifier is a synonym for the current local branch. @@ -753,7 +753,7 @@ import hg # avoid start-up nasties # i18n: "remote" is a keyword - l = getargs(x, 0, 2, _("remote takes one or two arguments")) + l = getargs(x, 0, 2, _("remote takes one, two or no arguments")) q = '.' if len(l) > 0: