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

Re: [PATCH] #10 OS400/EBCDIC Port: Disable unsupported subcommands and options

From: Paul Burba <paulb_at_softlanding.com>
Date: 2006-03-02 15:04:08 CET

Hello All,

I wanted to repost this so it wasn't forgotten. I made the log and
formatting edits requested, but also added some changes to the approved
patch based on Julian's comments and didn't want to commit without someone
taking a look.

Thanks,

Paul B.

Julian Foad <julianfoad@btopenworld.com> wrote on 02/27/2006 08:59:35 PM:

> Does something suitable happen if the user doesn't provide "--
> message" or "--file"?

Ah, that is a good point, while my patch provides appropriate help for
commit on OS400...

svn ci --help
commit (ci): Send changes from your working copy to the repository.
usage: commit [PATH...]
 
  A log message must be provided, but it can be empty.
  OS400 does not support the starting of an editor,
  so --message or --file must be used. If any targets are
  (or contain) locked items, those will be unlocked after a
  successful commit.
 
$
 
...the error messages received if you omit -m and -F is a bit misleading:

svn ci /home/burba/wcs/hooktest
svn: Commit failed (details follow):
svn: Could not use external editor to fetch log message; consider setting
the $SVN_EDITOR environment variable or using the --mes
sage (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is
set, and no 'editor-cmd' run-time configuration option was found
 
$

I modified svn_cl__get_log_message() in util.c to provide a better
response:

svn ci /home/burba/wcs/hooktest
svn: Commit failed (details follow):
svn: Use of an external editor to fetch log message is not supported on
OS400; consider using the --message (-m) or --file (-F) options
 
$

> Other than that, +1.

[[[
OS400/EBCDIC Port: Disable unsupported features.

This is one of several patches to allow Subversion to run on IBM's
OS400 V5R4. It disables subcommands and CL options not currently
supported on OS400.

* subversion/svn/main.c
   (svn_cl__options): Disable --encoding, --editor-cmd, --diff-cmd,
    --diff3-cmd, and --extensions options.
   (svn_cl__cmd_table): Tweak svn ci help message. Disable svn
    propedit.
* subversion/svn/util.c
   (svn_cl__get_log_message): Return error appropriate to OS400.
]]]

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Mar 2 15:06:53 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.