Submitter | Siddharth Agarwal |
---|---|
Date | Nov. 16, 2015, 11:46 p.m. |
Message ID | <1ac068b89094bece9958.1447717567@dev666.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/11420/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -747,11 +747,15 @@ class basefilectx(object): def islink(self): return 'l' in self.flags() + _customcmp = False def cmp(self, fctx): """compare with other file context returns True if different than fctx. """ + if fctx._customcmp: + return fctx.cmp(self) + if (fctx._filerev is None and (self._repo._encodefilterpats # if file data starts with '\1\n', empty metadata block is