PK͉|Itwatchman/.DS_StoreBud1cache_ __pycache__vSrnlong  @ @ @ @ EDSDB ` @ @ @PK|I!Xppwatchman/__init__.py""" watchman: version control status management made easy.""" __version__ = '0.0.1' __author__ = 'Aleph Melo' PK]|I9bbwatchman/main.pyimport sys import os from sh import cd, hg def _get_subdirectories(current_dir): return [name for name in os.listdir(current_dir) if os.path.isdir(os.path.join(current_dir, name))] def check(): current_working_directory = os.getcwd() child_dirs = _get_subdirectories(current_working_directory) for child in child_dirs: if child[0] != '.': try: cd('%s/%s' % (current_working_directory, child)) current_branch = hg('branch') print('%s is on branch: %s' % (child, current_branch), end='') cd('..') except Exception: continue def main(): arguments = sys.argv if 'check' == arguments[1]: check() else: print("type watchman help for, you know, help.") if __name__ == '__main__': main() PK!H|&Ubwatchman-0.0.1.dist-info/WHEEL HM K-*ϳR03rOK-J,/RH,Q034 /, (-JLR()*M ILR(4KM̫#DPK!H>7!watchman-0.0.1.dist-info/METADATAEn0 Ew}rQS. ;Ctfe6$*E>2sxH32vgƠ`+_Ą"k1mFnűz/(> 1p #<nL@XnRGO]j@aNEŲRGߣd<د{)5Y06yȣu ֐W],b,g$(rҼ;PK!H0j'watchman-0.0.1.dist-info/RECORDuMB@{e-1ţ$^ʌ{1KU\/8㈏i3@R?6M+DU'S,l*IM9eazߌd;d_.U-oyw뽇uawU1=ۓ@F(EzB\T@_E99/"D:`R^;"rB+LA*> P}|mz6[sYj~uXt۞nju*x6`]`PK͉|Itwatchman/.DS_StorePK|I!Xpp4watchman/__init__.pyPK]|I9bbwatchman/main.pyPK!H|&Ubfwatchman-0.0.1.dist-info/WHEELPK!H>7!watchman-0.0.1.dist-info/METADATAPK!H0j'watchman-0.0.1.dist-info/RECORDPK^