b-ryan / powerline-shell

A beautiful and useful prompt for your shell
MIT License
6.22k stars 745 forks source link

BUG in SVN segment when there's a SVN changelist #403

Open tberne opened 6 years ago

tberne commented 6 years ago

I suppose its a matter of ignoring blank lines. Error below:

bug-svn_withchangelist

tberne commented 6 years ago

Error as txt:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "build/bdist.linux-x86_64/egg/powerline_shell/segments/svn.py", line 59, in run
    self.stats, self.revision = build_stats()
  File "build/bdist.linux-x86_64/egg/powerline_shell/segments/svn.py", line 47, in build_stats
    stats = parse_svn_stats(status)
  File "build/bdist.linux-x86_64/egg/powerline_shell/segments/svn.py", line 20, in parse_svn_stats
    if line[0] == "?":
IndexError: string index out of range