355 if h[0].special() or len(h) > 1], []) |
355 if h[0].special() or len(h) > 1], []) |
356 |
356 |
357 def record(ui, repo, *pats, **opts): |
357 def record(ui, repo, *pats, **opts): |
358 '''interactively select changes to commit |
358 '''interactively select changes to commit |
359 |
359 |
360 If a list of files is omitted, all changes reported by "hg status" |
360 If a list of files is omitted, all changes reported by "hg status" will be |
361 will be candidates for recording. |
361 candidates for recording. |
362 |
362 |
363 See 'hg help dates' for a list of formats valid for -d/--date. |
363 See 'hg help dates' for a list of formats valid for -d/--date. |
364 |
364 |
365 You will be prompted for whether to record changes to each |
365 You will be prompted for whether to record changes to each modified file, |
366 modified file, and for files with multiple changes, for each |
366 and for files with multiple changes, for each change to use. For each |
367 change to use. For each query, the following responses are |
367 query, the following responses are possible: |
368 possible: |
|
369 |
368 |
370 y - record this change |
369 y - record this change |
371 n - skip this change |
370 n - skip this change |
372 |
371 |
373 s - skip remaining changes to this file |
372 s - skip remaining changes to this file |
386 |
385 |
387 |
386 |
388 def qrecord(ui, repo, patch, *pats, **opts): |
387 def qrecord(ui, repo, patch, *pats, **opts): |
389 '''interactively record a new patch |
388 '''interactively record a new patch |
390 |
389 |
391 See 'hg help qnew' & 'hg help record' for more information and |
390 See 'hg help qnew' & 'hg help record' for more information and usage. |
392 usage. |
|
393 ''' |
391 ''' |
394 |
392 |
395 try: |
393 try: |
396 mq = extensions.find('mq') |
394 mq = extensions.find('mq') |
397 except KeyError: |
395 except KeyError: |