Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#5832) - new feature: force update.
* (#5832) - new feature: force update. add a `force` option to `put` operation to allow update based on non-leaf revison and generate a new conflict revision, instead of reporting update conflict error. it is implemented by generating `new_edits=false` option. * optimized force update feature with method proposed by @ronag. need not to fetch `revisions` from db, 2 revisions are enough, namely the new generated one and the old one provided by the user. * bugfix:explictly set radix to 10 for parseInt(). * fix an unintented change caused coverage becomes < 100%. * replace const with var to fix PhantomJS tests failure. * add test case of force putting on second level parent node. * a simple note on the new `force` option for put() api.
- Loading branch information
1 parent
49e4945
commit dd59491
Showing
3 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters