jsvn: add "url" subcommand
This commit is contained in:
parent
03fd50eb93
commit
b8e40766e7
7
jsvn
7
jsvn
@ -31,6 +31,8 @@
|
|||||||
# - falls back to Subversion "merge" if <branch> doesn't exist
|
# - falls back to Subversion "merge" if <branch> doesn't exist
|
||||||
# root
|
# root
|
||||||
# - output root URL (for use on shell such as "svn log $(svn root)/tags")
|
# - output root URL (for use on shell such as "svn log $(svn root)/tags")
|
||||||
|
# url
|
||||||
|
# - output repository URL of current working directory
|
||||||
# watch-lock
|
# watch-lock
|
||||||
# - block until the lock on a file/URL is released
|
# - block until the lock on a file/URL is released
|
||||||
# users
|
# users
|
||||||
@ -698,6 +700,10 @@ def root(argv, svn, out):
|
|||||||
out.write(getSVNRoot(svn) + '\n')
|
out.write(getSVNRoot(svn) + '\n')
|
||||||
return RET_OK
|
return RET_OK
|
||||||
|
|
||||||
|
def url(argv, svn, out):
|
||||||
|
out.write(getSVNURL(svn) + '\n')
|
||||||
|
return RET_OK
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Main #
|
# Main #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -747,6 +753,7 @@ def main(argv):
|
|||||||
'root': root,
|
'root': root,
|
||||||
'up': update,
|
'up': update,
|
||||||
'update': update,
|
'update': update,
|
||||||
|
'url' : url,
|
||||||
'watch-lock': watch_lock,
|
'watch-lock': watch_lock,
|
||||||
'users': users,
|
'users': users,
|
||||||
'binaries': binaries,
|
'binaries': binaries,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user