In the meantime, you could use expect (<a href="http://expect.nist.gov">http://expect.nist.gov</a>)<br><br><div><span class="gmail_quote">On 14/12/2007, <b class="gmail_sendername">Jesse Vincent</b> <<a href="mailto:jesse@bestpractical.com">
jesse@bestpractical.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">clkao,<br><br>How would you like to make pere's use case work?
<br><br>16:36 <pere> TTimo: as far as I can see from the code, there is no way to make svk non-interactive. The get_prompt() function will always try to talk to a tty.<br>16:37 -!- kane_ [n=<a href="mailto:kane@perl.xs4all.nl">
kane@perl.xs4all.nl</a>] has quit []<br>16:37 <TTimo> depends for which operations I suppose<br>16:37 <TTimo> definitely works for my smerge calls<br>16:38 <obra> pere: which interactions are you running into problems with?
<br>16:40 <pere> svk init<br>16:41 <pere> but also svk commit, some times (not sure when).<br>16:42 <obra> svk commit shouldn't, if you specify a -m ''<br>16:42 <pere> the script is <URL:
<a href="http://svn.debian.org/wsvn/debian-edu/trunk/src/debian-edu-config/sbin/debian-edu-etc-svk?op=file&rev=0&sc=0">http://svn.debian.org/wsvn/debian-edu/trunk/src/debian-edu-config/sbin/debian-edu-etc-svk?op=file&rev=0&sc=0
</a> ><br>16:42 <pere> obra: it does, if the repository isn't already created, I believe.<br>16:42 * obra nods<br>16:42 <obra> iirc, there was a way to force that to non-interactive<br>16:42 <obra> sourcediving
<br>16:43 <pere> It would be great. I want to make svk init non-interactive, and svk commit just fail if the repository is missing.<br>16:45 <pere> I've tried to work around the problem using expect, but it too fail during debian installation with "The system has no more ptys." :(
<br>16:46 <obra> sadly, I am wrong. I'd like a comment from clkao about how he'd like this fixed.<br>16:47 <obra> there's no way to force the non-interactive<br>16:47 <obra> since I know a webgui for svk is in the works, this MUST have been dealt with somehow
<br>16:47 <pere> right. it would be great if a fix for it is released soon, so I can get it into the next Debian release.<br>16:48 <obra> what's the timing on that look like?<br>16:48 <pere> completely unrelated to this, but related to the script for keeping /etc/ in svk. Is there a way to prune history? For example, only keep changes newer than 2 years, or only keep 12 diffs, one for
<br> each month for all changes more than 2 years old?<br>16:49 <obra> that's more of an svn question. and I believe their supported answer is svnadmin dump| svndumpfilter|svnadmin load<br>16:49 <pere> obra: everything freezes around may, so I would need a fixed package around february/march to be able to fix the etc-svk script.
<br>16:49 <obra> ok<br>16:49 <obra> I know we're shooting for a 2.2b1 for Christmas<br>16:49 <obra> I don't know if I can talk cl into the fix by then, but I can try<br>16:49 <pere> and 2.2
?<br>16:50 <obra> release date in general? "when it's ready"<br>16:50 <pere> :)<br>16:50 <obra> I'm hoping for no more than a month or two.<br>16:50 <obra> there are some really sexy new features
<br>16:51 <obra> the big one is more intelligent branch management<br>16:51 <pere> right. if you need a ref for the non-interactive issue, you can use <URL: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435786">
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435786</a> >.<br>16:52 <obra> ok<br>16:52 <obra> I'll see what I can do<br>16:52 <obra> :)<br>16:52 <pere> thanks.<br>16:52 <pere> dumbing down get_prompt() would solve it. Then I could use 'yes | svk init' :)
<br><br>--<br>_______________________________________________<br>svk-devel mailing list<br><a href="mailto:svk-devel@bestpractical.com">svk-devel@bestpractical.com</a><br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel">
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel</a><br></blockquote></div><br>