(commit)
| 191 | } |
| 192 | |
| 193 | queue(commit) { |
| 194 | if(!commit.length) return; |
| 195 | if(!this.queued) { |
| 196 | let self = this; |
| 197 | process.nextTick(() => { |
| 198 | let commits = []; |
| 199 | for(let queued of self.commitQueue) { |
| 200 | for(let field of queued) { |
| 201 | commits.push(field); |
| 202 | } |
| 203 | } |
| 204 | this.fixpoint(new Changes(this.multiIndex), this.blocksFromCommit(commits)); |
| 205 | }); |
| 206 | } |
| 207 | this.commitQueue.push(commit); |
| 208 | } |
| 209 | |
| 210 | createChanges() { |
| 211 | return new Changes(this.multiIndex); |
no test coverage detected