there should be a separate tab in the output window for every repository
I would see this as an enhancement and not a defect. Some may want all the mercurial related info on a single output
tab, others may want it on individual tabs. Should probably be a Mercurial Option.
actually, what triggered this issue was the fact that i haven't seen any info in the rollback commands output regarding
the context on which it was invoked.
As tstupka said it should have separated tab for each repository. CVS and Subversion integrations behave in this way.
IMHO, it's rather a defect.
Ah ok - the Rollback not giving output and context is a bug as well. We can make the change no probs.
Created attachment 56861 [details]
Created attachment 56973 [details]
bb611338088f: patch pushed
The current fix uses the full path of the repository as the Tab title, which seems to be a bit long winded, though
The question is if we don't set it to the full repo path, then what should it be set to?
In the Status Window we use "Mercurial - <output of Utils.getContextDisplayName(context)>" Should we be doing the same
here? This will give us per Project tabs, not per Repository. Is this what you want or not?
If we stick with per Repository tabs then with the NetBeans repo all of the projects I open such as mercurial or
subversion will all output to the same tab, which is perhaps not what a user would expect.
If you do want to stick with one tab per repository in spite of this issue with repositories containing multiple NB
projects, then I still think we need to do something about the long path.
Perhaps a good compromise would be to have the following:
"Mercurial - <output of Utils.getContextDisplayName(context)> (<repsoitory.getName()>)"
"Mercurial - ProjectName (Top Level Repo Folder)"
On Subversion we get in the tab:
<Full path to the repository URL>
So will leave this for now and if we get any feedback we can always modify it.