##// END OF EJS Templates
revset: follow(nosuchfile) should give an empty set (issue3114)
Matt Mackall -
r15532:5edaf47c stable
parent child Browse files
Show More
@@ -434,8 +434,11 b' def follow(repo, subset, x):'
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 if x in repo['.']:
437 s = set(ctx.rev() for ctx in repo['.'][x].ancestors())
438 s = set(ctx.rev() for ctx in repo['.'][x].ancestors())
438 else:
439 else:
440 return []
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])
General Comments 0
You need to be logged in to leave comments. Login now