Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-29 Thread Richard Levitte
In message jddm8j$38d$1...@dough.gmane.org on Wed, 28 Dec 2011 00:01:23 + 
(UTC), Hendrik Boom hend...@topoi.pooq.com said:

hendrik On Tue, 27 Dec 2011 11:40:16 +0100, Richard Levitte wrote:
hendrik 
hendrik  
hendrik  Yup, that's not the correct server.  The debian stuff is in
hendrik  mtn://code.monotone.ca/debian-mtn
hendrik  
hendrik  However, considering what I wrote above, that isn't enough either. A
hendrik  quick way to do this is:
hendrik  
hendrik  mtn clone
hendrik  mtn://code.monotone.ca/contrib?net.venge.monotone.contrib.usher 
usher
hendrik  cd usher
hendrik  mtn clone mtn://code.monotone.ca/debian-mtn?org.debian.usher debian
hendrik  
hendrik  The correct way is a little bit more complex.  Since Debian packages 
are
hendrik  built from source distributions, the correct way is to build a source
hendrik  distribution, unpack that, clone the debian directory inside the
hendrik  resulting directory, then build your debian package from there (using
hendrik  debuild or pbuilder or whatever you fancy)
hendrik 
hendrik So this means I make nested checkouts, without using merge-into-dir
hendrik which was supposed to replace nested checkouts.

Yes.  The usher source branch and the debian packaging branch are to
be entirely separate.  merge-into-dir doesn't support that, and isn't
supposed to replace nested checkouts entirely, but merely the form
that's represented with CVS nested modules (supported by on the
repo).

The correct way to do the above is really as follows:

- get the usher source tarball.  One way is create it yourself:

mtn clone mtn://code.monotone.ca/contrib?net.venge.monotone.contrib.usher 
usher
cd usher
./configure  make dist

  of course, a debian packager would normally get the source from an
  official upstream release...

wget http://mtn-host.prjek.net/projects/webhost/files/usher-0.99.tar.gz

- unpack the tarball somewhere

mkdir /var/tmp/debian-usher
cd /var/tmp/debian-usher
tar -xvzf /PATH/TO/usher-0.99.tar.gz

- get the packaging directory

cd usher-0.99
mtn clone mtn://code.monotone.ca/debian-mtn?org.debian.usher debian

- build

debuild # or whatever

So you see, the thing is that a debian packager is expected to get the
original source release from the official place, not from whatever
repository where history is stored and development happens.  That's
the reason the usher source branch and the usher packaging branch
should stay separate.

hendrik Are these projects sufficiently disjoint that I should keep
hendrik them in separate databases following the 
each-project-has-its-own-database
hendrik best-practice?

That's really a personal choice, but considering that you might make
the mistake of slaming those branches together, then I'd say yes, keep
them in separate branches (I do that)

hendrik Might it make netsync awkward if I don't keep them separate?

It will mostly mean that people will get confused by a suddenly
appearing debian directory in the usher source if you make a mistake
somewhere (which is possible).

hendrik Does the local database keep track of which other database 
hendrik separate for each branch, or is it just one for all?

The databases themselves only care about themselves and the branches
stored in them.  monotone can keep track of the databases for you if
you have them and the different workspaces registered (see NEWS).

-- 
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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-27 Thread Richard Levitte
In message jdbb5r$ejl$2...@dough.gmane.org on Tue, 27 Dec 2011 02:39:56 + 
(UTC), Hendrik Boom hend...@topoi.pooq.com said:

hendrik On Tue, 27 Dec 2011 01:26:42 +, Hendrik Boom wrote:
hendrik 
hendrik  On Tue, 20 Dec 2011 10:21:19 +0100, Richard Levitte wrote:
hendrik  
hendrik  In message 87r500w9om@ludovic-brenta.org on Mon, 19 Dec 2011
hendrik  22:09:13 +0100, Ludovic Brenta ludo...@ludovic-brenta.org said:
hendrik  
hendrik  ludovic ... but TTBOMK nobody has packaged usher yet.  Sorry about
hendrik  ludovic that.
hendrik  
hendrik  There's no final package distributed to Debian, but there's an 
effort
hendrik  in branches org.debian.usher and org.debian.usher.experimental.
hendrik  
hendrik  So far I've been advised to look at
hendrikorg.debian.usher
hendrikorg.debian.experimental

