Show More
@@ -459,12 +459,7 b' class changectx(basectx):' | |||||
459 | (source == 'compatibility' and |
|
459 | (source == 'compatibility' and | |
460 | self._changeset.filesadded is not None)): |
|
460 | self._changeset.filesadded is not None)): | |
461 | return self._changeset.filesadded or [] |
|
461 | return self._changeset.filesadded or [] | |
462 |
|
462 | return scmutil.computechangesetfilesadded(self) | ||
463 | added = [] |
|
|||
464 | for f in self.files(): |
|
|||
465 | if not any(f in p for p in self.parents()): |
|
|||
466 | added.append(f) |
|
|||
467 | return added |
|
|||
468 | def filesremoved(self): |
|
463 | def filesremoved(self): | |
469 | source = self._repo.ui.config('experimental', 'copies.read-from') |
|
464 | source = self._repo.ui.config('experimental', 'copies.read-from') | |
470 | if (source == 'changeset-only' or |
|
465 | if (source == 'changeset-only' or |
@@ -1984,3 +1984,12 b' def bookmarkrevs(repo, mark):' | |||||
1984 | "ancestors(head() and not bookmark(%s)) - " |
|
1984 | "ancestors(head() and not bookmark(%s)) - " | |
1985 | "ancestors(bookmark() and not bookmark(%s))", |
|
1985 | "ancestors(bookmark() and not bookmark(%s))", | |
1986 | mark, mark, mark) |
|
1986 | mark, mark, mark) | |
|
1987 | ||||
|
1988 | def computechangesetfilesadded(ctx): | |||
|
1989 | """return the list of files added in a changeset | |||
|
1990 | """ | |||
|
1991 | added = [] | |||
|
1992 | for f in ctx.files(): | |||
|
1993 | if not any(f in p for p in ctx.parents()): | |||
|
1994 | added.append(f) | |||
|
1995 | return added |
General Comments 0
You need to be logged in to leave comments.
Login now