Lines Matching refs:opts
810 def CommandLineCL(ui, repo, pats, opts, defaultcc=None):
814 if opts.get('message'):
825 if opts.get('reviewer'):
826 cl.reviewer = Add(cl.reviewer, SplitCommaSpace(opts.get('reviewer')))
827 if opts.get('cc'):
828 cl.cc = Add(cl.cc, SplitCommaSpace(opts.get('cc')))
832 if opts.get('message'):
833 cl.desc = opts.get('message')
870 def ChangedExistingFiles(ui, repo, pats, opts):
1087 def hg_matchPattern(ui, repo, *pats, **opts):
1089 hg_commands.status(ui, repo, *pats, **opts)
1138 def hg_log(ui, repo, **opts):
1140 if not opts.has_key(k):
1141 opts[k] = ""
1143 ret = hg_commands.log(ui, repo, **opts)
1148 def hg_outgoing(ui, repo, **opts):
1150 ret = hg_commands.outgoing(ui, repo, **opts)
1155 def hg_pull(ui, repo, **opts):
1159 err = hg_commands.pull(ui, repo, **opts)
1174 def hg_push(ui, repo, **opts):
1178 err = hg_commands.push(ui, repo, **opts)
1184 def hg_commit(ui, repo, *pats, **opts):
1185 return hg_commands.commit(ui, repo, *pats, **opts)
1192 def precommithook(ui, repo, **opts):
1219 def MatchAt(ctx, pats=None, opts=None, globbed=False, default='relpath'):
1223 opts = opts or {}
1245 return match_orig(ctx, pats=pats, opts=opts, globbed=globbed, default=default)
1259 def wrapped(ui, repo, *pats, **opts):
1260 err = f(ui, repo, *pats, **opts)
1273 def change(ui, repo, *pats, **opts):
1307 if not cl.local and (opts["stdin"] or not opts["stdout"]):
1317 if opts["delete"] or opts["deletelocal"]:
1318 if opts["delete"] and opts["deletelocal"]:
1321 if opts["deletelocal"]:
1325 if opts["stdin"] or opts["stdout"]:
1329 if opts["delete"]:
1337 if opts["stdin"]:
1358 if not opts["stdin"] and not opts["stdout"]:
1372 if opts["stdout"]:
1374 elif opts["pending"]:
1387 def code_login(ui, repo, **opts):
1403 def clpatch(ui, repo, clname, **opts):
1415 return clpatch_or_undo(ui, repo, clname, opts, mode="clpatch")
1418 def undo(ui, repo, clname, **opts):
1427 return clpatch_or_undo(ui, repo, clname, opts, mode="undo")
1430 def release_apply(ui, repo, clname, **opts):
1479 err = clpatch_or_undo(ui, repo, clname, opts, mode="backport")
1517 def clpatch_or_undo(ui, repo, clname, opts, mode):
1589 if not opts["ignore_hgpatch_failure"]:
1594 if opts["no_incoming"] or mode == "backport":
1602 if cmd.returncode != 0 and not opts["ignore_hgpatch_failure"]:
1606 if not cl.files and not opts["ignore_hgpatch_failure"]:
1683 def download(ui, repo, clname, **opts):
1703 def file(ui, repo, clname, pat, *pats, **opts):
1727 if opts["delete"]:
1769 def gofmt(ui, repo, *pats, **opts):
1778 files = ChangedExistingFiles(ui, repo, pats, opts)
1786 if not opts["list"]:
1803 def mail(ui, repo, *pats, **opts):
1812 cl, err = CommandLineCL(ui, repo, pats, opts, defaultcc=defaultcc)
1836 def ps(ui, repo, *pats, **opts):
1839 opts['short'] = True
1840 return pending(ui, repo, *pats, **opts)
1843 def pq(ui, repo, *pats, **opts):
1846 opts['quick'] = True
1847 return pending(ui, repo, *pats, **opts)
1850 def pending(ui, repo, *pats, **opts):
1858 quick = opts.get('quick', False)
1859 short = opts.get('short', False)
1886 def submit(ui, repo, *pats, **opts):
1898 if not opts["no_incoming"] and hg_incoming(ui, repo):
1901 cl, err = CommandLineCL(ui, repo, pats, opts, defaultcc=defaultcc)
1914 if opts.get('tbr'):
1915 tbr = SplitCommaSpace(opts.get('tbr'))
2019 def sync(ui, repo, **opts):
2028 if not opts["local"]:
2073 def upload(ui, repo, name, **opts):
2215 def norollback(*pats, **opts):
3340 def write(self, *args, **opts):
3344 def status(self, *args, **opts):
3347 def formatter(self, topic, opts):
3349 return plainformatter(self, topic, opts)
3351 def readconfig(self, *args, **opts):
3353 def expandpath(self, *args, **opts):
3354 return global_ui.expandpath(*args, **opts)
3355 def configitems(self, *args, **opts):
3356 return global_ui.configitems(*args, **opts)
3357 def config(self, *args, **opts):
3358 return global_ui.config(*args, **opts)