Skip to content

Commit

Permalink
Merge pull request #18 from lite3/master
Browse files Browse the repository at this point in the history
hung window when command of update and revert.
  • Loading branch information
litefeel committed Nov 5, 2013
2 parents 8d78b4e + 6a1b5d3 commit 6caee1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TortoiseSVN.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import subprocess

class TortoiseSvnCommand(sublime_plugin.WindowCommand):
def run(self, cmd, paths=None):
def run(self, cmd, paths=None, isHung=False):
if paths:
dir = '*'.join(paths)
else:
Expand All @@ -26,12 +26,13 @@ def run(self, cmd, paths=None):
# This is required, cause of ST must wait TortoiseSVN update then revert
# the file. Otherwise the file reverting occur before SVN update, if the
# file changed the file content in ST is older.
proce.communicate()
if isHung:
proce.communicate()


class MutatingTortoiseSvnCommand(TortoiseSvnCommand):
def run(self, cmd, paths=None):
TortoiseSvnCommand.run(self, cmd, paths)
TortoiseSvnCommand.run(self, cmd, paths, True)

self.view = sublime.active_window().active_view()
(row,col) = self.view.rowcol(self.view.sel()[0].begin())
Expand Down

0 comments on commit 6caee1f

Please sign in to comment.