--- a/hg Wed May 18 17:37:49 2005 -0800
+++ b/hg Wed May 18 18:25:37 2005 -0800
@@ -87,7 +87,9 @@
options = {}
opts = [('v', 'verbose', None, 'verbose'),
('d', 'debug', None, 'debug'),
- ('q', 'quiet', None, 'quiet')]
+ ('q', 'quiet', None, 'quiet'),
+ ('y', 'noninteractive', None, 'run non-interactively'),
+ ]
args = fancyopts.fancyopts(sys.argv[1:], opts, options,
'hg [options] <command> [command options] [files]')
@@ -98,7 +100,8 @@
except:
cmd = ""
-ui = hg.ui(options["verbose"], options["debug"], options["quiet"])
+ui = hg.ui(options["verbose"], options["debug"], options["quiet"],
+ not options["noninteractive"])
if cmd == "init":
repo = hg.repository(ui, ".", create=1)
@@ -348,6 +351,9 @@
for f in files:
print hg.hex(m[f]), f
+elif cmd == "debugprompt":
+ print ui.prompt(args[0], args[1], args[2])
+
elif cmd == "debughash":
f = repo.file(args[0])
print f.encodepath(args[0])