Mercurial > hg
comparison hgext/mq.py @ 10407:2e8926e9cc32
mq: incorporate mq repo config when using --mq
For example, incoming should use the paths defined in .hg/patches/hgrc
instead of .hg/hgrc.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 10 Feb 2010 10:58:11 -0800 |
parents | d216fa04e48a |
children | b59fba37e5e6 |
comparison
equal
deleted
inserted
replaced
10406:6586a6889f66 | 10407:2e8926e9cc32 |
---|---|
2658 | 2658 |
2659 q = repo.mq | 2659 q = repo.mq |
2660 r = q.qrepo() | 2660 r = q.qrepo() |
2661 if not r: | 2661 if not r: |
2662 raise util.Abort('no queue repository') | 2662 raise util.Abort('no queue repository') |
2663 return orig(ui, r, *args, **kwargs) | 2663 return orig(r.ui, r, *args, **kwargs) |
2664 | 2664 |
2665 def uisetup(ui): | 2665 def uisetup(ui): |
2666 mqopt = [('Q', 'mq', None, _("operate on patch repository"))] | 2666 mqopt = [('Q', 'mq', None, _("operate on patch repository"))] |
2667 | 2667 |
2668 extensions.wrapcommand(commands.table, 'import', mqimport) | 2668 extensions.wrapcommand(commands.table, 'import', mqimport) |