Mercurial > evolve
comparison hgext/evolve.py @ 1623:47a0ce11b4ca
evolve: ui.progress doesn't use total count if pos is None, let's drop it
Every other call of ui.progress that has argument #2 (named `pos`) set
to None doesn't specify `total`, because it won't be used. Basically,
ui.progress(action, None) is enough, when used like this it hides
progress bar because the action is considered completed. So this is just
a minor cleanup patch.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 12 Mar 2016 13:45:25 +0800 |
parents | ce268aebd0f5 |
children | 081605c2e9b6 |
comparison
equal
deleted
inserted
replaced
1621:05d15886aaeb | 1623:47a0ce11b4ca |
---|---|
3243 | 3243 |
3244 undecided.difference_update(missing) | 3244 undecided.difference_update(missing) |
3245 undecided.difference_update(common) | 3245 undecided.difference_update(common) |
3246 | 3246 |
3247 | 3247 |
3248 ui.progress(_("comparing with other"), None, total=totalnb) | 3248 ui.progress(_("comparing with other"), None) |
3249 result = dag.headsetofconnecteds(common) | 3249 result = dag.headsetofconnecteds(common) |
3250 ui.debug("%d total queries\n" % roundtrips) | 3250 ui.debug("%d total queries\n" % roundtrips) |
3251 | 3251 |
3252 if not result: | 3252 if not result: |
3253 return set([nullid]) | 3253 return set([nullid]) |