Skip to content

Instantly share code, notes, and snippets.

@edwardgeorge
Created May 10, 2010 22:18
Show Gist options
  • Save edwardgeorge/396622 to your computer and use it in GitHub Desktop.
Save edwardgeorge/396622 to your computer and use it in GitHub Desktop.
BREAKING the missing mercurial patch
--- mercurial/ui.py 2010-05-10 23:10:13.944672249 +0100
+++ mercurial/ui.py 2010-05-10 23:11:19.804626239 +0100
@@ -336,6 +336,11 @@
except EOFError:
raise util.Abort(_('response expected'))
def status(self, *msg):
+ try:
+ msg = list(msg)
+ msg[0] = 'BREAKING %s' % msg[0]
+ except IndexError, e:
+ pass
if not self.quiet:
self.write(*msg)
def warn(self, *msg):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment