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

[PATCH] make "svn help import" explain its DWIMness better

From: Branden Robinson <branden_at_deadbeast.net>
Date: 2004-12-27 19:58:17 CET

Maybe I am just brain-damaged or stupid, but I always do imports wrong, and
have to revert them. Moreover, I do this even after reading "svn help

I think maybe my problem is that svn import does the more or less logical
thing from a repository management standpoint, but doesn't hew terribly
close to Unix command-line tool tradition when it comes to pathname

I therefore humbly submit the following patch (MIME-attached). It tells
the user what happens if the import PATH is not a directory, spells out the
fact that when the import PATH is a directory, the directory name itself is
*not* imported (this is what *always* screws me up), and makes a couple of
other clarifications.

There is one other confusing thing about imports for me, but which I
haven't the savvy to fix. svn import's output will say things like this:

Adding xtrs-4.9/trs_uart.c
Adding xtrs-4.9/cassette.man
Adding xtrs-4.9/export.bas
Adding xtrs-4.9/trs_iodefs.h
Adding xtrs-4.9/crc.c

...when the path component "xtrs-4.9" itself is not being added *to the
repository* at all. I may be mistaken, but I don't think that is quite
correct behavior. When I commit added files to the repository from a
checkout, I don't see the name of my checkout directory, whatever it may
be, in the output of "svn ci".

Thanks for your consideration.

G. Branden Robinson            |       Men are born ignorant, not stupid.
Free Software Developer        |       They are made stupid by education.
branden@deadbeast.net          |       -- Bertrand Russell
http://deadbeast.net/~branden/ |

Received on Mon Dec 27 19:59:25 2004

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.