lock oddity

Jeff Licquia jeff at licquia.org
Wed Nov 21 22:51:58 GMT 2007


Wichmann, Mats D wrote:
> for the purposes of fiddling around with this, how
> would one create a valid lock without having to try
> to kill a process in progress?

It might be easier to just query the lock status.  I found this in the 
implementation of "bzr info":

     if (repository.get_physical_lock_status() or
         (branch and branch.get_physical_lock_status()) or
         (working and working.get_physical_lock_status())):

Since we don't care about the details of the lock, we should be able to 
streamline that a bit.




More information about the bazaar mailing list