Home Download Buy Blog Forum Support

New Mercurial plugin for Sublime Text 2

New Mercurial plugin for Sublime Text 2

Postby guillermooo on Mon Jul 11, 2011 6:15 am

SublimeHg

Requires Mercurial 1.9 or later

It's functional, but needs some more work.

https://bitbucket.org/guillermooo/sublimehg/overview

Features:

* Uses the new command server in Mercurial
* Frequent commands should work fine

Bugs:

* Probably a few. Only tested on Windows 7.
* Cannot commit files with spaces in their path if entire path is specified (use "commit" instead of "commit (this file)" or wildcards from the cmd-line)
* Adds extra quotation marks to commit messages

(Also, hg-git is broken for Mercurial 1.9, so I cannot commit to the org until a patch is released.)
Last edited by guillermooo on Mon Jul 11, 2011 8:08 pm, edited 1 time in total.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Mon Jul 11, 2011 9:50 am

That's right, but I was still getting errors without the quotes... I'll look into it again.

Thanks for the tip about shlex!
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Mon Jul 11, 2011 7:12 pm

Updated!

REQUIRES Mercurial 1.9 OR LATER

* More commands
* Server is used as a server
* Better chance of working on all platforms
* More stable

https://bitbucket.org/guillermooo/sublimehg/overview
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby bizoo on Tue Jul 12, 2011 10:46 am

Thanks for the plugin, look great.

But I've an issue:
The "SublimeHg: Hg" command from the Command Palette doesn't work for me.
The "hg" command run but I go straight to the on_done() procedure with a value -1, without showing the quick_panel.
log:
Code: Select all
command: show_overlay {"overlay": "command_palette"}
command: hg
s = -1

OTOH, running the command view.run_command('hg') from the console work as expected.

Any idea ?
A ST2 bug ?

startup, version: 2079 windows x64 channel: dev
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Jul 12, 2011 11:33 am

Yep. I meant to mention that in the readme, but I forgot. You need to assign them keys (I use f10 and ctrl+f10). There are other bugs in Sublime Text related to widgets and input focus that will affect the plugin too.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Jul 12, 2011 11:54 am

And there is another bug due to shlex stripping \\ from paths on Windows... That will be an issue from the command line box only, because I forgot to include "commit (this file)" and friends in the latest release... :)
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby bizoo on Tue Jul 12, 2011 11:56 am

guillermooo wrote:Yep. I meant to mention that in the readme, but I forgot. You need to assign them keys (I use f10 and ctrl+f10). There are other bugs in Sublime Text related to widgets and input focus that will affect the plugin too.

Thanks for your answer, guillermooo.

Did you inform Jon about these bugs ?
bizoo
 
Posts: 880
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: New Mercurial plugin for Sublime Text 2

Postby jps on Tue Jul 12, 2011 12:04 pm

Yep - input focus related issues will be fixed in the next dev build
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Jul 12, 2011 6:17 pm

Updated!

* Fixed several issues
* Updated README
* Added "commit (this file)"

https://bitbucket.org/guillermooo/sublimehg/overview
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Sun Jul 17, 2011 10:02 pm

Updated!

* Won't disconnect on error or input request
* More commands

https://github.com/SublimeText/SublimeHg
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests