Home | History | Annotate | Download | only in codereview

Lines Matching refs:hg

22 your repository's .hg/hgrc file.
38 "hg diff @123456" is equivalent to"hg diff x.go y.go".
41 from mercurial import cmdutil, commands, hg, util, error, match, discovery
127 # >>> repo = hg.repository(ui.ui(), path = ".")
205 # Change lists are stored in .hg/codereview/cl.nnnnnn
553 # before doing hg submit.
583 # most hg commands won't ever see them.
662 dir += '/.hg/codereview/'
823 source = hg.parseurl(ui.expandpath("default"), None)[0]
825 remoteui = hg.remoteui # hg 1.6
828 other = hg.repository(remoteui(repo, opts), source)
856 if promptyesno(ui, "hg remove %s (y/n)?" % (f,)):
861 if promptyesno(ui, "hg add %s (y/n)?" % (f,)):
873 # $(hg root)/last-change so that if Mercurial does die, people
899 # Check file list for files that need to be hg added or hg removed
925 ui.warn("warning: %s is a file but not known to hg\n" % (f,))
1001 # work-around for http://selenic.com/hg/rev/785bbc8634f8
1040 msg = "gofmt needs to format these files (run hg gofmt):\n" + Indent(data, "\t").rstrip()
1104 hg revert @123456
1106 before running hg change -d 123456.
1125 return "cannot run hg change outside default branch"
1145 return "original author must delete CL; hg change -D will remove locally"
1219 return "cannot run hg clpatch outside default branch"
1230 return "cannot run hg undo outside default branch"
1244 hg update weekly.YYYY-MM-DD
1245 hg branch release-branch.rNN
1246 hg commit -m 'create release-branch.rNN'
1247 hg push --new-branch
1253 hg update release-branch.rNN
1257 hg update default
1260 using hg release-apply followed by the usual code review
1261 process and hg submit.
1267 hg update default
1278 err = hg.clean(repo, releaseBranch)
1286 hg.clean(repo, "default")
1327 return "hg is too old to run hg %s - update to 1.4 or newer" % mode
1373 patch = RunShell(["hg", "diff", "--git", "-r", arg])
1382 # find current hg version (hg identify)
1469 cmd = ["hg", "diff", "--git", "-r", oldver + ":" + newver, "path:" + file]
1539 ui.status("# hg file %s %s\n" % (cl.name, f))
1560 ui.status("# hg file %s %s\n" % (ocl.name, f))
1797 m = re.match("^https?://([^@/]+@)?([^.]+)\.googlecode\.com/hg/?", url)
1815 err = hg.clean(repo, "default")
1901 ui.warn("CL %s has no files; delete (abandon) with hg change -d %s\n" % (cl.name, cl.name))
1903 ui.warn("CL %s has no files; delete locally with hg change -D %s\n" % (cl.name, cl.name))
1933 # is printed when running hg with no arguments.
1954 # hg help codereview prints the help for this command
2347 # Should only modify repository with hg submit.
3163 use_hg_shell = False # set to True to shell out to hg always; slower
3182 mqparent, err = RunShellWithReturnCode(['hg', 'log', '--rev', 'qparent', '--template={node}'])
3186 self.base_rev = RunShell(["hg", "parents", "-q"]).split(':')[1].strip()
3196 cmd = ["hg", "diff", "--git", "-r", self.base_rev] + extra_args
3216 ErrorExit("No valid patches found in output from hg diff")
3222 status = RunShell(["hg", "status", "--rev", self.base_rev, "-u", "."],
3232 # We'd like to use 'hg status -C path', but that is buggy
3234 # Instead, run 'hg status -C' without a path
3238 out = RunShell(["hg", "status", "-C", "--rev", rev])
3260 # "hg status" and "hg cat" both take a path relative to the current subdir
3261 # rather than to the repo root, but "hg diff" has given us the full path
3278 base_content = RunShell(["hg", "cat", "-r", base_rev, oldrelpath], silent_ok=True)
3287 base_content = RunShell(["hg", "cat", "-r", base_rev, oldrelpath],