comparison mercurial/fileset.py @ 14718:0c81948636f3 stable

fileset: copied takes no arguments
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 24 Jun 2011 01:10:35 +0200
parents c8ee2729e89f
children 0f0bd4d028d3
comparison
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)