##// END OF EJS Templates
context: check file exists before getting data from _wrappedctx...
Pulkit Goyal -
r42375:2f3eae30 default draft
parent child Browse files
Show More
@@ -1824,7 +1824,7 b' class overlayworkingctx(committablectx):'
1824 def data(self, path):
1824 def data(self, path):
1825 if self.isdirty(path):
1825 if self.isdirty(path):
1826 if self._cache[path]['exists']:
1826 if self._cache[path]['exists']:
1827 if self._cache[path]['data']:
1827 if self._cache[path]['data'] is not None:
1828 return self._cache[path]['data']
1828 return self._cache[path]['data']
1829 else:
1829 else:
1830 # Must fallback here, too, because we only set flags.
1830 # Must fallback here, too, because we only set flags.
@@ -797,5 +797,9 b' Test rebasing when the file we are mergi'
797 $ hg rebase -r . -d 1 --config ui.merge=internal:merge3
797 $ hg rebase -r . -d 1 --config ui.merge=internal:merge3
798 rebasing 2:fb62b706688e "add b to foo" (tip)
798 rebasing 2:fb62b706688e "add b to foo" (tip)
799 merging foo
799 merging foo
800 abort: foo.orig@e780cf6f9041: not found in manifest!
800 hit merge conflicts; re-running rebase without in-memory merge
801 [255]
801 rebasing 2:fb62b706688e "add b to foo" (tip)
802 merging foo
803 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
804 unresolved conflicts (see hg resolve, then hg rebase --continue)
805 [1]
General Comments 0
You need to be logged in to leave comments. Login now