Skip to content

Dump function ignores boundary parameter #100

Closed
@djc

Description

@djc

From dsalli...@gmail.com on November 17, 2009 09:56:16

I'm trying to get consistent dumps since I automatically snapshot them all
into git. Random mime boundaries make for lots of very large diffs. The
code does what I need if you allow a boundary override.

commit 7b14da6a0df7f709fc6d1aa27d6c0750a10a181d Author: Dustin Sallings dustin@spy.net
Date: Tue Nov 17 00:46:11 2009 -0800

Honor the user-specified boundary.

diff --git a/couchdb/tools/dump.py b/couchdb/tools/dump.py
index 0497cd9..7027fd9 100644
--- a/couchdb/tools/dump.py
+++ b/couchdb/tools/dump.py
@@ -29,7 +29,7 @@ def dump_db(dburl, username=None, password=None,
boundary=None
if username is not None and password is not None:
db.resource.http.add_credentials(username, password)

  • envelope = write_multipart(output)
  • envelope = write_multipart(output, boundary=boundary)

for docid in db:
doc = db.get(docid, attachments=True)

Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=100

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions