Lines Matching refs:ui
113 def yes_no(ui, msg, default): argument
122 index = ui.promptchoice(msg + prompt, ['&yes', '&no'],
126 resp = ui.prompt(msg + prompt, ['&yes', '&no'], default=defanswer)
208 def reposetup(ui, repo): argument
212 if ui.interactive() and sys.stdin.isatty():
213 ui.setconfig('hooks', 'preoutgoing.cdm_pbconfirm',
217 def pbconfirm(ui, repo, hooktype, source): argument
222 if not yes_no(ui, "Are you sure you wish to push?", False):
232 def cdm_pdiffs(ui, repo, *pats, **opts): argument
256 opts = patch.diffopts(ui, opts)
260 ui.write(diffs)
263 def cdm_list(ui, repo, **opts): argument
295 ui.write(change + ':\n')
299 ui.write('\t%s (renamed from %s)\n' % (entry.name,
302 ui.write('\t%s (copied from %s)\n' % (entry.name,
305 ui.write('\t%s\n' % entry.name)
308 def cdm_bugs(ui, repo, parent=None): argument
314 ui.write(elt + '\n')
317 def cdm_comments(ui, repo, parent=None): argument
322 ui.write(elt + '\n')
325 def cdm_renamed(ui, repo, parent=None): argument
338 ui.write('%s %s\n' % (entry.name, entry.parentname))
341 def cdm_comchk(ui, repo, **opts): argument
352 ui.write('Comments check:\n')
355 return Comments.comchk(active.comments(), check_db=check_db, output=ui)
358 def cdm_cddlchk(ui, repo, *args, **opts): argument
377 ui.write('CDDL block check:\n')
383 ui.status('Skipping %s...\n' % f)
391 ret |= Cddl.cddlchk(fh, lenient=lenient, output=ui)
396 def cdm_manlintchk(ui, repo, *args, **opts): argument
413 ui.write('Man format check:\n')
421 ui.status('Skipping %s...\n' % f)
425 ret |= ManLint.manlint(fh, output=ui, picky=True)
430 def cdm_mapfilechk(ui, repo, *args, **opts): argument
459 ui.write('Mapfile comment check:\n')
467 ui.status('Skipping %s...\n' % f)
471 ret |= Mapfile.mapfilechk(fh, output=ui)
476 def cdm_copyright(ui, repo, *args, **opts): argument
495 ui.write('Copyright check:\n')
501 ui.status('Skipping %s...\n' % f)
505 ret |= Copyright.copyright(fh, output=ui)
510 def cdm_hdrchk(ui, repo, *args, **opts): argument
527 ui.write('Header format check:\n')
535 ui.status('Skipping %s...\n' % f)
539 ret |= HdrChk.hdrchk(fh, lenient=True, output=ui)
544 def cdm_cstyle(ui, repo, *args, **opts): argument
562 ui.write('C style check:\n')
570 ui.status('Skipping %s...\n' % f)
574 ret |= CStyle.cstyle(fh, output=ui,
581 def cdm_jstyle(ui, repo, *args, **opts): argument
592 ui.write('Java style check:\n')
600 ui.status('Skipping %s...\n' % f)
604 ret |= JStyle.jstyle(fh, output=ui, picky=True)
609 def cdm_permchk(ui, repo, *args, **opts): argument
623 ui.write('File permission check:\n')
629 ui.status('Skipping %s...\n' % f)
637 ui.write('Warning: the following active file(s) have executable mode '
640 ui.write(" %s\n" % fname)
645 def cdm_tagchk(ui, repo, **opts): argument
656 ui.write('Checking for new tags:\n')
662 ui.write('Warning: Workspace contains new non-local tags.\n'
675 def cdm_branchchk(ui, repo, **opts): argument
683 ui.write('Checking for multiple heads (or branches):\n')
695 ui.write('Workspace has multiple heads (or branches):\n')
697 ui.write(" %d:%s\t%s\n" %
699 ui.write('You must merge and recommit.\n')
702 ui.write('\nChecking for branch changes:\n')
705 ui.write("Warning: Workspace tip has named branch: '%s'\n"
716 ui.write('Warning: Workspace has named branches:\n')
720 ui.write("\t%s\n" % t)
722 ui.write("Only gatekeepers should push new branches.\n"
732 def cdm_keywords(ui, repo, *args, **opts): argument
746 ui.write('Keywords check:\n')
752 ui.status('Skipping %s...\n' % f)
756 ret |= Keywords.keywords(fh, output=ui)
766 def cdm_outchk(ui, repo, **opts): argument
769 ui.write('Checking for uncommitted changes:\n')
773 ui.write('Warning: the following files have uncommitted changes:\n')
775 ui.write(' %s\n' % elt)
780 def cdm_mergechk(ui, repo, **opts): argument
785 ui.write('Checking for merges:\n')
791 ui.write('Workspace contains the following merges:\n')
794 ui.write(' %s:%s\t%s\n' %
808 if not ws.ui.configbool('cdm', name, True):
809 ws.ui.status('Skipping %s check...\n' % name)
811 ws.ui.pushbuffer()
812 result = cmd(ws.ui, ws.repo, honour_nots=True, *args, **opts)
813 output = ws.ui.popbuffer()
817 if not ws.ui.quiet or result != 0:
818 ws.ui.write(output, '\n')
822 def cdm_nits(ui, repo, *args, **opts): argument
855 def cdm_pbchk(ui, repo, **opts): argument
904 def cdm_recommit(ui, repo, **opts): argument
949 ui.warn('Workspace has multiple outgoing heads (or branches):\n')
951 ui.warn('\t%d\n' % head)
969 ui.warn("Recommitting %d active changesets, but no active files\n" %
982 ui.warn("The following file names are the original name of a "
987 ui.warn(" %s\n" % fname)
989 if not yes_no(ui, "These files will be removed by recommit."
994 user = opts['user'] or ui.username()
997 message = cmdutil.logmessage(opts) or ui.edit(comments, user)
1001 bk = CdmBackup(ui, ws, backup_name(repo.root))
1003 if yes_no(ui, 'Do you want to backup files first?', True):
1016 ui.write("Removed tags:\n")
1019 ui.write(" %5s:%s:\t%s%s\n" % (rev, node.short(nd),
1026 ui.write("tag '%s' now refers to revision %d:%s\n" %
1048 def cdm_eval(ui, repo, *command, **opts): argument
1074 def cdm_apply(ui, repo, *command, **opts): argument
1097 def cdm_reparent(ui, repo, parent): argument
1153 parent = ui.expandpath(parent)
1205 def cdm_backup(ui, repo, if_newer=False): argument
1233 bk = CdmBackup(ui, wslist[repo], name)
1240 ui.status('backup is up-to-date\n')
1248 def cdm_restore(ui, repo, backup, **opts): argument
1281 bk = CdmBackup(ui, wslist[repo], backup)
1288 def cdm_webrev(ui, repo, **opts): argument
1310 def cdm_debugcdmal(ui, repo, *pats, **opts): argument
1313 ui.write(wslist[repo].active(opts['parent']).as_text(pats))
1316 def cdm_changed(ui, repo, *pats, **opts): argument
1382 if yes_no(ui, "Create a list based on your changes thus far?", True):
1411 ui.warn("%s is not version controlled -- skipping\n" %
1421 ui.write("%s\n" % wslist[repo].filepath(elt))