• Home
  • Raw
  • Download

Lines Matching full:repo

280 	def Flush(self, ui, repo):  argument
282 self.Upload(ui, repo, gofmt_just_warn=True, creating=True)
283 dir = CodeReviewDir(ui, repo)
296 def Delete(self, ui, repo): argument
297 dir = CodeReviewDir(ui, repo)
309 …def Upload(self, ui, repo, send_mail=False, gofmt=True, gofmt_just_warn=False, creating=False, qui… argument
313 CheckFormat(ui, repo, self.files, just_warn=gofmt_just_warn)
315 os.chdir(repo.root)
336 vcs = MercurialVCS(upload_options, ui, repo)
383 self.Flush(ui, repo)
386 def Mail(self, ui, repo): argument
400 self.Flush(ui, repo)
502 def IsLocalCL(ui, repo, name): argument
503 return GoodCLName(name) and os.access(CodeReviewDir(ui, repo) + "/cl." + name, 0)
506 def LoadCL(ui, repo, name, web=True): argument
511 dir = CodeReviewDir(ui, repo)
556 def __init__(self, ui, repo, dir, f, web): argument
559 self.repo = repo
565 cl, err = LoadCL(self.ui, self.repo, self.f[3:], web=self.web)
572 def LoadAllCL(ui, repo, web=True): argument
573 dir = CodeReviewDir(ui, repo)
581 t = LoadCLThread(ui, repo, dir, f, web)
600 def RepoDir(ui, repo): argument
601 url = repo.url();
612 def CodeReviewDir(ui, repo): argument
613 dir = RepoDir(ui, repo)
716 def promptremove(ui, repo, f): argument
718 if hg_commands.remove(ui, repo, 'path:'+f) != 0:
721 def promptadd(ui, repo, f): argument
723 if hg_commands.add(ui, repo, 'path:'+f) != 0:
726 def EditCL(ui, repo, cl): argument
737 f = open(repo.root+"/last-change", "w")
763 changed = hg_matchPattern(ui, repo, *pats, modified=True, added=True, removed=True)
764 deleted = hg_matchPattern(ui, repo, *pats, deleted=True)
765 unknown = hg_matchPattern(ui, repo, *pats, unknown=True)
766 ignored = hg_matchPattern(ui, repo, *pats, ignored=True)
767 clean = hg_matchPattern(ui, repo, *pats, clean=True)
774 promptremove(ui, repo, f)
778 promptadd(ui, repo, f)
788 p = repo.root + '/' + f
810 def CommandLineCL(ui, repo, pats, opts, defaultcc=None): argument
816 cl, err = LoadCL(ui, repo, pats[0], web=True)
822 cl.files = ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))
835 err = EditCL(ui, repo, cl)
846 def ChangedFiles(ui, repo, pats, taken=None): argument
851 for f in hg_matchPattern(ui, repo, p, unknown=True):
852 promptadd(ui, repo, f)
853 for f in hg_matchPattern(ui, repo, p, removed=True):
854 promptremove(ui, repo, f)
855 files = hg_matchPattern(ui, repo, p, modified=True, added=True, removed=True)
863 l = hg_matchPattern(ui, repo, *pats, modified=True, added=True, removed=True)
870 def ChangedExistingFiles(ui, repo, pats, opts): argument
871 l = hg_matchPattern(ui, repo, *pats, modified=True, added=True)
876 def Taken(ui, repo): argument
877 all = LoadAllCL(ui, repo, web=False)
885 def DefaultFiles(ui, repo, pats): argument
886 return ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))
891 def CheckFormat(ui, repo, files, just_warn=False): argument
893 CheckGofmt(ui, repo, files, just_warn)
894 CheckTabfmt(ui, repo, files, just_warn)
897 def CheckGofmt(ui, repo, files, just_warn): argument
902 files = [RelativePath(repo.root + '/' + f, cwd) for f in files]
927 def CheckTabfmt(ui, repo, files, just_warn): argument
932 files = [RelativePath(repo.root + '/' + f, cwd) for f in files]
961 def ReadContributors(ui, repo): argument
971 opening = repo.root + '/CONTRIBUTORS'
972 f = open(repo.root + '/CONTRIBUTORS', 'r')
996 def CheckContributor(ui, repo, user=None): argument
998 user, userline = FindContributor(ui, repo, user, warn=False)
1003 def FindContributor(ui, repo, user=None, warn=True): argument
1013 contributors = ReadContributors(ui, repo)
1087 def hg_matchPattern(ui, repo, *pats, **opts): argument
1089 hg_commands.status(ui, repo, *pats, **opts)
1092 prefix = to_slash(os.path.realpath(repo.root))+'/'
1100 print >>sys.stderr, "File %s not in repo root %s.\n" % (p, prefix)
1108 def hg_heads(ui, repo): argument
1110 hg_commands.heads(ui, repo)
1131 def hg_incoming(ui, repo): argument
1133 ret = hg_commands.incoming(ui, repo, force=False, bundle="")
1138 def hg_log(ui, repo, **opts): argument
1143 ret = hg_commands.log(ui, repo, **opts)
1148 def hg_outgoing(ui, repo, **opts): argument
1150 ret = hg_commands.outgoing(ui, repo, **opts)
1155 def hg_pull(ui, repo, **opts): argument
1159 err = hg_commands.pull(ui, repo, **opts)
1174 def hg_push(ui, repo, **opts): argument
1178 err = hg_commands.push(ui, repo, **opts)
1184 def hg_commit(ui, repo, *pats, **opts): argument
1185 return hg_commands.commit(ui, repo, *pats, **opts)
1192 def precommithook(ui, repo, **opts): argument
1207 def InstallMatch(ui, repo): argument
1213 match_repo = repo
1259 def wrapped(ui, repo, *pats, **opts): argument
1260 err = f(ui, repo, *pats, **opts)
1273 def change(ui, repo, *pats, **opts): argument
1304 cl, err = LoadCL(ui, repo, name, web=True)
1312 if repo[None].branch() != "default":
1315 files = ChangedFiles(ui, repo, pats, taken=Taken(ui, repo))
1334 cl.Delete(ui, repo)
1361 err = EditCL(ui, repo, cl)
1368 d.Flush(ui, repo)
1370 d.Upload(ui, repo, quiet=True)
1387 def code_login(ui, repo, **opts): argument
1403 def clpatch(ui, repo, clname, **opts): argument
1413 if repo[None].branch() != "default":
1415 return clpatch_or_undo(ui, repo, clname, opts, mode="clpatch")
1418 def undo(ui, repo, clname, **opts): argument
1425 if repo[None].branch() != "default":
1427 return clpatch_or_undo(ui, repo, clname, opts, mode="undo")
1430 def release_apply(ui, repo, clname, **opts): argument
1469 c = repo[None]
1475 err = hg_clean(repo, releaseBranch)
1479 err = clpatch_or_undo(ui, repo, clname, opts, mode="backport")
1483 hg_clean(repo, "default")
1517 def clpatch_or_undo(ui, repo, clname, opts, mode): argument
1530 …for r in hg_log(ui, repo, keyword="codereview.appspot.com/"+clname, limit=100, template="{node}\n"…
1531 rev = repo[r]
1541 rev = repo[clname]
1566 cl, vers, patch, err = DownloadCL(ui, repo, clname)
1573 ctx = repo[None]
1580 # "vers in repo" gives the wrong answer
1584 repo[vers].description()
1587 patch1, err = portPatch(repo, patch, vers, id)
1608 files = ChangedFiles(ui, repo, [])
1612 cl.Flush(ui, repo)
1614 err = EditCL(ui, repo, cl)
1617 cl.Flush(ui, repo)
1623 def portPatch(repo, patch, oldver, newver): argument
1630 delta = fileDeltas(repo, file, oldver, newver)
1658 def fileDeltas(repo, file, oldver, newver): argument
1683 def download(ui, repo, clname, **opts): argument
1692 cl, vers, patch, err = DownloadCL(ui, repo, clname)
1703 def file(ui, repo, clname, pat, *pats, **opts): argument
1719 cl, err = LoadCL(ui, repo, clname, web=False)
1725 files = ChangedFiles(ui, repo, pats)
1732 ui.status("# cd %s\n" % (repo.root))
1736 cl.Flush(ui, repo)
1745 taken = Taken(ui, repo)
1751 ui.status("# cd %s\n" % (repo.root))
1762 d.Flush(ui, repo)
1769 def gofmt(ui, repo, *pats, **opts): argument
1778 files = ChangedExistingFiles(ui, repo, pats, opts)
1783 files = [RelativePath(repo.root + '/' + f, cwd) for f in files]
1803 def mail(ui, repo, *pats, **opts): argument
1812 cl, err = CommandLineCL(ui, repo, pats, opts, defaultcc=defaultcc)
1815 cl.Upload(ui, repo, gofmt_just_warn=True)
1825 cl.Flush(ui, repo)
1830 cl.Mail(ui, repo)
1836 def ps(ui, repo, *pats, **opts): argument
1840 return pending(ui, repo, *pats, **opts)
1843 def pq(ui, repo, *pats, **opts): argument
1847 return pending(ui, repo, *pats, **opts)
1850 def pending(ui, repo, *pats, **opts): argument
1860 m = LoadAllCL(ui, repo, web=not quick and not short)
1872 files = DefaultFiles(ui, repo, [])
1886 def submit(ui, repo, *pats, **opts): argument
1898 if not opts["no_incoming"] and hg_incoming(ui, repo):
1901 cl, err = CommandLineCL(ui, repo, pats, opts, defaultcc=defaultcc)
1908 userline = CheckContributor(ui, repo, user)
1929 cl.Upload(ui, repo, gofmt_just_warn=True)
1932 cl.Flush(ui, repo)
1933 CheckFormat(ui, repo, cl.files)
1938 about += "\nCommitter: " + CheckContributor(ui, repo, None) + "\n"
1942 cl.Mail(ui, repo)
1950 if hg_outgoing(ui, repo):
1953 old_heads = len(hg_heads(ui, repo).split())
1957 ret = hg_commit(ui, repo, *['path:'+f for f in cl.files], message=message, user=userline)
1961 node = repo["-1"].node()
1964 new_heads = len(hg_heads(ui, repo).split())
1971 hg_push(ui, repo)
1990 …changeURL = "http://code.google.com/p/%s/source/detail?r=%s&repo=%s" % (m.group(6), changeURL, m.g…
2005 cl.Delete(ui, repo)
2007 c = repo[None]
2010 err = hg_clean(repo, "default")
2019 def sync(ui, repo, **opts): argument
2029 err = hg_pull(ui, repo, update=True)
2032 sync_changes(ui, repo)
2034 def sync_changes(ui, repo): argument
2038 for rev in hg_log(ui, repo, limit=100, template="{node}\n").split():
2039 desc = repo[rev].description().strip()
2041 if IsLocalCL(ui, repo, clname) and IsRietveldSubmitted(ui, clname, repo[rev].hex()):
2042 ui.warn("CL %s submitted as %s; closing\n" % (clname, repo[rev]))
2043 cl, err = LoadCL(ui, repo, clname, web=False)
2049 cl.Delete(ui, repo)
2052 all = LoadAllCL(ui, repo, web=False)
2053 changed = ChangedFiles(ui, repo, [])
2061 cl.Flush(ui, repo)
2073 def upload(ui, repo, name, **opts): argument
2081 repo.ui.quiet = True
2082 cl, err = LoadCL(ui, repo, name, web=True)
2087 cl.Upload(ui, repo)
2221 def reposetup(ui, repo): argument
2236 root = repo.root
2238 # Yes, repo might not have root; see issue 959.
2265 InstallMatch(ui, repo)
2266 RietveldSetup(ui, repo)
2274 real_rollback = repo.rollback
2275 repo.rollback = norollback
2380 def DownloadCL(ui, repo, clname): argument
2382 cl, err = LoadCL(ui, repo, clname, web=True)
2410 him = FindContributor(ui, repo, email)
2411 me = FindContributor(ui, repo, None)
2561 def RietveldSetup(ui, repo): argument
2612 tags = repo.branchtags().keys()
3365 def __init__(self, options, ui, repo): argument
3368 self.repo = repo
3371 self.repo_dir = os.path.normpath(repo.root)
3390 given its logical path in the repo."""
3442 ret = hg_commands.status(fui, self.repo, *[], **{'rev': [rev], 'copies': True})
3462 # rather than to the repo root, but "hg diff" has given us the full path
3463 # to the repo root.
3481 base_content = str(self.repo[base_rev][oldrelpath].data())