52 args = self.vcs.initCommand("shelve") |
50 args = self.vcs.initCommand("shelve") |
53 args.append('--list') |
51 args.append('--list') |
54 args.append('--quiet') |
52 args.append('--quiet') |
55 |
53 |
56 client = self.vcs.getClient() |
54 client = self.vcs.getClient() |
57 output = "" |
55 output = client.runcommand(args)[0] |
58 if client: |
|
59 output = client.runcommand(args)[0] |
|
60 else: |
|
61 process = QProcess() |
|
62 process.setWorkingDirectory(repodir) |
|
63 process.start('hg', args) |
|
64 procStarted = process.waitForStarted(5000) |
|
65 if procStarted: |
|
66 finished = process.waitForFinished(30000) |
|
67 if finished and process.exitCode() == 0: |
|
68 output = str(process.readAllStandardOutput(), |
|
69 self.vcs.getEncoding(), 'replace') |
|
70 |
56 |
71 shelveNamesList = [] |
57 shelveNamesList = [] |
72 for line in output.splitlines(): |
58 for line in output.splitlines(): |
73 shelveNamesList.append(line.strip()) |
59 shelveNamesList.append(line.strip()) |
74 |
60 |