53 args.append("--print") |
51 args.append("--print") |
54 if deleteAll: |
52 if deleteAll: |
55 args.append("--all") |
53 args.append("--all") |
56 |
54 |
57 client = self.vcs.getClient() |
55 client = self.vcs.getClient() |
58 if client: |
56 out, err = client.runcommand(args) |
59 out, err = client.runcommand(args) |
57 if out: |
60 if out: |
58 purgeEntries = out.strip().split() |
61 purgeEntries = out.strip().split() |
|
62 else: |
|
63 process = QProcess() |
|
64 process.setWorkingDirectory(repodir) |
|
65 process.start('hg', args) |
|
66 procStarted = process.waitForStarted(5000) |
|
67 if procStarted: |
|
68 finished = process.waitForFinished(30000) |
|
69 if finished and process.exitCode() == 0: |
|
70 purgeEntries = str( |
|
71 process.readAllStandardOutput(), |
|
72 self.vcs.getEncoding(), 'replace').strip().split() |
|
73 |
59 |
74 return purgeEntries |
60 return purgeEntries |
75 |
61 |
76 def hgPurge(self, name, deleteAll=False): |
62 def hgPurge(self, name, deleteAll=False): |
77 """ |
63 """ |