On 3/1/2006 12:59 PM, Gale, David wrote:
> Duncan Murdoch wrote:
>> On 3/1/2006 12:09 PM, Gale, David wrote:
>>> Ryan Schmidt wrote:
>>>> On Mar 1, 2006, at 15:10, Andrew Haley wrote:
>>>>> When I do a commit, svn doesn't tell me which branch I'm committing
>>>>> to. So, when I check in the log, I have no way to know which files
>>>>> I'm about to overwrite. This is a regression from CVS, which does
>>>>> tell me which branch I'm committing to.
>>>> Subversion does branching completely differently than CVS. Have you
>>>> read the book? A branch in Subversion is absolutely nothing more
>>>> than a plain directory. Whatever directory you checked out from (or
>>>> subsequently switched to) is the one you're committing to.
>>> So, wouldn't it still be nice for svn to let you know which directory
>>> (and repository) it's going to commit to? Might help prevent people
>>> who've checked out a tag & forgotten to switch to a branch, for
>> When you're using the command line client, there's no opportunity for
>> it to question whether you really know what you're doing. When you
>> say "commit this", it assumes you've already done "svn info" or
>> whatever other checks you'll need.
>> On the other hand, GUI clients like TortoiseSVN can be a lot
>> friendlier, and in fact TSVN does tell you where the commit is going.
>> So I'd suggest using TSVN, or whatever GUI works on your platform of
> Actually, there's plenty of time. It opens up an editor (vim, in my
> case) for inputting a log message; it's got all the affected files
I usually put the log message on the command line (or use TSVN), so I
forgot about that. Yes, putting the path into the comments in there
would be a helpful thing to do.
If I notice a file I don't want to commit, or that it's missing
> one I think should be there, I can exit out of the editor; if I haven't
> typed anything in, it asks if I want to abort the commit. And, even
> after that, it asks for my credentials (I don't have authentification
> caching turned on), at which point I can still force an abort. (Yes, if
> you pass the log message & any needed authentification credentials on
> the command line, you don't have an opportunity; but if you're doing
> that, then SVN has every right to expect you to know what you're doing.)
I also don't get asked for credentials, because I normally use svn+ssh,
with public key authentication for the ssh part, or cached
authentication for the https repositories.
> And, incidentally, my "platform of choice" (chosen by my company, not
> me) is a *nix box with no windowing capability. It's command line or
> nothing, in my case.
> I'm just agreeing with the original poster that it'd be nice if the log
> message window would present the path being committed to. Asking
> developers to do an "svn info" just to find that out seems rather
> unfriendly, don't you think?
I think putting the path into the log template file would be a good idea.
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Wed Mar 1 21:13:39 2006