comparison mercurial/commands.py @ 40388:5cb72229f0e9

commands: support passing depth to hg.clone() This will allow extensions to add --depth or other arguments to control depth fetching. Differential Revision: https://phab.mercurial-scm.org/D5164
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 19 Oct 2018 13:44:25 +0200
parents b14fdf1fb615
children 1feb4b2c8e40
comparison
equal deleted inserted replaced
40387:f1a39128da95 40388:5cb72229f0e9
1551 revs=opts.get('rev'), 1551 revs=opts.get('rev'),
1552 update=opts.get('updaterev') or not opts.get('noupdate'), 1552 update=opts.get('updaterev') or not opts.get('noupdate'),
1553 branch=opts.get('branch'), 1553 branch=opts.get('branch'),
1554 shareopts=opts.get('shareopts'), 1554 shareopts=opts.get('shareopts'),
1555 storeincludepats=includepats, 1555 storeincludepats=includepats,
1556 storeexcludepats=excludepats) 1556 storeexcludepats=excludepats,
1557 depth=opts.get('depth') or None)
1557 1558
1558 return r is None 1559 return r is None
1559 1560
1560 @command('commit|ci', 1561 @command('commit|ci',
1561 [('A', 'addremove', None, 1562 [('A', 'addremove', None,