From 4d9d09819b42e859cb9883b3af93d8d5bed883aa Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Wed, 14 Dec 2011 22:31:01 -0600 Subject: [PATCH] svn log -r HEAD:HEAD doesn't always work, but svn log should return HEAD info by default --- svn2svn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svn2svn.py b/svn2svn.py index 743f3c6..f1f9741 100755 --- a/svn2svn.py +++ b/svn2svn.py @@ -261,8 +261,9 @@ def run_svn_log(svn_url_or_wc, rev_start, rev_end, limit, stop_on_copy=False): args = ['--stop-on-copy'] else: args = [] - args += ['-r', '%s:%s' % (rev_start, rev_end), '--limit', - str(limit), svn_url_or_wc] + if rev_start != 'HEAD' and rev_end != 'HEAD': + args += ['-r', '%s:%s' % (rev_start, rev_end)] + args += ['--limit', str(limit), svn_url_or_wc] xml_string = run_svn(svn_log_args + args) return parse_svn_log_xml(xml_string) -- 2.45.2