Correction: org.debian.usher.experimental

hendrik  and
hendriknet.venge.monotone.contrib.usher

Yup.  Let me explain a bit how this is organized, and why you need two
of those branches...  (it's the same as for monotone itself)

First of all, we have the main usher source, without the debian
packaging stuff.  It resides in net.venge.monotone.contrib.usher, and
that's all that should be there.

Then, we have the debian packaging stuff, which ends up in the debian/
subdirectory of the software you want to package.  That directory is
in its own separate branch, org.debian.usher and an experimental
sibbling, org.debian.usher.experimental.

At this point, you should read the policy for debian packaging:
https://code.monotone.ca/p/debian-mtn/page/Policy/
(and hey Ludovic!  I believe it needs being updated!  ;-))

hendrik I'm evidently still doing somethihg wrong -- again -- because after I 
hendrik executing
hendrik 
hendrik mtn pull mtn://code.monotone.ca/monotone?org.debian.usher

Yup, that's not the correct server.  The debian stuff is in 
mtn://code.monotone.ca/debian-mtn

However, considering what I wrote above, that isn't enough either.
A quick way to do this is:

mtn clone mtn://code.monotone.ca/contrib?net.venge.monotone.contrib.usher 
usher
cd usher
mtn clone mtn://code.monotone.ca/debian-mtn?org.debian.usher debian

The correct way is a little bit more complex.  Since Debian packages
are built from source distributions, the correct way is to build a
source distribution, unpack that, clone the debian directory inside
the resulting directory, then build your debian package from there
(using debuild or pbuilder or whatever you fancy)

hendrik On the other hand, I have no trouble getting
hendrik  net.venge.monotone.contrib.usher
hendrik which seems to contain an usher without the init.d stuff to start it 
at 
hendrik boot and keep it up.

Yup, that works.

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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-27 Thread Hendrik Boom
On Tue, 27 Dec 2011 11:40:16 +0100, Richard Levitte wrote:

 
 Yup, that's not the correct server.  The debian stuff is in
 mtn://code.monotone.ca/debian-mtn
 
 However, considering what I wrote above, that isn't enough either. A
 quick way to do this is:
 
 mtn clone
 mtn://code.monotone.ca/contrib?net.venge.monotone.contrib.usher usher
 cd usher
 mtn clone mtn://code.monotone.ca/debian-mtn?org.debian.usher debian
 
 The correct way is a little bit more complex.  Since Debian packages are
 built from source distributions, the correct way is to build a source
 distribution, unpack that, clone the debian directory inside the
 resulting directory, then build your debian package from there (using
 debuild or pbuilder or whatever you fancy)

So this means I make nested checkouts, without using merge-into-dir
which was supposed to replace nested checkouts.

Is there any documentation on how nested workspaces are supposed to work?

Are these projects sufficiently disjoint that I should keep them in 
separate databases following the each-project-has-its-own-database 
best-practice? Might it make netsync awkward if I don't keep them
separate? Does the local database keep track of which other database 
separate for each branch, or is it just one for all?

-- hendrik


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-26 Thread Hendrik Boom
On Tue, 20 Dec 2011 10:21:19 +0100, Richard Levitte wrote:

 In message 87r500w9om@ludovic-brenta.org on Mon, 19 Dec 2011
 22:09:13 +0100, Ludovic Brenta ludo...@ludovic-brenta.org said:
 
 ludovic ... but TTBOMK nobody has packaged usher yet.  Sorry about
 ludovic that.
 
 There's no final package distributed to Debian, but there's an effort in
 branches org.debian.usher and org.debian.usher.experimental.

