Show More
@@ -916,7 +916,7 b' class queue:' | |||||
916 | def refresh(self, repo, pats=None, **opts): |
|
916 | def refresh(self, repo, pats=None, **opts): | |
917 | if len(self.applied) == 0: |
|
917 | if len(self.applied) == 0: | |
918 | self.ui.write("No patches applied\n") |
|
918 | self.ui.write("No patches applied\n") | |
919 | return |
|
919 | return 1 | |
920 | wlock = repo.wlock() |
|
920 | wlock = repo.wlock() | |
921 | self.check_toppatch(repo) |
|
921 | self.check_toppatch(repo) | |
922 | (top, patch) = (self.applied[-1].rev, self.applied[-1].name) |
|
922 | (top, patch) = (self.applied[-1].rev, self.applied[-1].name) | |
@@ -1450,9 +1450,9 b' def refresh(ui, repo, *pats, **opts):' | |||||
1450 | patch = q.applied[-1].name |
|
1450 | patch = q.applied[-1].name | |
1451 | (message, comment, user, date, hasdiff) = q.readheaders(patch) |
|
1451 | (message, comment, user, date, hasdiff) = q.readheaders(patch) | |
1452 | message = ui.edit('\n'.join(message), user or ui.username()) |
|
1452 | message = ui.edit('\n'.join(message), user or ui.username()) | |
1453 | q.refresh(repo, pats, msg=message, **opts) |
|
1453 | ret = q.refresh(repo, pats, msg=message, **opts) | |
1454 | q.save_dirty() |
|
1454 | q.save_dirty() | |
1455 |
return |
|
1455 | return ret | |
1456 |
|
1456 | |||
1457 | def diff(ui, repo, *pats, **opts): |
|
1457 | def diff(ui, repo, *pats, **opts): | |
1458 | """diff of the current patch""" |
|
1458 | """diff of the current patch""" |
General Comments 0
You need to be logged in to leave comments.
Login now