use a smaller rev token for attachment versions, thanks for the suggestion Damien
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948282 13f79535-47bb-0310-9956-ffa450edef68 Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/7bffaf2b Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/7bffaf2b Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/7bffaf2b Branch: refs/heads/import-master Commit: 7bffaf2b4dfe1b1283e172ddcfea035e8c6a393d Parents: 3438f31 Author: John Christopher Anderson <jch...@apache.org> Authored: Wed May 26 00:53:43 2010 +0000 Committer: Alexander Shorin <kxe...@gmail.com> Committed: Wed May 26 00:53:43 2010 +0000 ---------------------------------------------------------------------- jquery.couch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/7bffaf2b/jquery.couch.js ---------------------------------------------------------------------- diff --git a/jquery.couch.js b/jquery.couch.js index c9e00cc..b2c8e4a 100644 --- a/jquery.couch.js +++ b/jquery.couch.js @@ -164,7 +164,7 @@ return false; } else { doc._attachments = doc._attachments || {}; - doc._attachments["rev-"+doc._rev] = { + doc._attachments["rev-"+doc._rev.split("-")[0]] = { content_type :"application/json", data : Base64.encode(rawDocs[doc._id].raw) }