comparison hgext/mq.py @ 6611:f4c612da788d

mq: add correct documentation for qpop
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 19 May 2008 10:22:15 +0200
parents 92b5be854677
children 170818dad56b d5cbbe2c49ce
comparison
equal deleted inserted replaced
6610:92b5be854677 6611:f4c612da788d
1941 ret = q.push(repo, patch, force=opts['force'], list=opts['list'], 1941 ret = q.push(repo, patch, force=opts['force'], list=opts['list'],
1942 mergeq=mergeq) 1942 mergeq=mergeq)
1943 return ret 1943 return ret
1944 1944
1945 def pop(ui, repo, patch=None, **opts): 1945 def pop(ui, repo, patch=None, **opts):
1946 """pop the current patch off the stack""" 1946 """pop the current patch off the stack
1947
1948 By default, pops off the top of the patch stack. If given a patch name,
1949 keeps popping off patches until the named patch is at the top of the stack.
1950 """
1947 localupdate = True 1951 localupdate = True
1948 if opts['name']: 1952 if opts['name']:
1949 q = queue(ui, repo.join(""), repo.join(opts['name'])) 1953 q = queue(ui, repo.join(""), repo.join(opts['name']))
1950 ui.warn('using patch queue: %s\n' % q.path) 1954 ui.warn('using patch queue: %s\n' % q.path)
1951 localupdate = False 1955 localupdate = False