So far I've been advised to look at
  org.debian.usher
  org.debian.experimental
and 
  net.venge.monotone.contrib.usher 

Which of these would be most opportune?  Or is there some important 
ancestral relationship between them?  And should I work directly on these 
branches or fork my own?  Maybe something like 
net.venge.monotone.usher.hendrik or is there a better suggestion?

-- hendrik


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-26 Thread Hendrik Boom
On Tue, 27 Dec 2011 01:26:42 +, Hendrik Boom wrote:

 On Tue, 20 Dec 2011 10:21:19 +0100, Richard Levitte wrote:
 
 In message 87r500w9om@ludovic-brenta.org on Mon, 19 Dec 2011
 22:09:13 +0100, Ludovic Brenta ludo...@ludovic-brenta.org said:
 
 ludovic ... but TTBOMK nobody has packaged usher yet.  Sorry about
 ludovic that.
 
 There's no final package distributed to Debian, but there's an effort
 in branches org.debian.usher and org.debian.usher.experimental.
 
 So far I've been advised to look at
   org.debian.usher
   org.debian.experimental
 and
   net.venge.monotone.contrib.usher
 
 Which of these would be most opportune?  Or is there some important
 ancestral relationship between them?  And should I work directly on
 these branches or fork my own?  Maybe something like
 net.venge.monotone.usher.hendrik or is there a better suggestion?
 
 -- hendrik

I'm evidently still doing somethihg wrong -- again -- because after I 
executing

mtn pull mtn://code.monotone.ca/monotone?org.debian.usher

and getting

mtn: doing anonymous pull; use -kKEYNAME if you need authentication
mtn: connecting to mtn://code.monotone.ca/monotone
mtn: finding items to synchronize:
mtn: successful exchange with mtn://code.monotone.ca/monotone
mtn:  bytes in | bytes out | certs in
mtn:   351 |   525 |  0/0
mtn: note: your workspace has not been updated

and subsequenty (in another directory) doing

mtn checkout --db=~/monotone/monotone.db --branch=org.debian.usher.monotone 
debush

it tells me

mtn: misuse: branch 'org.debian.usher.monotone' is empty

which I might have guessed from the low bytes in and bytes out counts.
Am I talking to the right server?

On the other hand, I have no trouble getting
 net.venge.monotone.contrib.usher
which seems to contain an usher without the init.d stuff to start it at 
boot and keep it up.

-- hendrik


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-20 Thread Richard Levitte
In message jcnt6k$9qc$1...@dough.gmane.org on Mon, 19 Dec 2011 17:44:52 + 
(UTC), Hendrik Boom hend...@topoi.pooq.com said:

hendrik I found an old message (http://www.mail-archive.com/monotone-
hendrik deb...@nongnu.org/msg00100.html) mentioning an usher-server and an 
usher 
hendrik for Debian.  At that time there was talk about getting these into 
debian 
hendrik experimental, or into unstable or testing after the code freeze.
hendrik 
hendrik Now these look  like the recommended way to get usher to start at boot 
hendrik and stay up.
hendrik 
hendrik But I find no such package now.  Where is it, or its code, hiding out?

net.venge.monotone.contrib.usher on code.monotone.ca

It's been dormant for a bit, mostly because I apparently took a bit of
a pause.  Been thinking about it lately, though.  It would be nice to
get it out the door.

The main thing I'm trying is to have the current tests split up in
smaller chunks, so different features actually become tested one at a
time.

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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-20 Thread Richard Levitte
In message 87r500w9om@ludovic-brenta.org on Mon, 19 Dec 2011 22:09:13 
+0100, Ludovic Brenta ludo...@ludovic-brenta.org said:

ludovic ... but TTBOMK nobody has packaged usher yet.  Sorry about
ludovic that.

There's no final package distributed to Debian, but there's an effort
in branches org.debian.usher and org.debian.usher.experimental.

