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

Re: [TSVN] "diff" command in context menu when selecting an added file

From: George Wieggers <george.wieggers_at_gmail.com>
Date: 2005-01-06 10:48:32 CET

Thanks for clarifying my original post. It was indeed a bit confusing
if I read it again...

> I would suggest that if a file is 'added', we then check for the existence
> of a base-file and only offer the diff option if the base exists. I think
> this might be somewhat tedious to do, because GetPristinePath isn't
> currently available in the shell extension.

svn status on such files gives the following output:

A + bar.txt

So the '+' indicates "with history"

After studying the sources a bit more, I learned that Tortoise uses
svn_wc_status_kind to indicate the status of a specific item. The info
"copied with history" is not retrieved.

The svn_wc_status_t has a specific member "copied" which indicates if
an added file was copied with history. I think the "translation" from
svn_wc_status_t to svn_wc_status_kind happens in SVNStatus.cpp,
specifically, in SVNStatus::getallstatus

Is it maybe possible to make use of this "copied" member somehow?

- George

To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jan 6 10:49:11 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.