dtao / SublimeBucket

Bitbucket plugin for Sublime Text 3
https://packagecontrol.io/packages/Bitbucket
MIT License
8 stars 5 forks source link

find_current_revision : ignore uncommited changes #4

Closed martync closed 7 years ago

martync commented 7 years ago

The command "hg id -i" will add a "+" sign if there are uncommited changes on local version. This implies a 404 on bitbucket server, so I've just removed this "+".

There are many ways to do it, not sure this (.split("+")[0]) is your prefered way but seems to just work.

dtao commented 7 years ago

D'oh! Sorry, I think I rebased this commit half-accidentally (I mean, it was on purpose, but I wasn't really thinking).

Anyway, I took your suggestion and just tweaked it slightly by changing split('+')[0] to rsplit('+').