mercurial/revset.py
changeset 23704 c624fb2c4239
parent 23467 c237499a7fba
child 23719 34364a4b25eb
equal deleted inserted replaced
23703:aaa76612b3c0 23704:c624fb2c4239
   805         x = getstring(l[0], _("%s expected a filename") % name)
   805         x = getstring(l[0], _("%s expected a filename") % name)
   806         if x in c:
   806         if x in c:
   807             cx = c[x]
   807             cx = c[x]
   808             s = set(ctx.rev() for ctx in cx.ancestors(followfirst=followfirst))
   808             s = set(ctx.rev() for ctx in cx.ancestors(followfirst=followfirst))
   809             # include the revision responsible for the most recent version
   809             # include the revision responsible for the most recent version
   810             s.add(cx.linkrev())
   810             s.add(cx.introrev())
   811         else:
   811         else:
   812             return baseset()
   812             return baseset()
   813     else:
   813     else:
   814         s = _revancestors(repo, baseset([c.rev()]), followfirst)
   814         s = _revancestors(repo, baseset([c.rev()]), followfirst)
   815 
   815