Merge lp:~cmiller/desktopcouch/replicate-no-underscored-dbs into lp:desktopcouch

Proposed by Chad Miller
Status: Merged
Approved by: Vincenzo Di Somma
Approved revision: 168
Merged at revision: 192
Proposed branch: lp:~cmiller/desktopcouch/replicate-no-underscored-dbs
Merge into: lp:desktopcouch
Diff against target: 12 lines (+1/-1)
1 file modified
desktopcouch/pair/couchdb_pairing/couchdb_io.py (+1/-1)
To merge this branch: bzr merge lp:~cmiller/desktopcouch/replicate-no-underscored-dbs
Reviewer Review Type Date Requested Status
Vincenzo Di Somma (community) Approve
Eric Casteleijn (community) Approve
Review via email: mp+39693@code.launchpad.net

Commit message

Do not include databases that start with an underscore in replication candidates. (LP: #627085)

To post a comment you must log in.
Revision history for this message
Eric Casteleijn (thisfred) wrote :

Awesome, approvz0rd

review: Approve
Revision history for this message
Vincenzo Di Somma (vds) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'desktopcouch/pair/couchdb_pairing/couchdb_io.py'
2--- desktopcouch/pair/couchdb_pairing/couchdb_io.py 2010-04-15 19:28:43 +0000
3+++ desktopcouch/pair/couchdb_pairing/couchdb_io.py 2010-10-30 21:38:43 +0000
4@@ -155,7 +155,7 @@
5 for excluded_mset in excluded_msets:
6 excluded.update(excluded_mset)
7
8- return all_dbs - excluded
9+ return set([n for n in all_dbs - excluded if not n.startswith("_")])
10
11 def get_my_host_unique_id(uri=None, create=True,
12 ctx=local_files.DEFAULT_CONTEXT):

Subscribers

People subscribed via source and target branches