D3985: context: safegaurd against 'lx' being passed as file flag in manifest
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Jul 31 16:57:00 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd558e53cd6b6: context: safegaurd against 'lx' being passed as file flag in manifest (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3985?vs=9670&id=9677
REVISION DETAIL
https://phab.mercurial-scm.org/D3985
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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)
To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list