Show More
@@ -930,7 +930,14 b' class filectx(basefilectx):' | |||
|
930 | 930 | filelog=self._filelog) |
|
931 | 931 | |
|
932 | 932 | def data(self): |
|
933 | return self._filelog.read(self._filenode) | |
|
933 | try: | |
|
934 | return self._filelog.read(self._filenode) | |
|
935 | except error.CensoredNodeError: | |
|
936 | if self._repo.ui.config("censor", "policy", "abort") == "ignore": | |
|
937 | return "" | |
|
938 | raise util.Abort(_("censored node: %s") % short(self._filenode), | |
|
939 | hint="set censor.policy to ignore errors") | |
|
940 | ||
|
934 | 941 | def size(self): |
|
935 | 942 | return self._filelog.size(self._filerev) |
|
936 | 943 |
General Comments 0
You need to be logged in to leave comments.
Login now