hgext/progress.py
branchstable
changeset 10471 132eb7128ad5
parent 10464 149ad0a3ec91
child 10523 4bab7c3db4e1
equal deleted inserted replaced
10470:2b57eed1be0b 10471:132eb7128ad5
    31   format = topic bar number # format of the progress bar
    31   format = topic bar number # format of the progress bar
    32   width = <none> # if set, the maximum width of the progress information
    32   width = <none> # if set, the maximum width of the progress information
    33                  # (that is, min(width, term width) will be used)
    33                  # (that is, min(width, term width) will be used)
    34   clear-complete = True # clear the progress bar after it's done
    34   clear-complete = True # clear the progress bar after it's done
    35 
    35 
    36 Valid entries for the format field are topic, bar, number, unit, and item.
    36 Valid entries for the format field are topic, bar, number, unit, and
    37 item defaults to the last 20 characters of the item, but this can be
    37 item. item defaults to the last 20 characters of the item, but this
    38 changed by adding either -<num> which would take the last num characters,
    38 can be changed by adding either ``-<num>`` which would take the last
    39 or +<num> for the first num characters.
    39 num characters, or ``+<num>`` for the first num characters.
    40 """
    40 """
    41 
    41 
    42 import sys
    42 import sys
    43 import time
    43 import time
    44 
    44