equal
deleted
inserted
replaced
432 # i18n: "follow" is a keyword |
432 # i18n: "follow" is a keyword |
433 l = getargs(x, 0, 1, _("follow takes no arguments or a filename")) |
433 l = getargs(x, 0, 1, _("follow takes no arguments or a filename")) |
434 p = repo['.'].rev() |
434 p = repo['.'].rev() |
435 if l: |
435 if l: |
436 x = getstring(l[0], _("follow expected a filename")) |
436 x = getstring(l[0], _("follow expected a filename")) |
437 s = set(ctx.rev() for ctx in repo['.'][x].ancestors()) |
437 if x in repo['.']: |
|
438 s = set(ctx.rev() for ctx in repo['.'][x].ancestors()) |
|
439 else: |
|
440 return [] |
438 else: |
441 else: |
439 s = set(repo.changelog.ancestors(p)) |
442 s = set(repo.changelog.ancestors(p)) |
440 |
443 |
441 s |= set([p]) |
444 s |= set([p]) |
442 return [r for r in subset if r in s] |
445 return [r for r in subset if r in s] |