fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Controlling output with remote git commands


From: Carlton Gibson
Subject: [Fab-user] Controlling output with remote git commands
Date: Thu, 21 Feb 2013 11:04:47 +0100

Hi all, 

I have a deploy task which begins with a remote `git pull` — It has _quite a 
lot_ of output...

[h] Executing task 'deploy'
[h] run: git pull
[h] out: remote: Counting objects: 65, done.
[h] out: remote: Compressing objects:   1% (1/53)   
[h] out: remote: Compressing objects:   3% (2/53)   
[h] out: remote: Compressing objects:   5% (3/53)   
[h] out: remote: Compressing objects:   7% (4/53)   
[h] out: remote: Compressing objects:   9% (5/53)   

... skip a bit...

[h] out: remote: Compressing objects:  92% (49/53)   
[h] out: remote: Compressing objects:  94% (50/53)   
[h] out: remote: Compressing objects:  96% (51/53)   
[h] out: remote: Compressing objects:  98% (52/53)   
[h] out: remote: Compressing objects: 100% (53/53)   
[h] out: remote: Compressing objects: 100% (53/53), done.
[h] out: Unpacking objects:   1% (1/54)   
[h] out: Unpacking objects:   3% (2/54)   
[h] out: Unpacking objects:   5% (3/54)   
[h] out: remote: Total 54 (delta 38), reused 0 (delta 0)
[h] out: Unpacking objects:   7% (4/54)   
[h] out: Unpacking objects:   9% (5/54)   

... skip a bit...

[h] out: Unpacking objects:  94% (51/54)   
[h] out: Unpacking objects:  96% (52/54)   
[h] out: Unpacking objects:  98% (53/54)   
[h] out: Unpacking objects: 100% (54/54)   
[h] out: Unpacking objects: 100% (54/54), done.

... deploy continues ...

The issue here is the progress counter not replacing the previous output as it 
would normally. 

I can use the hide() context manager to hide stdout for the `git pull` but I'd 
quite like the _normal_ output if possible. Is there a way of telling fabric to 
do-the-right-thing™?

(If there isn't, where might one begin looking if one wanted to add such a 
thing?)

Thanks,
Carlton





reply via email to

[Prev in Thread] Current Thread [Next in Thread]