[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r18738 - trunk/tools/hook-scripts

From: <kfogel_at_collab.net>
Date: 2006-03-06 21:13:25 CET

cmpilato@tigris.org writes:
> Log:
> Factor out a bunch of repeated usage/exit logic.
>
> * tools/hook-scripts/log-police.py
> (usage_and_exit): New, replaces ...
> (usage): ... this now-deleted function.
> (main): Use usage_and_exit() instead of usage(). Also, call
> svn_path_canonicalize() on the input path.
>
> --- trunk/tools/hook-scripts/log-police.py (original)
> +++ trunk/tools/hook-scripts/log-police.py Mon Mar 6 09:09:09 2006
> @@ -49,6 +49,27 @@
> svn.fs.svn_fs_change_rev_prop(fs, revnum, "svn:log", new_message)
>
> [...]
>
> - repos_path = args[0]
> + repos_path = svn.core.svn_path_canonicalize(args[0])

Ooooh -- thanks. I didn't see that in my first glance at the diff;
I'll remember this for future bindings usages.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 6 23:00:46 2006

This is an archived mail posted to the Subversion Dev mailing list.