lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Dump function ignores boundary parameter #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 reported on code.google.com by dsalli...@gmail.com on 17 Nov 2009 at 8:56

GoogleCodeExporter commented 8 years ago
Pushed as r394ed3128413.

Original comment by djc.ochtman on 8 Dec 2009 at 4:38