Mercurial > hg > easyhg
diff hgaction.h @ 115:78374cefa10f
* Add useful state message to file status page.
Also add shouldBeFast() method to HgAction; use it to avoid showing progress bar for fast actions
author | Chris Cannam |
---|---|
date | Fri, 26 Nov 2010 21:48:25 +0000 |
parents | 5fc7b4fc77a8 |
children | 910c2c5d1873 |
line wrap: on
line diff
--- a/hgaction.h Fri Nov 26 21:17:24 2010 +0000 +++ b/hgaction.h Fri Nov 26 21:48:25 2010 +0000 @@ -30,6 +30,7 @@ ACT_QUERY_HEADS, ACT_QUERY_PARENTS, ACT_LOG, + ACT_LOG_INCREMENTAL, ACT_REMOVE, ACT_ADD, ACT_INCOMING, @@ -70,6 +71,21 @@ a.params == params && a.executable == executable); } + bool shouldBeFast() const { + switch (action) { + case ACT_NONE: + case ACT_QUERY_PATHS: + case ACT_QUERY_BRANCH: + case ACT_STAT: + case ACT_QUERY_HEADS: + case ACT_QUERY_PARENTS: + case ACT_LOG_INCREMENTAL: + return true; + default: + return false; + } + } + bool mayBeInteractive() const { switch (action) { case ACT_INCOMING: