 44f0664d2c
			
		
	
	44f0664d2c
	
	
	
		
			
			Summary: Depends on D19173. Ref T13096. Adds an optional, disabled-by-default lock log to make it easier to figure out what is acquiring and holding locks. Test Plan: Ran `bin/lock log --enable`, `--disable`, `--name`, etc. Saw sensible-looking output with log enabled and daemons restarted. Saw no additional output with log disabled and daemons restarted. Maniphest Tasks: T13096 Differential Revision: https://secure.phabricator.com/D19174
		
			
				
	
	
		
			22 lines
		
	
	
		
			540 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			540 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env php
 | |
| <?php
 | |
| 
 | |
| $root = dirname(dirname(dirname(__FILE__)));
 | |
| require_once $root.'/scripts/init/init-script.php';
 | |
| 
 | |
| $args = new PhutilArgumentParser($argv);
 | |
| $args->setTagline(pht('manage locks'));
 | |
| $args->setSynopsis(<<<EOSYNOPSIS
 | |
| **lock** __command__ [__options__]
 | |
|   Manage locks.
 | |
| 
 | |
| EOSYNOPSIS
 | |
|   );
 | |
| $args->parseStandardArguments();
 | |
| 
 | |
| $workflows = id(new PhutilClassMapQuery())
 | |
|   ->setAncestorClass('PhabricatorLockManagementWorkflow')
 | |
|   ->execute();
 | |
| $workflows[] = new PhutilHelpArgumentWorkflow();
 | |
| $args->parseWorkflows($workflows);
 |