     # In PouchDB, the filepath is in the _id.
     # And the _id/_rev from CouchDB are saved in the remote field in PouchDB.
     putDoc: (doc, was, callback) =>
+        # TODO start from {} and add wanted properties instead of deleting somes
         doc = clone doc
         doc.remote =
             _id: doc._id

        delete doc.name
        delete doc.binary
        delete doc.clearance
        if @merge.invalidId doc
            log.error "Invalid id"
            log.error doc

# TODO add comments
class RemoteWatcher
    constructor: (@couch, @merge, @pouch) ->
        @pending = 0

    # First time replication
    #
