Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 4099:cf5580c16b13
mq: propagate the return error of pop
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 17 Feb 2007 04:50:03 -0200 |
parents | 49237d6ae97d |
children | c30c922f907a |
comparison
equal
deleted
inserted
replaced
4098:c08b6af023bc | 4099:cf5580c16b13 |
---|---|
1790 q = queue(ui, repo.join(""), repo.join(opts['name'])) | 1790 q = queue(ui, repo.join(""), repo.join(opts['name'])) |
1791 ui.warn('using patch queue: %s\n' % q.path) | 1791 ui.warn('using patch queue: %s\n' % q.path) |
1792 localupdate = False | 1792 localupdate = False |
1793 else: | 1793 else: |
1794 q = repo.mq | 1794 q = repo.mq |
1795 q.pop(repo, patch, force=opts['force'], update=localupdate, all=opts['all']) | 1795 ret = q.pop(repo, patch, force=opts['force'], update=localupdate, |
1796 all=opts['all']) | |
1796 q.save_dirty() | 1797 q.save_dirty() |
1797 return 0 | 1798 return ret |
1798 | 1799 |
1799 def rename(ui, repo, patch, name=None, **opts): | 1800 def rename(ui, repo, patch, name=None, **opts): |
1800 """rename a patch | 1801 """rename a patch |
1801 | 1802 |
1802 With one argument, renames the current patch to PATCH1. | 1803 With one argument, renames the current patch to PATCH1. |