Lines Matching refs:repo
149 def not_check(repo, cmd): argument
161 cpath = util.canonpath(repo.root, repo.getcwd(), path)
167 for f in [repo.join('cdm/%s.NOT' % cmd),
168 repo.wjoin('exception_lists/%s' % cmd)]:
173 ign = Ignore.ignore(repo.root, ignorefiles)
208 def reposetup(ui, repo): argument
209 if repo.local() and repo not in wslist:
210 wslist[repo] = WorkSpace(repo)
217 def pbconfirm(ui, repo, hooktype, source): argument
232 def cdm_pdiffs(ui, repo, *pats, **opts): argument
243 act = wslist[repo].active(opts.get('parent'))
252 matchfunc = wslist[repo].matcher(pats=pats, opts=opts)
254 matchfunc = wslist[repo].matcher(files=act.files())
257 diffs = wslist[repo].diff(act.parenttip.node(), act.localtip.node(),
263 def cdm_list(ui, repo, **opts): argument
282 act = wslist[repo].active(opts['parent'])
308 def cdm_bugs(ui, repo, parent=None): argument
311 act = wslist[repo].active(parent)
317 def cdm_comments(ui, repo, parent=None): argument
319 act = wslist[repo].active(parent)
325 def cdm_renamed(ui, repo, parent=None): argument
335 act = wslist[repo].active(parent)
341 def cdm_comchk(ui, repo, **opts): argument
350 active = wslist[repo].active(opts.get('parent'))
358 def cdm_cddlchk(ui, repo, *args, **opts): argument
372 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
373 exclude = not_check(repo, 'cddlchk')
396 def cdm_manlintchk(ui, repo, *args, **opts): argument
406 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
407 exclude = not_check(repo, 'manlint')
430 def cdm_mapfilechk(ui, repo, *args, **opts): argument
442 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
443 exclude = not_check(repo, 'mapfilechk')
476 def cdm_copyright(ui, repo, *args, **opts): argument
491 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
492 exclude = not_check(repo, 'copyright')
510 def cdm_hdrchk(ui, repo, *args, **opts): argument
523 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
524 exclude = not_check(repo, 'hdrchk')
544 def cdm_cstyle(ui, repo, *args, **opts): argument
558 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
559 exclude = not_check(repo, 'cstyle')
581 def cdm_jstyle(ui, repo, *args, **opts): argument
588 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
589 exclude = not_check(repo, 'jstyle')
609 def cdm_permchk(ui, repo, *args, **opts): argument
619 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
620 exclude = not_check(repo, 'permchk')
645 def cdm_tagchk(ui, repo, **opts): argument
654 active = wslist[repo].active(opts.get('parent'))
659 tfile = wslist[repo].filepath('.hgtags')
675 def cdm_branchchk(ui, repo, **opts): argument
685 heads = set(repo.heads())
686 parents = set([x.node() for x in wslist[repo].workingctx().parents()])
696 for head in [repo.changectx(head) for head in heads]:
704 if repo.dirstate.branch() != 'default':
711 (repo.dirstate.branch()))
714 branches = repo.branchtags().keys()
732 def cdm_keywords(ui, repo, *args, **opts): argument
742 filelist = buildfilelist(wslist[repo], opts.get('parent'), args)
743 exclude = not_check(repo, 'keywords')
766 def cdm_outchk(ui, repo, **opts): argument
771 st = wslist[repo].modified()
780 def cdm_mergechk(ui, repo, **opts): argument
783 active = wslist[repo].active(opts.get('parent'))
812 result = cmd(ws.ui, ws.repo, honour_nots=True, *args, **opts)
822 def cdm_nits(ui, repo, *args, **opts): argument
852 return run_checks(wslist[repo], cmds, *args, **opts)
855 def cdm_pbchk(ui, repo, **opts): argument
901 return run_checks(wslist[repo], cmds, **opts)
904 def cdm_recommit(ui, repo, **opts): argument
933 ws = wslist[repo]
935 if not os.getcwd().startswith(repo.root):
940 wlock = repo.wlock()
941 lock = repo.lock()
945 between = repo.changelog.nodesbetween(ws.findoutgoing(parent))[2]
946 heads = set(between) & set(repo.heads())
950 for head in sorted(map(repo.changelog.rev, heads), reverse=True):
980 os.path.exists(repo.wjoin(f.parentname))]
1001 bk = CdmBackup(ui, ws, backup_name(repo.root))
1006 oldtags = repo.tags()
1007 clearedtags = [(name, nd, repo.changelog.rev(nd), local)
1022 for ntag, nnode in sorted(repo.tags().items(),
1027 (ntag, repo.changelog.rev(nnode),
1048 def cdm_eval(ui, repo, *command, **opts): argument
1067 act = wslist[repo].active(opts['parent'])
1071 do_eval(cmd, files, repo.root, not opts['remain'])
1074 def cdm_apply(ui, repo, *command, **opts): argument
1084 act = wslist[repo].active(opts['parent'])
1094 do_eval(cmd, files, repo.root, not opts['remain'])
1097 def cdm_reparent(ui, repo, parent): argument
1109 fp = repo.opener('hgrc', 'a', atomictemp=True)
1155 if not os.path.exists(repo.join('hgrc')):
1160 cfg.read(repo.join('hgrc'))
1169 if path != repo.join('hgrc'):
1205 def cdm_backup(ui, repo, if_newer=False): argument
1232 name = backup_name(repo.root)
1233 bk = CdmBackup(ui, wslist[repo], name)
1235 wlock = repo.wlock()
1236 lock = repo.lock()
1248 def cdm_restore(ui, repo, backup, **opts): argument
1264 if not os.getcwd().startswith(repo.root):
1267 abort_if_dirty(wslist[repo])
1277 wlock = repo.wlock()
1278 lock = repo.lock()
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
1358 def modded_files(repo, parent): argument
1359 out = wslist[repo].findoutgoing(wslist[repo].parent(parent))
1360 outnodes = repo.changelog.nodesbetween(out)[0]
1364 files.update(repo.changectx(n).files())
1366 files.update(wslist[repo].status().keys())
1378 wl = WorkList(wslist[repo])
1383 map(wl.add, modded_files(repo, opts.get('parent')))
1389 map(wl.add, modded_files(repo, opts.get('parent')))
1396 match = wslist[repo].matcher(pats=pats, opts=opts)
1397 for abso in repo.walk(match):
1398 if abso in repo.dirstate:
1406 fctx = wslist[repo].workingctx().filectx(abso)
1415 for fname, chng in wslist[repo].status(files=sources).iteritems():
1421 ui.write("%s\n" % wslist[repo].filepath(elt))