hgext/record.py
changeset 9272 784899697571
parent 9157 9261667e9b82
child 9461 cec9fb4e07a1
child 9467 4c041f1ee1b4
equal deleted inserted replaced
9271:4ea022359c43 9272:784899697571
   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" will be
   360     If a list of files is omitted, all changes reported by "hg status"
   361     candidates for recording.
   361     will be 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 modified file,
   365     You will be prompted for whether to record changes to each
   366     and for files with multiple changes, for each change to use. For each
   366     modified file, and for files with multiple changes, for each
   367     query, the following responses are possible::
   367     change to use. For each query, the following responses are
       
   368     possible::
   368 
   369 
   369       y - record this change
   370       y - record this change
   370       n - skip this change
   371       n - skip this change
   371 
   372 
   372       s - skip remaining changes to this file
   373       s - skip remaining changes to this file
   385 
   386 
   386 
   387 
   387 def qrecord(ui, repo, patch, *pats, **opts):
   388 def qrecord(ui, repo, patch, *pats, **opts):
   388     '''interactively record a new patch
   389     '''interactively record a new patch
   389 
   390 
   390     See 'hg help qnew' & 'hg help record' for more information and usage.
   391     See 'hg help qnew' & 'hg help record' for more information and
       
   392     usage.
   391     '''
   393     '''
   392 
   394 
   393     try:
   395     try:
   394         mq = extensions.find('mq')
   396         mq = extensions.find('mq')
   395     except KeyError:
   397     except KeyError: