On Sun, Sep 28, 2008 at 10:28:07AM +0200, Vladimir Marek wrote:

> > > In my setup I have gate repository, which has
> > >
> > > [hooks]
> > > pretxnchangegroup.01_test = 
> > > /home/vm156888/Documents/sfw/hg/scripts/display_all_changesets
> > > pretxnchangegroup.02_test = sleep 10
> > > pretxnchangegroup.03_test = 
> > > /home/vm156888/Documents/sfw/hg/scripts/just_one_changeset
> > >
> > > just_one_changeset fails, so the transaction is rolled back.
> > >
> > >
> > > If I during the 'sleep 10' hook try to clone the gate, I'll get:
> > >
> > > $ hg clone gate tmp
> > > waiting for lock on repository gate held by 'pub:6267' <--- waiting here 
> > > 10sec
> 
> > This looks like good news.  I am hoping to avoid the gate/clone split 
> > for push/pull that ON has and SFW has under Teamware.
> > Now the only split we should end up with is "recipies" and "tarballs", 
> > which we can't avoid if we want to keep the changesets reasonable small.
> 
> Sorry, false alarm. hg clone is locked, hg pull is not :( Maybe clone
> needs to write something to repository, so it needs to be locked.

This may be fixed in 1.2.  The bug is

    http://www.selenic.com/mercurial/bts/issue1321

and there was a changeset added

    http://selenic.com/repo/index.cgi/hg/rev/b8d750daadde

but I'm not sure why the bug isn't closed -- either it's an oversight or
the fix isn't complete.

Danek

Reply via email to