Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 22914:c95db3208a33
status: update various other methods to return new class
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Tue, 14 Oct 2014 00:52:27 -0500 |
parents | 509e2cbee679 |
children | cfa8d7561938 |
line wrap: on
line diff
--- a/mercurial/context.py Fri Oct 10 14:32:36 2014 -0700 +++ b/mercurial/context.py Tue Oct 14 00:52:27 2014 -0500 @@ -341,7 +341,7 @@ l.sort() # we return a tuple to signify that this list isn't changing - return tuple(r) + return scmutil.status(*r) def makememctx(repo, parents, text, user, date, branch, files, store, @@ -1482,7 +1482,7 @@ # (s[1] is 'added' and s[2] is 'removed') s = list(s) s[1], s[2] = s[2], s[1] - return tuple(s) + return scmutil.status(*s) class committablefilectx(basefilectx): """A committablefilectx provides common functionality for a file context