[PATCH] Hg: use prompthook to deal with authentication
authorWillem Verstraeten <willem.verstraeten@luciad.com>
Tue, 5 Apr 2011 13:44:15 +0000 (17:44 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Fri, 8 Apr 2011 10:22:15 +0000 (14:22 +0400)
commit246f584ac38b19e91050ec949f60f0f692d0073f
tree0e4744b99c12cdc56591c57389d7d9aa1650f69f
parent4a515dcda02bef5986f916721e6902985e104973
[PATCH] Hg: use prompthook to deal with authentication

- added extra hook in prompthooks.py to retrieve username and password from IDE.
- reworked command authenticator to no longer try to parse URL logic.

Comment from Kirill Likhodedov: removed foxtrot library from the patch. Currently still executing hg commands in EDT. Fix will follow in the next commit.
16 files changed:
plugins/hg4idea/resources/org/zmlx/hg4idea/HgVcsMessages.properties
plugins/hg4idea/resources/python/LICENSE.txt [new file with mode: 0644]
plugins/hg4idea/resources/python/README.txt [new file with mode: 0644]
plugins/hg4idea/resources/python/prompthooks.py
plugins/hg4idea/src/org/zmlx/hg4idea/HgGlobalSettings.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCloneCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandAuthenticator.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCommandService.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgIdentifyCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPullCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgPushCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/HgRemoteChangesetsCommand.java
plugins/hg4idea/src/org/zmlx/hg4idea/command/SocketServer.java
plugins/hg4idea/src/org/zmlx/hg4idea/provider/HgCheckoutProvider.java
plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgCloneDialog.java
plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgUsernamePasswordDialog.java