{"action":"created","comment":{"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/comments/81320276","pull_request_review_id":2308374,"id":81320276,"diff_hunk":"@@ -3249,13 +3256,117 @@ void FileSprayer::updateTargetProperties()\n                 if (stricmp(aname, \"Protect\") != 0)\n                     curProps.addPropTree(aname, createPTreeFromIPT(&iter->query()));\n             }\n+\n+            // Handle history\n+            IPropertyTree *curHistory = lock.queryHistory();\n+\n+            if (srcHistory)\n+            {\n+                // copy history records from source file\n+                Owned<IPropertyTreeIterator> historyIter = srcHistory->getElements(\"*\");\n+                ForEach(*historyIter)\n+                {\n+                    const char *aname = historyIter->query().queryName();\n+                    curHistory->addPropTree(aname, createPTreeFromIPT(&historyIter->query()));\n+                }\n+            }\n+\n+            // Add new record about this operation\n+            IPropertyTree * newRecord = createPTree(\"Origin\");\n+\n+            CDateTime temp;\n+            temp.setNow();\n+            unsigned hour, min, sec, nanosec;\n+            temp.getTime(hour, min, sec, nanosec);\n+            temp.setTime(hour, min, sec, 0);\n+\n+            StringBuffer timestr;\n+            newRecord->addProp(\"@timestamp\",temp.getString(timestr).str());\n+\n+            StringBuffer val;\n+            srcAttr->getProp(\"@owner\", val);\n+            newRecord->addProp(\"@owner\", val.str());\n+\n+            srcAttr->getProp(\"@workunit\", val.clear());\n+            if (0 == val.length())\n+                val.set(\"N/A\");\n+            newRecord->addProp(\"@workunit\", val.str());\n+\n+            newRecord->addProp(\"@operation\", getOperationTypeString());\n+\n+            // add original file name\n+            if (distributedSource)","path":"dali/ft/filecopy.cpp","position":64,"original_position":64,"commit_id":"3cad697d882a14fb55afbcaa5c9d1230505cb491","original_commit_id":"3cad697d882a14fb55afbcaa5c9d1230505cb491","user":{"login":"jakesmith","id":902700,"avatar_url":"https://avatars.githubusercontent.com/u/902700?v=3","gravatar_id":"","url":"https://api.github.com/users/jakesmith","html_url":"https://github.com/jakesmith","followers_url":"https://api.github.com/users/jakesmith/followers","following_url":"https://api.github.com/users/jakesmith/following{/other_user}","gists_url":"https://api.github.com/users/jakesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jakesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakesmith/subscriptions","organizations_url":"https://api.github.com/users/jakesmith/orgs","repos_url":"https://api.github.com/users/jakesmith/repos","events_url":"https://api.github.com/users/jakesmith/events{/privacy}","received_events_url":"https://api.github.com/users/jakesmith/received_events","type":"User","site_admin":false},"body":"Ok","created_at":"2016-09-30T11:14:14Z","updated_at":"2016-09-30T11:14:14Z","html_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197#discussion_r81320276","pull_request_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197","_links":{"self":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/comments/81320276"},"html":{"href":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197#discussion_r81320276"},"pull_request":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197"}}},"pull_request":{"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197","id":87328076,"html_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197","diff_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197.diff","patch_url":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197.patch","issue_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/9197","number":9197,"state":"open","locked":false,"title":"HPCC-16375 Add core functionality","user":{"login":"AttilaVamos","id":3518475,"avatar_url":"https://avatars.githubusercontent.com/u/3518475?v=3","gravatar_id":"","url":"https://api.github.com/users/AttilaVamos","html_url":"https://github.com/AttilaVamos","followers_url":"https://api.github.com/users/AttilaVamos/followers","following_url":"https://api.github.com/users/AttilaVamos/following{/other_user}","gists_url":"https://api.github.com/users/AttilaVamos/gists{/gist_id}","starred_url":"https://api.github.com/users/AttilaVamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AttilaVamos/subscriptions","organizations_url":"https://api.github.com/users/AttilaVamos/orgs","repos_url":"https://api.github.com/users/AttilaVamos/repos","events_url":"https://api.github.com/users/AttilaVamos/events{/privacy}","received_events_url":"https://api.github.com/users/AttilaVamos/received_events","type":"User","site_admin":false},"body":"Add core functionality to copy and extend file history in DFU\r\noperation like: spray, copy.\r\n\r\nIt is the first subtask of \"HPCC-16072 retain metadata (atleast\r\nthe owner) during file copy\" issue.\r\n\r\nSigned-off-by: Attila Vamos <attila.vamos@gmail.com>","created_at":"2016-09-29T14:47:26Z","updated_at":"2016-09-30T11:14:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c5f298b2e8f6e7fde0632f9127c4f67779d83bb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197/commits","review_comments_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197/comments","review_comment_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/9197/comments","statuses_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/statuses/3cad697d882a14fb55afbcaa5c9d1230505cb491","head":{"label":"AttilaVamos:HPCC-16375-impr-6.2.0","ref":"HPCC-16375-impr-6.2.0","sha":"3cad697d882a14fb55afbcaa5c9d1230505cb491","user":{"login":"AttilaVamos","id":3518475,"avatar_url":"https://avatars.githubusercontent.com/u/3518475?v=3","gravatar_id":"","url":"https://api.github.com/users/AttilaVamos","html_url":"https://github.com/AttilaVamos","followers_url":"https://api.github.com/users/AttilaVamos/followers","following_url":"https://api.github.com/users/AttilaVamos/following{/other_user}","gists_url":"https://api.github.com/users/AttilaVamos/gists{/gist_id}","starred_url":"https://api.github.com/users/AttilaVamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AttilaVamos/subscriptions","organizations_url":"https://api.github.com/users/AttilaVamos/orgs","repos_url":"https://api.github.com/users/AttilaVamos/repos","events_url":"https://api.github.com/users/AttilaVamos/events{/privacy}","received_events_url":"https://api.github.com/users/AttilaVamos/received_events","type":"User","site_admin":false},"repo":{"id":9005214,"name":"HPCC-Platform","full_name":"AttilaVamos/HPCC-Platform","owner":{"login":"AttilaVamos","id":3518475,"avatar_url":"https://avatars.githubusercontent.com/u/3518475?v=3","gravatar_id":"","url":"https://api.github.com/users/AttilaVamos","html_url":"https://github.com/AttilaVamos","followers_url":"https://api.github.com/users/AttilaVamos/followers","following_url":"https://api.github.com/users/AttilaVamos/following{/other_user}","gists_url":"https://api.github.com/users/AttilaVamos/gists{/gist_id}","starred_url":"https://api.github.com/users/AttilaVamos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AttilaVamos/subscriptions","organizations_url":"https://api.github.com/users/AttilaVamos/orgs","repos_url":"https://api.github.com/users/AttilaVamos/repos","events_url":"https://api.github.com/users/AttilaVamos/events{/privacy}","received_events_url":"https://api.github.com/users/AttilaVamos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AttilaVamos/HPCC-Platform","description":"IMPORTANT - Issue tracking has been migrated to JIRA - use your github ID and password reset mechanism to log in","fork":true,"url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform","forks_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/forks","keys_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/teams","hooks_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/hooks","issue_events_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/issues/events{/number}","events_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/events","assignees_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/assignees{/user}","branches_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/branches{/branch}","tags_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/tags","blobs_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/statuses/{sha}","languages_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/languages","stargazers_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/stargazers","contributors_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/contributors","subscribers_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/subscribers","subscription_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/subscription","commits_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/contents/{+path}","compare_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/merges","archive_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/downloads","issues_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/issues{/number}","pulls_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/pulls{/number}","milestones_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/milestones{/number}","notifications_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/labels{/name}","releases_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/releases{/id}","deployments_url":"https://api.github.com/repos/AttilaVamos/HPCC-Platform/deployments","created_at":"2013-03-25T12:04:47Z","updated_at":"2015-05-08T09:58:18Z","pushed_at":"2016-09-29T14:46:48Z","git_url":"git://github.com/AttilaVamos/HPCC-Platform.git","ssh_url":"git@github.com:AttilaVamos/HPCC-Platform.git","clone_url":"https://github.com/AttilaVamos/HPCC-Platform.git","svn_url":"https://github.com/AttilaVamos/HPCC-Platform","homepage":"track.hpccsystems.com","size":155190,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hpcc-systems:master","ref":"master","sha":"56924d9a7d1f8a839eb60fae762d49a1c58ca7be","user":{"login":"hpcc-systems","id":900867,"avatar_url":"https://avatars.githubusercontent.com/u/900867?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcc-systems","html_url":"https://github.com/hpcc-systems","followers_url":"https://api.github.com/users/hpcc-systems/followers","following_url":"https://api.github.com/users/hpcc-systems/following{/other_user}","gists_url":"https://api.github.com/users/hpcc-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcc-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcc-systems/subscriptions","organizations_url":"https://api.github.com/users/hpcc-systems/orgs","repos_url":"https://api.github.com/users/hpcc-systems/repos","events_url":"https://api.github.com/users/hpcc-systems/events{/privacy}","received_events_url":"https://api.github.com/users/hpcc-systems/received_events","type":"Organization","site_admin":false},"repo":{"id":2030681,"name":"HPCC-Platform","full_name":"hpcc-systems/HPCC-Platform","owner":{"login":"hpcc-systems","id":900867,"avatar_url":"https://avatars.githubusercontent.com/u/900867?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcc-systems","html_url":"https://github.com/hpcc-systems","followers_url":"https://api.github.com/users/hpcc-systems/followers","following_url":"https://api.github.com/users/hpcc-systems/following{/other_user}","gists_url":"https://api.github.com/users/hpcc-systems/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcc-systems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcc-systems/subscriptions","organizations_url":"https://api.github.com/users/hpcc-systems/orgs","repos_url":"https://api.github.com/users/hpcc-systems/repos","events_url":"https://api.github.com/users/hpcc-systems/events{/privacy}","received_events_url":"https://api.github.com/users/hpcc-systems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpcc-systems/HPCC-Platform","description":"HPCC Systems (High Performance Computing Cluster) is an open source, massive parallel-processing computing platform for big data processing and analytics.","fork":false,"url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform","forks_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/forks","keys_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/teams","hooks_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/hooks","issue_events_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/events{/number}","events_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/events","assignees_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/assignees{/user}","branches_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/branches{/branch}","tags_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/tags","blobs_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/languages","stargazers_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/stargazers","contributors_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/contributors","subscribers_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/subscribers","subscription_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/subscription","commits_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/contents/{+path}","compare_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/merges","archive_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/downloads","issues_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues{/number}","pulls_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/labels{/name}","releases_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/releases{/id}","deployments_url":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/deployments","created_at":"2011-07-11T14:29:51Z","updated_at":"2016-09-29T00:55:21Z","pushed_at":"2016-09-30T09:39:57Z","git_url":"git://github.com/hpcc-systems/HPCC-Platform.git","ssh_url":"git@github.com:hpcc-systems/HPCC-Platform.git","clone_url":"https://github.com/hpcc-systems/HPCC-Platform.git","svn_url":"https://github.com/hpcc-systems/HPCC-Platform","homepage":"http://hpccsystems.com","size":183907,"stargazers_count":289,"watchers_count":289,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":153,"mirror_url":null,"open_issues_count":416,"forks":153,"open_issues":416,"watchers":289,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197"},"html":{"href":"https://github.com/hpcc-systems/HPCC-Platform/pull/9197"},"issue":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/9197"},"comments":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/issues/9197/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/pulls/9197/commits"},"statuses":{"href":"https://api.github.com/repos/hpcc-systems/HPCC-Platform/statuses/3cad697d882a14fb55afbcaa5c9d1230505cb491"}}}}
{"actor":{"display_login":"jakesmith"}}