equal
deleted
inserted
replaced
460 s = set(repo.changelog.ancestors(p)) |
460 s = set(repo.changelog.ancestors(p)) |
461 |
461 |
462 s |= set([p]) |
462 s |= set([p]) |
463 return [r for r in subset if r in s] |
463 return [r for r in subset if r in s] |
464 |
464 |
465 def followfile(repo, subset, x): |
|
466 """``follow()`` |
|
467 An alias for ``::.`` (ancestors of the working copy's first parent). |
|
468 """ |
|
469 # i18n: "follow" is a keyword |
|
470 getargs(x, 0, 0, _("follow takes no arguments")) |
|
471 p = repo['.'].rev() |
|
472 s = set(repo.changelog.ancestors(p)) | set([p]) |
|
473 return [r for r in subset if r in s] |
|
474 |
|
475 def getall(repo, subset, x): |
465 def getall(repo, subset, x): |
476 """``all()`` |
466 """``all()`` |
477 All changesets, the same as ``0:tip``. |
467 All changesets, the same as ``0:tip``. |
478 """ |
468 """ |
479 # i18n: "all" is a keyword |
469 # i18n: "all" is a keyword |