-- 
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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-20 Thread Richard Levitte
In message jcoq5l$8pq$1...@dough.gmane.org on Tue, 20 Dec 2011 01:59:17 + 
(UTC), Hendrik Boom hend...@topoi.pooq.com said:

hendrik So what I would have to do is this:
hendrik 
[...]
hendrik 
hendrik Get the package source for monotone.  Is that under revision-control 
hendrik somewhere?

It is.  org.debian.monotone on code.monotone.ca.

hendrik edit it to run usher instead of monotone.  This will likely require 
hendrik changes to the names of files as well as to their contents.  I hope 
not 
hendrik much more.

I suggest you have a look at org.debian.usher, also available on
code.monotone.ca.  That part is, as far as I recall, ready.

-- 
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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-20 Thread Richard Levitte
It occurs to me that I've been imprecise.

org.debian.monotone and org.debian.usher et al are available on
mtn://code.monotone.org/debian-mtn

-- 
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
https://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] monotone-usher or usher-server and usher

2011-12-19 Thread Hendrik Boom
I found an old message (http://www.mail-archive.com/monotone-
deb...@nongnu.org/msg00100.html) mentioning an usher-server and an usher 
for Debian.  At that time there was talk about getting these into debian 
experimental, or into unstable or testing after the code freeze.

Now these look  like the recommended way to get usher to start at boot 
and stay up.

But I find no such package now.  Where is it, or its code, hiding out?

-- hendrik


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-19 Thread Ludovic Brenta
Hendrik Boom hend...@topoi.pooq.com writes:
 I found an old message (http://www.mail-archive.com/monotone-
 deb...@nongnu.org/msg00100.html) mentioning an usher-server and an
 usher for Debian.  At that time there was talk about getting these
 into debian experimental, or into unstable or testing after the code
 freeze.

 Now these look like the recommended way to get usher to start at boot
 and stay up.

 But I find no such package now.  Where is it, or its code, hiding out?

Nowhere :(

The package monotone-server automatically configures, and allows a
single monotone server instance to start from /etc/init.d/monotone but
TTBOMK nobody has packaged usher yet.  Sorry about that.

If you would like to help, I can sponsor the package into Debian for
you.

-- 
Ludovic Brenta (Debian developer and sponsor of monotone packages).

___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] monotone-usher or usher-server and usher

2011-12-19 Thread Hendrik Boom
On Mon, 19 Dec 2011 22:09:13 +0100, Ludovic Brenta wrote:

 Hendrik Boom hend...@topoi.pooq.com writes:
 I found an old message (http://www.mail-archive.com/monotone-
 deb...@nongnu.org/msg00100.html) mentioning an usher-server and an
 usher for Debian.  At that time there was talk about getting these into
 debian experimental, or into unstable or testing after the code freeze.

 Now these look like the recommended way to get usher to start at boot
 and stay up.

 But I find no such package now.  Where is it, or its code, hiding out?
 
 Nowhere :(
 
 The package monotone-server automatically configures, and allows a
 single monotone server instance to start from /etc/init.d/monotone but
 TTBOMK nobody has packaged usher yet.  Sorry about that.
 
 If you would like to help, I can sponsor the package into Debian for
 you.

So what I would have to do is this:

If I can postpone getting usher working automatically for a while:

(precondition: I already have usher running by other means, but without 
autostart on boot)

Get the package source for monotone.  Is that under revision-control 
somewhere?

Find out how to compile packages and start messing with the source code 
to monotone-server directly.

edit it to run usher instead of monotone.  This will likely require 
changes to the names of files as well as to their contents.  I hope not 
much more.

And debug it by repeatedly installing and uninstalling.

Then, if I have learned enough in the meantime, try to do the same for 
usher.  This time, I'll probably not be able just to copy the package 
source for monotone, though.

-- hendrik






___
Monotone-devel mailing list
Monotone-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/monotone-devel