##// END OF EJS Templates
color: initialize color for the localrepo ui...
Pierre-Yves David -
r31111:95ec3ad6 default
parent child Browse files
Show More
@@ -28,6 +28,7 b' from . import ('
28 bundle2,
28 bundle2,
29 changegroup,
29 changegroup,
30 changelog,
30 changelog,
31 color,
31 context,
32 context,
32 dirstate,
33 dirstate,
33 dirstateguard,
34 dirstateguard,
@@ -285,6 +286,7 b' class localrepository(object):'
285 setupfunc(self.ui, self.supported)
286 setupfunc(self.ui, self.supported)
286 else:
287 else:
287 self.supported = self._basesupported
288 self.supported = self._basesupported
289 color.setup(self.ui)
288
290
289 # Add compression engines.
291 # Add compression engines.
290 for name in util.compengines:
292 for name in util.compengines:
@@ -296,6 +296,7 b' test unknown color'
296 $ hg --config color.status.modified=periwinkle status
296 $ hg --config color.status.modified=periwinkle status
297 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
297 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
298 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
298 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
299 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
299 M modified
300 M modified
300 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
301 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1madded\x1b[0m (esc)
301 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mcopied\x1b[0m (esc)
302 \x1b[0;32;1mA \x1b[0m\x1b[0;32;1mcopied\x1b[0m (esc)
General Comments 0
You need to be logged in to leave comments. Login now