Show More
@@ -466,12 +466,7 class changectx(basectx): | |||||
466 | (source == 'compatibility' and |
|
466 | (source == 'compatibility' and | |
467 | self._changeset.filesremoved is not None)): |
|
467 | self._changeset.filesremoved is not None)): | |
468 | return self._changeset.filesremoved or [] |
|
468 | return self._changeset.filesremoved or [] | |
469 |
|
469 | return scmutil.computechangesetfilesremoved(self) | ||
470 | removed = [] |
|
|||
471 | for f in self.files(): |
|
|||
472 | if f not in self: |
|
|||
473 | removed.append(f) |
|
|||
474 | return removed |
|
|||
475 |
|
470 | |||
476 | @propertycache |
|
471 | @propertycache | |
477 | def _copies(self): |
|
472 | def _copies(self): |
@@ -1993,3 +1993,12 def computechangesetfilesadded(ctx): | |||||
1993 | if not any(f in p for p in ctx.parents()): |
|
1993 | if not any(f in p for p in ctx.parents()): | |
1994 | added.append(f) |
|
1994 | added.append(f) | |
1995 | return added |
|
1995 | return added | |
|
1996 | ||||
|
1997 | def computechangesetfilesremoved(ctx): | |||
|
1998 | """return the list of files removed in a changeset | |||
|
1999 | """ | |||
|
2000 | removed = [] | |||
|
2001 | for f in ctx.files(): | |||
|
2002 | if f not in ctx: | |||
|
2003 | removed.append(f) | |||
|
2004 | return removed |
General Comments 0
You need to be logged in to leave comments.
Login now