@hgcommand
def pending(ui, repo, *pats, **opts):
 if codereview_disabled:
  raise hg_util.Abort(codereview_disabled)
 quick = opts.get('quick', False)
 short = opts.get('short', False)
 m = LoadAllCL(ui, repo, web=((not quick) and (not short)))
 names = m.keys()
 names.sort()
 for name in names:
  cl = m[name]
  if short:
   ui.write((((name + ' DCTB ') + line1(cl.desc)) + '\n'))
  else:
   ui.write((cl.PendingText(quick=quick) + '\n'))
 if short:
  return 0
 files = DefaultFiles(ui, repo, [])
 if (len(files) > 0):
  s = 'Changed files not in any CL:\n'
  for f in files:
   s += ((' DCTB ' + f) + '\n')
  ui.write(s)

@ hgcommand def pending ( ui , repo , * pats , ** opts ) : if codereview_disabled : raise hg_util . Abort ( codereview_disabled ) quick = opts . get ( 'quick' , False ) short = opts . get ( 'short' , False ) m = LoadAllCL ( ui , repo , web = ( ( not quick ) and ( not short ) ) ) names = m . keys ( ) names . sort ( ) for name in names : cl = m [ name ] if short : ui . write ( ( ( ( name + ' DCTB ' ) + line1 ( cl . desc ) ) + '\n' ) ) else : ui . write ( ( cl . PendingText ( quick = quick ) + '\n' ) ) if short : return 0 files = DefaultFiles ( ui , repo , [ ] ) if ( len ( files ) > 0 ) : s = 'Changed files not in any CL:\n' for f in files : s += ( ( ' DCTB ' + f ) + '\n' ) ui . write ( s )
show pending changes lists pending changes followed by a list of unassigned but modified files .