mercurial/fileset.py
branchstable
changeset 35950 7b2b82f891bf
parent 35741 73432eee0ac4
child 36473 ab5f18a9dcac
equal deleted inserted replaced
35820:1d60ad093792 35950:7b2b82f891bf
   462     """
   462     """
   463     # i18n: "copied" is a keyword
   463     # i18n: "copied" is a keyword
   464     getargs(x, 0, 0, _("copied takes no arguments"))
   464     getargs(x, 0, 0, _("copied takes no arguments"))
   465     s = []
   465     s = []
   466     for f in mctx.subset:
   466     for f in mctx.subset:
   467         p = mctx.ctx[f].parents()
   467         if f in mctx.ctx:
   468         if p and p[0].path() != f:
   468             p = mctx.ctx[f].parents()
   469             s.append(f)
   469             if p and p[0].path() != f:
       
   470                 s.append(f)
   470     return s
   471     return s
   471 
   472 
   472 @predicate('revs(revs, pattern)')
   473 @predicate('revs(revs, pattern)')
   473 def revs(mctx, x):
   474 def revs(mctx, x):
   474     """Evaluate set in the specified revisions. If the revset match multiple
   475     """Evaluate set in the specified revisions. If the revset match multiple