mercurial/fileset.py
branchstable
changeset 14718 0c81948636f3
parent 14717 c8ee2729e89f
child 14785 0f0bd4d028d3
equal deleted inserted replaced
14717:c8ee2729e89f 14718:0c81948636f3
   333 
   333 
   334 def copied(mctx, x):
   334 def copied(mctx, x):
   335     """``copied()``
   335     """``copied()``
   336     File that is recorded as being copied.
   336     File that is recorded as being copied.
   337     """
   337     """
       
   338     getargs(x, 0, 0, _("copied takes no arguments"))
   338     s = []
   339     s = []
   339     for f in mctx.subset:
   340     for f in mctx.subset:
   340         p = mctx.ctx[f].parents()
   341         p = mctx.ctx[f].parents()
   341         if p and p[0].path() != f:
   342         if p and p[0].path() != f:
   342             s.append(f)
   343             s.append(f)