comparison hgext/mq.py @ 8075:1f0a5a5fff43

Update qimport help explaining how to read a patch from stdin (Issue371)
author David Frey <dpfrey@shaw.ca>
date Sat, 18 Apr 2009 00:21:11 -0700
parents 3aaca5901ade
children 5ec526c1a32f
comparison
equal deleted inserted replaced
8073:e8a28556a0a8 8075:1f0a5a5fff43
1681 (e.g. qimport --rev tip -n patch will place tip under mq control). 1681 (e.g. qimport --rev tip -n patch will place tip under mq control).
1682 With --git, patches imported with --rev will use the git diff 1682 With --git, patches imported with --rev will use the git diff
1683 format. See the diffs help topic for information on why this is 1683 format. See the diffs help topic for information on why this is
1684 important for preserving rename/copy information and permission 1684 important for preserving rename/copy information and permission
1685 changes. 1685 changes.
1686
1687 To import a patch from standard input, pass - as the patch file.
1688 When importing from standard input, a patch name must be specified
1689 using the --name flag.
1686 """ 1690 """
1687 q = repo.mq 1691 q = repo.mq
1688 q.qimport(repo, filename, patchname=opts['name'], 1692 q.qimport(repo, filename, patchname=opts['name'],
1689 existing=opts['existing'], force=opts['force'], rev=opts['rev'], 1693 existing=opts['existing'], force=opts['force'], rev=opts['rev'],
1690 git=opts['git']) 1694 git=opts['git'])