subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Sperling <s...@elego.de>
Subject Re: New lines in notify.c
Date Sun, 03 Mar 2019 13:17:55 GMT
On Sun, Mar 03, 2019 at 01:07:53PM +0000, Jonathan Guy wrote:
> Hi all
> 
> Just out of curiosity in notify.c we have the two lines
> 
> SVN_ERR(svn_cmdline_printf(pool, "\rChecking r             "));
> SVN_ERR(svn_cmdline_printf(pool, "\rChecking r%ld...", n->revision));
> 
> Is there a specific reason \r is used and not \n?

The conflict resolver uses this for reporting its progress while
scanning through history. The resolver might have to scan through
several hundreds or even thousands of revisions. Printing a newline
would make the output scroll by one line per scanned revision...

Mime
View raw message