Re: Suggestion for improved use of cvs checkout to update sandboxes

"kaczoroj" <[email protected]> Wed, 12 May 2004 09:20:16 -0000
Newsgroups gmane.comp.version-control.cvs.gui.devel
Message-ID <[email protected]>
I've just checked in a simple implementation of the improvement for 
setting default values of module name and cvsroot(for new cvsroot 
implementation). Rtag, import and and command line windows also 
benefited from the feature.

It should be transparent and working for both MacCvs and gCvs as 
funtionality is generic and doesn't use any platform-specific 
features.

It works by simply storing the mapping of directory paths against the 
module or cvsroot when doing the checkout to be used when the next 
checkout for the same selection is done. Searching for a match in the 
stored dictionary is progressive up the folders hierarchy so even if 
subfolder deep down the tree is selected the match for the parent will 
be found.

Currently cvsroot and modules have separate handling functions which 
look identical which can be merged into generic function later on in 
case we don't alter the match search algorithms.

One interesting thing that come up during the testing is that checkout 
for an existing sandbox has to be done from outside e.g. parent 
directory. That led me to put in place the search for best checkout 
folder as the first non-cvs folder in the path.

I stopped short of implementing the "Skip dialog" feature for checkout 
however, at least for now. It seems to be more safe to just offer 
stored values as defaults so all the user has to do is to press Enter 
key to confirm. It's much better than before when module name and 
cvsroot had to be entered each time. We can optimize implementation 
before adding the skip option.

The dictionaries are set to store 100 entries which should be more 
than enought. There is no erase option but since values stored only 
manifest themself as default values on command dialogs there seems to 
be no need for erasing previous entries. Storage is in common space so 
the same selection yields the same values even if selected from 
different browse locations.

Please take a look and - as always - comments and suggestions are 
welcome!

Best Regards,
Jerzy




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/NhFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/cvsgui-dev/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/