Mercurial > hg
comparison hgext/mq.py @ 16192:a4413624d014
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 28 Feb 2012 21:17:53 -0600 |
parents | 816211dfa3a5 6b52963ced73 |
children | 877aea86fb73 |
comparison
equal
deleted
inserted
replaced
16186:af3e67354beb | 16192:a4413624d014 |
---|---|
1928 q.delete(repo, patches, opts) | 1928 q.delete(repo, patches, opts) |
1929 q.savedirty() | 1929 q.savedirty() |
1930 return 0 | 1930 return 0 |
1931 | 1931 |
1932 @command("qapplied", | 1932 @command("qapplied", |
1933 [('1', 'last', None, _('show only the last patch')) | 1933 [('1', 'last', None, _('show only the preceding applied patch')) |
1934 ] + seriesopts, | 1934 ] + seriesopts, |
1935 _('hg qapplied [-1] [-s] [PATCH]')) | 1935 _('hg qapplied [-1] [-s] [PATCH]')) |
1936 def applied(ui, repo, patch=None, **opts): | 1936 def applied(ui, repo, patch=None, **opts): |
1937 """print the patches already applied | 1937 """print the patches already applied |
1938 | 1938 |
2223 return 1 | 2223 return 1 |
2224 q.qseries(repo, start=end, length=1, summary=opts.get('summary')) | 2224 q.qseries(repo, start=end, length=1, summary=opts.get('summary')) |
2225 | 2225 |
2226 @command("qprev", seriesopts, _('hg qprev [-s]')) | 2226 @command("qprev", seriesopts, _('hg qprev [-s]')) |
2227 def prev(ui, repo, **opts): | 2227 def prev(ui, repo, **opts): |
2228 """print the name of the previous applied patch | 2228 """print the name of the preceding applied patch |
2229 | 2229 |
2230 Returns 0 on success.""" | 2230 Returns 0 on success.""" |
2231 q = repo.mq | 2231 q = repo.mq |
2232 l = len(q.applied) | 2232 l = len(q.applied) |
2233 if l == 1: | 2233 if l == 1: |