need help implementing changes -> repository

Hi,

I'm trying to add changes -> repository functionality to my plugin (hg4idea), but with no luck
When I originally implemented this it used to work but sometimes before 8.0 was out it stoped.

Here is the source of HgCommittedChangesProvider

My problem is that getCommittedChanges method is never called, using different debugging methods I see that createDefaultSettings(...) is called then createActions(...).
Never getCommitedChanges.

And after this repository tab is empty.

In the same context another question:
Why 'VCS History Cache Settings' is displayed when I call refresh in 'Repository' tab, I'm not implementing CachingCommittedChangesProvider I don't want to cache anything.
Is there a way to disable this dialog?

Thanks

0
3 comments

Hello Victor,

You're answering your question yourself. You do need to implement CachingCommittedChangesProvider
if you want the tab to work.

I'm trying to add changes -> repository functionality to my plugin
(hg4idea), but with no luck When I originally implemented this it used
to work but sometimes before 8.0 was out it stoped.

Here is the source of
[HgCommittedChangesProvider|http://code.google.com/p/hg4idea/source/br
owse/trunk/src/org/zmlx/hg4idea/HgCommittedChangesProvider.java]

My problem is that getCommittedChanges method is never called, using
different debugging methods I see that createDefaultSettings(...) is
called then createActions(...).

Never getCommitedChanges.

And after this repository tab is empty.

In the same context another question:

Why 'VCS History Cache Settings' is displayed when I call refresh in
'Repository' tab, I'm not implementing CachingCommittedChangesProvider
I don't want to cache anything.

Is there a way to disable this dialog?

Thanks

---
Original message URL:
http://www.jetbrains.net/devnet/message/5227839#5227839

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Thanks Dmitry,

Implementing CachingCommittedChangesProvider helped. Don't know why I was fixed on CommittedChangesProvider.

Another question
Why my incoming tab is showing same change lists as repository tab? How does IDEA decide what change list goes to 'Repository' and what goes to 'Incoming'.
Looking at svn4idea I assumed isChangeLocallyAvailable is doing the difference, but it doesn't appear to have any influence?

Thanks

0
Avatar
Permanently deleted user

hi Dmitry, Victor,

I am implementing a VCS provider, and have so far been able to populate the local changes tab and the commit action on the local changes. I implemented the CachingCommittedChangesProvider which added the Repository and Incoming tabs to the changes view.

I am exactly at this problem now:
"My problem is that getCommittedChanges method is never called, using different debugging methods I see that createDefaultSettings(...) is called then createActions(...).
Never getCommitedChanges."

What is that I am missing?

Thanks,
Priya.

0

Please sign in to leave a comment.