retitle 438945 please add more examples for examples/mkconfig.py usage thanks
Hello! On Tue, 21 Aug 2007 17:07:30 +0200, fabian linzberger wrote: >> At a first sight (and I don't want to dig more, as I said I'm not a >> python expert), it seems that mkconfig.py absolutely wants some >> shell variables. In this case, the script *is* broken, because the >> example says: >> >> $ mkconf.py "http://example.com/darcs/NAME" "Repo for NAME" \\ >> latin1 ~/devel/repos/ >> config.py >> >> Either the example or the script should be corrected. I prefer the >> latter, i.e. having the possibility to use the script without shell >> variables. > > i think what the python code does in check all directories *directly > below ~/devel/repos/ (or ~/ in your case) and if any of them contain > a _darcs subdir it assumes they are repositories and adds a snippet > for them. OK, I re-read the script instruction and indeed it works as described. I missread NAME as a darcs repository, not as directory. > so, no i don't think they need to be environment variables, but > feeding bogus data doesn't work either (or any data except exactly > the one it expects). ACK. > input checking or nice error messages are not exactly the strong > points of this script though... really just a quick hack by the > darcsweb author it seems. Well, always better than nothing ;-) > i will not close this bug before i have added some more useful > examples for the usage of this script, otherwise it really isn't too > useful unless you know python. Thank you for your interest. FWIW, now that I really understood how the script is supposed to work, the bug title is not correct anymore, thus I retitled it. Thx, bye, Gismo / Luca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]