{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/21025","labels_url":"https://api.github.com/repos/saltstack/salt/issues/21025/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/21025/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/21025/events","html_url":"https://github.com/saltstack/salt/issues/21025","id":58930522,"number":21025,"title":"svn.export reports invalid change data (2014.7.x)","user":{"login":"RobertFach","id":1011641,"avatar_url":"https://avatars.githubusercontent.com/u/1011641?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertFach","html_url":"https://github.com/RobertFach","followers_url":"https://api.github.com/users/RobertFach/followers","following_url":"https://api.github.com/users/RobertFach/following{/other_user}","gists_url":"https://api.github.com/users/RobertFach/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertFach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertFach/subscriptions","organizations_url":"https://api.github.com/users/RobertFach/orgs","repos_url":"https://api.github.com/users/RobertFach/repos","events_url":"https://api.github.com/users/RobertFach/events{/privacy}","received_events_url":"https://api.github.com/users/RobertFach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T16:44:48Z","updated_at":"2015-02-25T17:26:36Z","closed_at":null,"body":"Hi,\r\n\r\nsvn.export reports an issue with an invalid change data when using svn.export. Looking at the code, it shows that the changes structure is not constructed correctly. This might be for historical reasons.\r\n\r\nhttps://github.com/saltstack/salt/blob/117d3356db30905050ff41ffbe70a356a7ee34ae/salt/states/svn.py#L234\r\n\r\n`ret['changes'] = name + ' was Exported to ' + target`\r\n\r\nshould be changed to\r\n\r\n`ret['changes']['new'] = name`\r\n`ret['changes']['comment'] = name + ' was Exported to ' + target`\r\n\r\nversion Salt: 2014.7.trunk\r\n\r\nI will provide a fix for that.\r\n\r\nAnother issue is that the change detection itself cannot work correctly. Right now and with the fix, it would always report a change. The general problem behind it is that it looks difficult to detect a change on a directory that is not under version control. Does anybody has an idea on how to do that?\r\n\r\nCheers,"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/76010286","html_url":"https://github.com/saltstack/salt/issues/21025#issuecomment-76010286","issue_url":"https://api.github.com/repos/saltstack/salt/issues/21025","id":76010286,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T17:26:36Z","updated_at":"2015-02-25T17:26:36Z","body":"@RobertFach, thanks for reporting.  Be sure to submit your pull request against the 2014.7 branch."}}