Source

perfarce-patches / pull-status.diff

# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan@cabo.dk>
# Date 1324546908 -3600
# Node ID 3ab5404708942586723cbe7dc9a4e1ca4a4961ef
# Parent  800fa1a12eda7878cabccbf772a60f4e52368999
write changes pulled to the console

loosely inspired by hgsubversion

diff --git a/perfarce.py b/perfarce.py
--- a/perfarce.py
+++ b/perfarce.py
@@ -1120,6 +1120,12 @@ def pull(original, ui, repo, source=None
             cl = client.describe(c)
             files = client.fstat(c, all=bool(startrev))
 
+            msg = '[#%s] %s: %s' % (cl.change, util.shortuser(cl.user),
+                                    cl.desc.splitlines()[0])
+            termwidth = getattr(ui, 'termwidth', None) or util.termwidth
+            w = termwidth()
+            ui.status(util.ellipsis(msg, w) + '\n')
+
             if hasattr(ui, 'progress'):
                 ui.progress('pull', i,
                             item=cl.change, unit='changelists',