{"action":"opened","issue":{"url":"https://api.github.com/repos/b-ryan/powerline-shell/issues/395","repository_url":"https://api.github.com/repos/b-ryan/powerline-shell","labels_url":"https://api.github.com/repos/b-ryan/powerline-shell/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/b-ryan/powerline-shell/issues/395/comments","events_url":"https://api.github.com/repos/b-ryan/powerline-shell/issues/395/events","html_url":"https://github.com/b-ryan/powerline-shell/issues/395","id":318074889,"number":395,"title":"Bug in SVN segment when navigating to an ignored folder inside a versioned folder","user":{"login":"tberne","id":10933706,"avatar_url":"https://avatars1.githubusercontent.com/u/10933706?v=4","gravatar_id":"","url":"https://api.github.com/users/tberne","html_url":"https://github.com/tberne","followers_url":"https://api.github.com/users/tberne/followers","following_url":"https://api.github.com/users/tberne/following{/other_user}","gists_url":"https://api.github.com/users/tberne/gists{/gist_id}","starred_url":"https://api.github.com/users/tberne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tberne/subscriptions","organizations_url":"https://api.github.com/users/tberne/orgs","repos_url":"https://api.github.com/users/tberne/repos","events_url":"https://api.github.com/users/tberne/events{/privacy}","received_events_url":"https://api.github.com/users/tberne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T15:12:52Z","updated_at":"2018-04-26T15:12:52Z","closed_at":null,"author_association":"NONE","body":"I have the following structure:\r\n\r\n    .../Lumis_PortalJava\r\n                  |- portal_install\r\n\r\nThe `Lumis_PortalJava` is versioned in SVN.\r\nIt's child `portal_install` is ignored. \r\nWhenever I enter in `portal_install` (and any subfolder), I get the following error:\r\n\r\n![powerline-shell-svn-bug](https://user-images.githubusercontent.com/10933706/39313969-a1856966-4949-11e8-8b1d-54134c3abf70.png)\r\n\r\nIt seems to be a problem with the following method: [_get_svn_revision()](https://github.com/b-ryan/powerline-shell/blob/73b01d659732637e72e4fe53fb430ccabc528d57/powerline_shell/segments/svn.py#L5).\r\n\r\nEither this method should return an empty revision (what would produce a strange behavior, IMHO) or [parse_svn_stats](https://github.com/b-ryan/powerline-shell/blob/73b01d659732637e72e4fe53fb430ccabc528d57/powerline_shell/segments/svn.py#L17) should ignore ingored files or folders (those line starting with `I`). The second approach seems to produce a better user experience (but I haven't tried any of those to be sure)."}}
{"actor":{"display_login":"tberne"}}