equal
deleted
inserted
replaced
919 raise util.Abort(_("patch %s is not in series file") % patch) |
919 raise util.Abort(_("patch %s is not in series file") % patch) |
920 if not patch: |
920 if not patch: |
921 start = self.series_end() |
921 start = self.series_end() |
922 else: |
922 else: |
923 start = self.series.index(patch) + 1 |
923 start = self.series.index(patch) + 1 |
924 for p in self.series[start:]: |
924 return [(i, self.series[i]) for i in xrange(start, len(self.series))] |
925 if self.ui.verbose: |
|
926 self.ui.write("%d " % self.series.index(p)) |
|
927 self.ui.write("%s\n" % p) |
|
928 |
925 |
929 def qseries(self, repo, missing=None, summary=False): |
926 def qseries(self, repo, missing=None, summary=False): |
930 start = self.series_end() |
927 start = self.series_end() |
931 if not missing: |
928 if not missing: |
932 for i in range(len(self.series)): |
929 for i in range(len(self.series)): |
1171 repo.mq.qapplied(repo, patch) |
1168 repo.mq.qapplied(repo, patch) |
1172 return 0 |
1169 return 0 |
1173 |
1170 |
1174 def unapplied(ui, repo, patch=None, **opts): |
1171 def unapplied(ui, repo, patch=None, **opts): |
1175 """print the patches not yet applied""" |
1172 """print the patches not yet applied""" |
1176 repo.mq.unapplied(repo, patch) |
1173 for i, p in repo.mq.unapplied(repo, patch): |
1177 return 0 |
1174 if ui.verbose: |
|
1175 ui.write("%d " % i) |
|
1176 ui.write("%s\n" % p) |
1178 |
1177 |
1179 def qimport(ui, repo, *filename, **opts): |
1178 def qimport(ui, repo, *filename, **opts): |
1180 """import a patch""" |
1179 """import a patch""" |
1181 q = repo.mq |
1180 q = repo.mq |
1182 q.qimport(repo, filename, patch=opts['name'], |
1181 q.qimport(repo, filename, patch=opts['name'], |