[Monotone-devel] synchronization between mtn servers
It would be nice to have a semi-official way to keep the main nvm.* repos in sync... as a first rough way I'm setting this crontab on my home server: 7 * * * * \ mtn -d .monotone/net.venge.mtn sy lapo.it 27 * * * * \ mtn -d .monotone/net.venge.mtn sy monotone.ca 47 * * * * \ mtn -d .monotone/net.venge.mtn sy monotone.mtn-host.prjek.net where default-include-pattern = net.venge.monotone{,.*} But I guess prjek itself has already some automatic way to follow monotone.ca? But OTOH having a separate node that execute this cronjob assures the 3 servers to be inline (within the hour) even if any is down. OTOH one connection per hour is suboptimal since it has a longish lag when revision are actually received AND does many many unnecessary connections when new revisions are not there really. I guess an hook could be better, but I didn't have head for it right now, and that crontab was an easy way to do the job. -- Lapo Luchini - http://lapo.it/ “I can resist everything except temptation.” (Oscar Wilde, Lady Windermere's Fan, 1892) signature.asc Description: OpenPGP digital signature ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] synchronization between mtn servers
In message hc1c34$12...@ger.gmane.org on Sun, 25 Oct 2009 12:16:50 +0100, Lapo Luchini l...@lapo.it said: lapo It would be nice to have a semi-official way to keep the main nvm.* lapo repos in sync... as a first rough way I'm setting this crontab on my lapo home server: lapo lapo 7 * * * * \ lapo mtn -d .monotone/net.venge.mtn sy lapo.it lapo 27 * * * * \ lapo mtn -d .monotone/net.venge.mtn sy monotone.ca lapo 47 * * * * \ lapo mtn -d .monotone/net.venge.mtn sy monotone.mtn-host.prjek.net lapo lapo where default-include-pattern = net.venge.monotone{,.*} lapo lapo But I guess prjek itself has already some automatic way to follow lapo monotone.ca? But OTOH having a separate node that execute this cronjob lapo assures the 3 servers to be inline (within the hour) even if any is down. lapo lapo OTOH one connection per hour is suboptimal since it has a longish lag lapo when revision are actually received AND does many many unnecessary lapo connections when new revisions are not there really. lapo lapo I guess an hook could be better, but I didn't have head for it right lapo now, and that crontab was an easy way to do the job. I use contrib/monotone-cluster-push.lua, with a cluster-push.rc having the following content: pattern net.venge.monotone* server monotone.mtn-host.prjek.net pattern net.angrygoats.viewmtn* server monotone.ucc.asn.au I haven't tested it that well yet. This requires an exchange of server keys (the one pushing has to send the server's public key to those he/she is pushing to). If you want, I can set up a push to lapo.it as well, and let's try this baby out for real... especially with the new key format, I suspect there will be some rewriting to do ;-) Cheers, Richard -- Richard Levitte rich...@levitte.org http://richard.levitte.org/ Life is a tremendous celebration - and I'm invited! -- from a friend's blog, translated from Swedish ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
[Monotone-devel] .mtn-ignore ignored?
Hello, It seems my regexps in .mtn-ignore no longer works. When I call mtn ls ignored, the resulting list is always empty. When I do mtn add -R ., it add all files including the ones I want to ignore, and that match the regexps. I think this is a regression since 0.36 or so; I know for a fact that these same regexps used to work. Do recent versions of monotone still support .mtn-ignore, as the documentation says? I currently run: monotone 0.44 (base revision: b0498387aa9570fb7bd97845de14f63a88d8658a) Running on : Linux 2.6.26-2-amd64 #1 SMP Wed Aug 19 22:33:18 UTC 2009 x86_64 C++ compiler: GNU C++ version 4.3.3 C++ standard library: GNU libstdc++ version 20090714 Boost version : 1_38 SQLite version : 3.6.18 (compiled against 3.6.16) Lua version : Lua 5.1 PCRE version: 7.8 2008-09-05 (compiled against 7.8) Botan version : 1.8.6 (compiled against 1.8.4) Changes since base revision: format_version 1 new_manifest [e4fc965aec46ce8b371e818de6092168e1b6f52f] old_revision [7a4832143b3146ca89f5cb91e0e571d05e29d4b9] Generated from data cached in the distribution; further changes may have been made. -- Ludovic Brenta. ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] .mtn-ignore ignored?
Ludovic Brenta wrote: Hello, It seems my regexps in .mtn-ignore no longer works. When I call mtn ls ignored, the resulting list is always empty. When I do mtn add -R ., it add all files including the ones I want to ignore, and that match the regexps. I think this is a regression since 0.36 or so; I know for a fact that these same regexps used to work. Do recent versions of monotone still support .mtn-ignore, as the documentation says? Yes, for example the .mtn-ignore in net.venge.monotone seems to work fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this shouldn't have broken anything. Do you have examples of the patterns and the files they're failing to match? ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
[Monotone-devel] Re: synchronization between mtn servers
Richard Levitte wrote: If you want, I can set up a push to lapo.it as well, and let's try this baby out for real... Yep, thanks! I'll also take a look at it when I gather some free time for it, seems a quote better approach. -- Lapo Luchini - http://lapo.it/ “I couldn't help but overhear, probably because I was eavesdropping.” (anonymous) signature.asc Description: OpenPGP digital signature ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] Re: usher on BSD
Lapo Luchini wrote: Timothy Brownawell wrote: Or simply understand why 127.0.1.1 should fail... On my (Debian unstable) machine, the loopback interface has all of 127.0.0.0/8 assigned to it. It's 127.0.0.1/8 on FreeBSD too, but then it doesn't seem to bind on it. I still didn't check more in depth the question. Regardless, since the funny addresses break things... Feel free to commit this, and the patch in your other mail. But both were unconditional and I didn't test on Linux at all, I'd rather commit them with #ifdef BSD or something like that... (but would rather have a Linux VM to somewhat test it beforehand) Both work fine here. ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] .mtn-ignore ignored?
Timothy Brownawell writes: Ludovic Brenta wrote: Hello, It seems my regexps in .mtn-ignore no longer works. When I call mtn ls ignored, the resulting list is always empty. When I do mtn add -R ., it add all files including the ones I want to ignore, and that match the regexps. I think this is a regression since 0.36 or so; I know for a fact that these same regexps used to work. Do recent versions of monotone still support .mtn-ignore, as the documentation says? Yes, for example the .mtn-ignore in net.venge.monotone seems to work fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this shouldn't have broken anything. Do you have examples of the patterns and the files they're failing to match? $ cat .mtn-ignore debian/files debian/gnat $ mtn ls ignored $ mtn ls debian/files debian/gnat debian/files debian/gnat: DEBIAN usr $ mtn ls known .mtn-ignore debian debian/changelog debian/compat debian/control debian/copyright debian/rules debian/source.lintian-overrides $ mtn add debian/files # should be ignored mtn: adding debian/files to workspace manifest I sincerely hope I'm doing something wrong... I tried the following regular expressions, all with the same result: debian/files ^debian/files$ /debian/files ^\./debian/files$ ^/debian/files$ (The last three do not match the output of mtn ls unknown so I don't expect them to work; but I do expect the first two to work.) -- Ludovic Brenta. ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] .mtn-ignore ignored?
Ludovic Brenta wrote: Timothy Brownawell writes: Ludovic Brenta wrote: Hello, It seems my regexps in .mtn-ignore no longer works. When I call mtn ls ignored, the resulting list is always empty. When I do mtn add -R ., it add all files including the ones I want to ignore, and that match the regexps. I think this is a regression since 0.36 or so; I know for a fact that these same regexps used to work. Do recent versions of monotone still support .mtn-ignore, as the documentation says? Yes, for example the .mtn-ignore in net.venge.monotone seems to work fine. 0.37 did switch from Boost::regex to PCRE, but NEWS says this shouldn't have broken anything. Do you have examples of the patterns and the files they're failing to match? $ cat .mtn-ignore debian/files debian/gnat $ mtn ls ignored $ mtn ls debian/files debian/gnat debian/files debian/gnat: DEBIAN usr $ mtn ls known .mtn-ignore debian debian/changelog debian/compat debian/control debian/copyright debian/rules debian/source.lintian-overrides $ mtn add debian/files # should be ignored mtn: adding debian/files to workspace manifest I sincerely hope I'm doing something wrong... I tried the following regular expressions, all with the same result: debian/files ^debian/files$ /debian/files ^\./debian/files$ ^/debian/files$ (The last three do not match the output of mtn ls unknown so I don't expect them to work; but I do expect the first two to work.) They should work, and they *do* work here. So if you haven't overridden the ignore_file() hook and this is in the workspace root directory, I'm not sure what could be going on. ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel
Re: [Monotone-devel] .mtn-ignore ignored?
Timothy Brownawell tbrow...@prjek.net writes: They should work, and they *do* work here. So if you haven't overridden the ignore_file() hook and this is in the workspace root directory, I'm not sure what could be going on. Heh. Thanks, that reminded me that I overrode ignore_file() back in 2006... I copied and pasted the then-default version which read .mt-ignore instead of .mtn-ignore. (if you're curious: I didn't want to ignore *.a files because GCC sources contain files with this extension, containing Ada test cases instead of static libraries). -- Ludovic Brenta. ___ Monotone-devel mailing list Monotone-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/monotone-devel