comparison hgext/mq.py @ 16188:6b52963ced73 stable

mq: fix qapplied --last and qprev documentation (issue3282) qapplied --last is qprev not qtop. v2: - Replace "previous" with "preceding" as suggested here and there
author Patrick Mezard <patrick@mezard.eu>
date Mon, 27 Feb 2012 18:23:18 +0100
parents 5de83d9ca79c
children a4413624d014 ce292f1379ba
comparison
equal deleted inserted replaced
16187:82ce91a9fd94 16188:6b52963ced73
1927 q.delete(repo, patches, opts) 1927 q.delete(repo, patches, opts)
1928 q.savedirty() 1928 q.savedirty()
1929 return 0 1929 return 0
1930 1930
1931 @command("qapplied", 1931 @command("qapplied",
1932 [('1', 'last', None, _('show only the last patch')) 1932 [('1', 'last', None, _('show only the preceding applied patch'))
1933 ] + seriesopts, 1933 ] + seriesopts,
1934 _('hg qapplied [-1] [-s] [PATCH]')) 1934 _('hg qapplied [-1] [-s] [PATCH]'))
1935 def applied(ui, repo, patch=None, **opts): 1935 def applied(ui, repo, patch=None, **opts):
1936 """print the patches already applied 1936 """print the patches already applied
1937 1937
2222 return 1 2222 return 1
2223 q.qseries(repo, start=end, length=1, summary=opts.get('summary')) 2223 q.qseries(repo, start=end, length=1, summary=opts.get('summary'))
2224 2224
2225 @command("qprev", seriesopts, _('hg qprev [-s]')) 2225 @command("qprev", seriesopts, _('hg qprev [-s]'))
2226 def prev(ui, repo, **opts): 2226 def prev(ui, repo, **opts):
2227 """print the name of the previous applied patch 2227 """print the name of the preceding applied patch
2228 2228
2229 Returns 0 on success.""" 2229 Returns 0 on success."""
2230 q = repo.mq 2230 q = repo.mq
2231 l = len(q.applied) 2231 l = len(q.applied)
2232 if l == 1: 2232 if l == 1: