Commit 07956c2
authored
Skip Send/Receive steps if no pending changes (#1627)
Incoming changes are detected by using PendingCommitCount; if it's 0
then there are no Mercurial changes sitting in Lexbox, so a Send/Receive
would do nothing and we can save some time by skipping it.
Outgoing changes are detected by looking at the FwdataChanges result
from the CRDT sync code. If that is 0 then the Send/Receive would not
push any new commits so we can safely skip it and save more time.1 parent e904ed1 commit 07956c2
1 file changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | | - | |
179 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
180 | 195 | | |
181 | 196 | | |
182 | 197 | | |
| |||
0 commit comments