[ARVADOS] updated: 963c9e8f87f09ff798e23e0c9ddca6eb7bbec796

git at public.curoverse.com git at public.curoverse.com
Mon Sep 15 14:44:20 EDT 2014


Summary of changes:
 sdk/python/arvados/commands/copy.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  963c9e8f87f09ff798e23e0c9ddca6eb7bbec796 (commit)
      from  f2170ad3c6c0f390d427c6b885527b1d1b09ffa3 (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 963c9e8f87f09ff798e23e0c9ddca6eb7bbec796
Author: Tim Pierce <twp at curoverse.com>
Date:   Mon Sep 15 14:43:32 2014 -0400

    3699: copy collection properties, name, etc.
    
    copy_collection now copies the original collection object from src to dst,
    changing uuid/owner_uuid/ensure_unique_name appropriately.

diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index dfdcd6a..207a507 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -309,7 +309,11 @@ def copy_collection(obj_uuid, src, dst):
     # Copy the manifest and save the collection.
     logger.debug('saving {} manifest: {}'.format(obj_uuid, manifest))
     dst_keep.put(manifest)
-    return dst.collections().create(body={"manifest_text": manifest}).execute()
+
+    del c['uuid']
+    del c['owner_uuid']
+    c['ensure_unique_name'] = True
+    return dst.collections().create(body=c).execute()
 
 # copy_git_repo(src_git_repo, src, dst, dst_git_repo)
 #

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list