##// END OF EJS Templates
fileset: add copied predicate
Matt Mackall -
r14685:394121d9 default
parent child Browse files
Show More
1 NO CONTENT: file copied from hg to hg2
NO CONTENT: file copied from hg to hg2
@@ -335,10 +335,22 b' def encoding(mctx, x):'
335
335
336 return s
336 return s
337
337
338 def copied(mctx, x):
339 """``copied()``
340 File that is recorded as being copied.
341 """
342 s = []
343 for f in mctx.subset:
344 p = mctx.ctx[f].parents()
345 if p and p[0].path() != f:
346 s.append(f)
347 return s
348
338 symbols = {
349 symbols = {
339 'added': added,
350 'added': added,
340 'binary': binary,
351 'binary': binary,
341 'clean': clean,
352 'clean': clean,
353 'copied': copied,
342 'deleted': deleted,
354 'deleted': deleted,
343 'encoding': encoding,
355 'encoding': encoding,
344 'exec': exec_,
356 'exec': exec_,
General Comments 0
You need to be logged in to leave comments. Login now