##// END OF EJS Templates
mq: removed return from callers to patchheader.qseries...
Erik Zielke -
r12539:dece1f46 default
parent child Browse files
Show More
@@ -1778,8 +1778,9 b' def applied(ui, repo, patch=None, **opts'
1778 else:
1778 else:
1779 start = 0
1779 start = 0
1780
1780
1781 return q.qseries(repo, length=end, start=start, status='A',
1781 q.qseries(repo, length=end, start=start, status='A',
1782 summary=opts.get('summary'))
1782 summary=opts.get('summary'))
1783
1783
1784
1784 def unapplied(ui, repo, patch=None, **opts):
1785 def unapplied(ui, repo, patch=None, **opts):
1785 """print the patches not yet applied
1786 """print the patches not yet applied
@@ -1799,8 +1800,8 b' def unapplied(ui, repo, patch=None, **op'
1799 return 1
1800 return 1
1800
1801
1801 length = opts.get('first') and 1 or None
1802 length = opts.get('first') and 1 or None
1802 return q.qseries(repo, start=start, length=length, status='U',
1803 q.qseries(repo, start=start, length=length, status='U',
1803 summary=opts.get('summary'))
1804 summary=opts.get('summary'))
1804
1805
1805 def qimport(ui, repo, *filename, **opts):
1806 def qimport(ui, repo, *filename, **opts):
1806 """import a patch
1807 """import a patch
@@ -1976,8 +1977,8 b' def top(ui, repo, **opts):'
1976 q = repo.mq
1977 q = repo.mq
1977 t = q.applied and q.series_end(True) or 0
1978 t = q.applied and q.series_end(True) or 0
1978 if t:
1979 if t:
1979 return q.qseries(repo, start=t - 1, length=1, status='A',
1980 q.qseries(repo, start=t - 1, length=1, status='A',
1980 summary=opts.get('summary'))
1981 summary=opts.get('summary'))
1981 else:
1982 else:
1982 ui.write(_("no patches applied\n"))
1983 ui.write(_("no patches applied\n"))
1983 return 1
1984 return 1
@@ -1991,7 +1992,7 b' def next(ui, repo, **opts):'
1991 if end == len(q.series):
1992 if end == len(q.series):
1992 ui.write(_("all patches applied\n"))
1993 ui.write(_("all patches applied\n"))
1993 return 1
1994 return 1
1994 return q.qseries(repo, start=end, length=1, summary=opts.get('summary'))
1995 q.qseries(repo, start=end, length=1, summary=opts.get('summary'))
1995
1996
1996 def prev(ui, repo, **opts):
1997 def prev(ui, repo, **opts):
1997 """print the name of the previous patch
1998 """print the name of the previous patch
@@ -2005,8 +2006,8 b' def prev(ui, repo, **opts):'
2005 if not l:
2006 if not l:
2006 ui.write(_("no patches applied\n"))
2007 ui.write(_("no patches applied\n"))
2007 return 1
2008 return 1
2008 return q.qseries(repo, start=l - 2, length=1, status='A',
2009 q.qseries(repo, start=l - 2, length=1, status='A',
2009 summary=opts.get('summary'))
2010 summary=opts.get('summary'))
2010
2011
2011 def setupheaderopts(ui, opts):
2012 def setupheaderopts(ui, opts):
2012 if not opts.get('user') and opts.get('currentuser'):
2013 if not opts.get('user') and opts.get('currentuser'):
General Comments 0
You need to be logged in to leave comments. Login now