[PATCH] Add an explicit call to dirstate.write to debugsetparents.
Nathan Binkert
nate at binkert.org
Tue Mar 20 16:11:26 UTC 2007
>> Now, I'll admit that this will only happen if you import
>> mercurial.commands and are trying to call one after the other in a python
>> script. (I'm trying to make tailor support parents properly.)
>
> It's a bit strange to use commands.debugsetparents - you could just call
> dirstate.setparents directly... (while holding the wlock). But if it
> works...
Well, in general, tailor uses commands.foo for everything so I was just
trying to be consistent. I tought it was all pretty wierd myself, but it
does simplify the code a bit. Out of curiosity, are the locking rules in
some document anywhere?
Thanks,
Nate
More information about the Mercurial
mailing list