Commits

php committed c1a9028

Fish extension 1.0

  • Participants

Comments (0)

Files changed (2)

+Animates an ASCII fish during progress.
+
+Requires 'fish' http://pypi.python.org/pypi/fish/
+# fish.py show progress bars for some actions
+#
+# Copyright (C) 2010 David Soria Parra <dsp@experimentalworks.net>
+#
+# Licensed under the terms of the MIT License
+#
+"""Animated ASCII fish
+
+thanks for all the fish"""
+
+import fish
+from mercurial import extensions
+
+def progress(orig, topic, pos, item='', unit='', total=None):
+    fish.animate()
+    return orig(topic, pos, item=item, unit=unit, total=total)
+
+def uisetup(ui):
+    extensions.wrapfunction(ui, 'progress', progress)
+
+def reposetup(ui, repo):
+    uisetup(repo.ui)