Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svn: Update segment to ThreadedSegment #333

Merged
merged 2 commits into from
Dec 12, 2017
Merged

svn: Update segment to ThreadedSegment #333

merged 2 commits into from
Dec 12, 2017

Conversation

kc9jud
Copy link
Contributor

@kc9jud kc9jud commented Nov 26, 2017

Modeled after the git segment.

@kc9jud
Copy link
Contributor Author

kc9jud commented Nov 26, 2017

This is a duplicate of 4942ad5 (PR #298), but no dependence on the VCS icons.

return
class Segment(ThreadedSegment):
def __init__(self, powerline):
super().__init__(powerline)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project currently supports Python 2 and super() won't work there. Dropping python 2 has been something on my mind, but right now that's the situation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does 2fba29e fix this?

@b-ryan
Copy link
Owner

b-ryan commented Dec 12, 2017

LGTM. Did some basic testing, but I assume you were more thorough. Thanks!

@b-ryan b-ryan merged commit 7f837ed into b-ryan:master Dec 12, 2017

for line in svn_info.splitlines():
line = line.decode("utf-8").strip()
if "Revision: " in line:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an issue with locales other than English because svn info's output is localized. I fixed it in commit 235e02b, since I had to merge it anyway. My solution was to use svn info --xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants