comparison unixSoft/bin/havepatch @ 435:d81eb79e4f4c

havepatch: sort stdlib imports
author Augie Fackler <raf@durin42.com>
date Sun, 18 Jun 2017 22:45:24 -0400
parents ce87db9038f5
children 97f12f43f73b
comparison
equal deleted inserted replaced
434:2b5d868f81ac 435:d81eb79e4f4c
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 """Detect if a patch is already applied in a Mercurial repository.""" 2 """Detect if a patch is already applied in a Mercurial repository."""
3 import sys
4 import subprocess
5 import os 3 import os
6 import re 4 import re
5 import subprocess
6 import sys
7 7
8 from mercurial import util 8 from mercurial import util
9 9
10 def main(argv): 10 def main(argv):
11 os.chdir(util.expandpath('~/Programming/hg/crew')) 11 os.chdir(util.expandpath('~/Programming/hg/crew'))