[ARVADOS] updated: 08c3828aa71b5967707208a9fbe4a70198ff8279

git at public.curoverse.com git at public.curoverse.com
Thu Feb 5 16:12:14 EST 2015


Summary of changes:
 sdk/python/arvados/collection.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  08c3828aa71b5967707208a9fbe4a70198ff8279 (commit)
      from  19f7fd5eac2f65414eab857a17dfe727501bb294 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 08c3828aa71b5967707208a9fbe4a70198ff8279
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Feb 5 16:14:24 2015 -0500

    4823: Fix instance of Collection -> CollectionRoot.  Tweaked a couple of comments.

diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py
index 1a1925c..20f5c40 100644
--- a/sdk/python/arvados/collection.py
+++ b/sdk/python/arvados/collection.py
@@ -1015,13 +1015,13 @@ class SynchronizedCollectionBase(CollectionBase):
                     self.copy(initial, conflictpath)
             elif c[0] == MOD:
                 if local == initial:
-                    # Local matches the "initial" item so assume it hasn't
+                    # Local matches the "initial" item so it has not
                     # changed locally and is safe to update.
                     if isinstance(local, ArvadosFile) and isinstance(c[3], ArvadosFile):
                         # Replace contents of local file with new contents
                         local.replace_contents(c[3])
                     else:
-                        # Overwrite path with new item; this can happen if if
+                        # Overwrite path with new item; this can happen if
                         # path was a file and is now a collection or vice versa
                         self.copy(c[3], path, overwrite=True)
                 else:
@@ -1504,7 +1504,7 @@ def import_manifest(manifest_text,
             raise ArgumentError("Can only import manifest into an empty collection")
         c = into_collection
     else:
-        c = Collection(api_client=api_client, keep_client=keep, num_retries=num_retries, sync=sync)
+        c = CollectionRoot(api_client=api_client, keep_client=keep, num_retries=num_retries, sync=sync)
 
     save_sync = c.sync_mode()
     c._sync = None

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list