3 # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...
5 # prints out the URL associated with each item
16 dirpath
= fullpath
= os
.path
.abspath(f
)
17 if not os
.path
.isdir(dirpath
):
18 dirpath
= os
.path
.dirname(dirpath
)
19 adm_baton
= svn
.wc
.adm_open(None, dirpath
, 1, 1)
21 entry
= svn
.wc
.entry(fullpath
, adm_baton
, 0)
24 svn
.wc
.adm_close(adm_baton
)
26 if __name__
== '__main__':