jsvn: add comment blocks
This commit is contained in:
parent
d0d463a30c
commit
e9bcc035f2
12
jsvn
12
jsvn
@ -46,10 +46,16 @@ import re
|
|||||||
import time
|
import time
|
||||||
from subprocess import *
|
from subprocess import *
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Subcommand Handler Return Values #
|
||||||
|
###########################################################################
|
||||||
RET_OK = 0
|
RET_OK = 0
|
||||||
RET_ERR = 1
|
RET_ERR = 1
|
||||||
RET_REEXEC = 2
|
RET_REEXEC = 2
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Utility Functions #
|
||||||
|
###########################################################################
|
||||||
def findInPath(cmd):
|
def findInPath(cmd):
|
||||||
path_entries = os.environ['PATH'].split(os.pathsep)
|
path_entries = os.environ['PATH'].split(os.pathsep)
|
||||||
for p in path_entries:
|
for p in path_entries:
|
||||||
@ -118,6 +124,9 @@ def setSVNProperty(svn, prop, val, path):
|
|||||||
def delSVNProperty(svn, prop, path):
|
def delSVNProperty(svn, prop, path):
|
||||||
Popen([svn, 'propdel', prop, path], stdout=PIPE).wait()
|
Popen([svn, 'propdel', prop, path], stdout=PIPE).wait()
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Subcommand Handlers #
|
||||||
|
###########################################################################
|
||||||
def branch(argv, svn):
|
def branch(argv, svn):
|
||||||
if len(argv) < 2:
|
if len(argv) < 2:
|
||||||
bl = ['trunk'] + getSVNBranchList(svn)
|
bl = ['trunk'] + getSVNBranchList(svn)
|
||||||
@ -349,6 +358,9 @@ def root(argv, svn):
|
|||||||
sys.stdout.write(getSVNRoot(svn) + '\n')
|
sys.stdout.write(getSVNRoot(svn) + '\n')
|
||||||
return RET_OK
|
return RET_OK
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Main #
|
||||||
|
###########################################################################
|
||||||
def main(argv):
|
def main(argv):
|
||||||
realsvn = findInPath('svn')
|
realsvn = findInPath('svn')
|
||||||
colorsvn = findInPath('colorsvn')
|
colorsvn = findInPath('colorsvn')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user