Re: [PATCH] Re: $EDITOR commit code cleanups
From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-02-05 10:25:53 CET
On 4 Feb 2002, Philip Martin wrote:
Thanks for your excellent feedback!
> > - apr_snprintf(array, 128, "SVN: %s %s\n", str_status, path);
That's indeed a good idea if we really want to be able to get that long lines
> The magic prefix "SVN:" should not occur explicitly in the code in three
Correctomente. I'll use a proper #define for it.
> Given that the terminator is also set a few lines
The "few lines above" case has a 'break' just after it, which will make just
> The above algorithm is not efficient (some lines get memmove'd more than
I agree, but I didn't consider this very important right now and it could
> I'd do something like (warning: untested code)
Point taken. I'll use a different approach that is somwhat similar to yours
> I'd prefer to see an optional client side script provide the initial
I would like to see that too. That's also why I've worked on making the
However, I don't think that is part of what I intend to do here.
> I think APR has the required support now.
APR had it by the time I mailed the patch too, but svn_io_run_cmd() did not.
> > + /* setup the editor command line */
It isn't? The docstring for the funtion says:
* ARGS is a list of (const char *)'s, terminated by NULL.
In my mind that means that ARGS[0] is usually the same as the CMD.
> > + {
This is just a silly work-around that is meant to be removed. I don't believe
> > + sprintf(command, "%s %s", editor, fullfile);
It doesn't really matter. Not only is it just a work-around, but even if the
Yet another patch post follows.
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Oct 21 14:37:04 2006 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.