(#2677) - local docs start at 0-1, don't save _revisions

Two things:
* local docs should start at 0-1, not 0-0. This is not strictly
  necessary to solve the bug, but I find it easier to understand
  when we do exactly the same thing as CouchDB.
* CouchDB tries to "help" us by also giving us a revision object
  (e.g. `"_revisions":{"start":0,"ids":["5"]}` for rev `'0-5'`),
  which we save ver batim and then return back when you do a GET
  on that same local doc. That confuses CouchDB and it ends up
  giving us the wrong _rev the next time it PUTs the doc.
nothing it would seem


On Mon, Aug 25, 2014 at 11:45 AM, Nolan Lawson <notifications@github.com>
wrote:

> In lib/adapters/leveldb.js:
>
> > @@ -958,6 +958,7 @@ function LevelPouch(opts, callback) {
> >    };
> >
> >    api._putLocal = function (doc, callback) {
> > +    delete doc._revisions; // ignore this, trust the rev
>
> what's the harm in deleteing a property that doesn't exist?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pouchdb/pouchdb/pull/2678/files#r16662247>.
>



-- 
-Calvin W. Metcalf