##// 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,7 +434,10 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 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
General Comments 0
You need to be logged in to leave comments. Login now