GNOME Bugzilla – Bug 479644
request method to set vc plugin order.
Last modified: 2009-03-07 10:23:27 UTC
When you have a project that's under both CVS and svn contorl, meld always chooses to use CVS, even through svn is what we use for day-to-day work.
I have created the following 2 patches for that. Please review, test and report. The first is just a NO-OP preparation for the second which implements a very simple (hints accepted as to what would be better) GUI chooser. Tested with git+hg repository.
Created attachment 129131 [details] [review] NO-OP refactorization to allow easy GUI chooser implementation
Created attachment 129132 [details] [review] GUI chooser implementation
test with: mkdir git+hg cd git+hg echo .hg > .gitignore echo .hgignore >> .gitignore git init git add .gitignore git commit -m "ignore list" echo .git > .hgignore echo .gitignore >> .hgignore hg init hg add .hgignore hg commit -m "ignore list" touch test.txt hg add test.txt hg commit -m initial git add test.txt git commit -m initial echo a > test.txt meld .
Very nice clean patch. This is good to commit.
committed the 2 patches in rev 1159 & 1160
Created attachment 130058 [details] [review] Add preference pane to allow configuration of vc plugin chooser method This patch is against trunk rev # r1217
That last patch #130058 is adding a "Version Control" preference tab, with a "Multiple version control system" option with a radio button, allowing to choose method used when multiple version control systems are detected in the same directory: 1) Old way: guess by taking the one with the longest working directory path 2) Ask the user with the GUI chooser implemented in the previous 2 patches 3) Pick first match from a user specified list Only the second option is interactive, the other 2 are automatic. The old automatic method is used when there is a problem with the user specified list from option 3) and an error dialog box asks the user to fix the problem in the preferences.