mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
Commit despite bug in requestChangesets
This commit is contained in:
parent
1060544b86
commit
126c83f71c
1 changed files with 6 additions and 2 deletions
|
@ -327,8 +327,11 @@ $.Class("RevisionCache",
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: we should probably check for discontinuities
|
//TODO: we should probably check for discontinuities which indicate a real WTF condition.
|
||||||
// just prepend the found path to thePath
|
|
||||||
|
// just prepend the found path to thePath; we assume that we get further from
|
||||||
|
// the original target as we go. this is because we set the new target to be
|
||||||
|
// the head of our
|
||||||
thePath = res.path.concat(thePath);
|
thePath = res.path.concat(thePath);
|
||||||
|
|
||||||
log("THE PATH: ", print_path(thePath));
|
log("THE PATH: ", print_path(thePath));
|
||||||
|
@ -387,6 +390,7 @@ $.Class("RevisionCache",
|
||||||
var roundup = function (a, b) {
|
var roundup = function (a, b) {
|
||||||
return (Math.floor(a / b)+1) * b;
|
return (Math.floor(a / b)+1) * b;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.log("[requestChangesets] start: %d, end: %d, delta: %d, adelta: %d", start, end, delta, adelta);
|
this.log("[requestChangesets] start: %d, end: %d, delta: %d, adelta: %d", start, end, delta, adelta);
|
||||||
for (var g in Revision.granularities) {
|
for (var g in Revision.granularities) {
|
||||||
var granularity = Revision.granularities[g];
|
var granularity = Revision.granularities[g];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue