branch | stable |
changeset 38761 | d558e53cd6b6 |
parent 38755 | 545a3e6650cd |
child 38775 | e971d6eb4770 |
child 39196 | 8c6775e812d8 |
--- a/mercurial/context.py Tue Jul 31 13:53:06 2018 -0700 +++ b/mercurial/context.py Wed Jul 25 21:19:06 2018 +0300 @@ -2327,7 +2327,12 @@ revision being committed, or None.""" super(memfilectx, self).__init__(repo, path, None, changectx) self._data = data - self._flags = (islink and 'l' or '') + (isexec and 'x' or '') + if islink: + self._flags = 'l' + elif isexec: + self._flags = 'x' + else: + self._flags = '' self._copied = None if copied: self._copied = (copied, nullid)