D4259: context: safegaurd from 'lx' being passed as file flag in manifest
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Aug 10 16:16:47 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Follows up for https://phab.mercurial-scm.org/rHGd558e53cd6b619d5f671a7580513bfc66a398eac.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4259
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
@@ -1923,8 +1923,13 @@
flags=flags)
def setflags(self, path, l, x):
+ flag = ''
+ if l:
+ flag = 'l'
+ elif x:
+ flag = 'x'
self._markdirty(path, exists=True, date=dateutil.makedate(),
- flags=(l and 'l' or '') + (x and 'x' or ''))
+ flags=flag)
def remove(self, path):
self._markdirty(path, exists=False)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list