Re: "Retrieve Revision as..." default file name
"kaczoroj" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
Jens, > > So the effect would be something like that: > > .#1.3.45.foo.cpp > > That will make the file invisible on Unix-flavored > operating systems, where files starting with a 'dot' > are considered 'hidden', i.e. only visible if the user > chooses to see all the clutter. Which is actually a *good* thing! After all the CVS backup files start with dots for a reason and both those backup files and our retrieved files are essentially clutter. E.g. you don't want them to accidentally get checked in. For that reason the .#* wildcard is in the default CVS ignore list. To address the Oliver's concerns we should actually add the .bak suffix and we're done (yes, I know that's not what you had in mind ;), so the example would look like that: .#1.3.45.foo.cpp.bak It's got prety good shape now. Not only it follows the CVS convention but at the same time avoids potential conflicts with CVS backup files, escapes the grep-ing on Unixy OS's, sails safely off the file-hungry Java compiler, file-hungry "cvs add *.*" command and file-hungry search in files in Visual Studio. > Having the name first will also make sure the files are sorted > by their 'real' name in the file browser, which IMHO is what > you'd usually want. Not really. I want that retrieved file as far away from the real file actually ;) I guess that user expects different things depending what he plans to do with the retrieved file. > To make things [over-?] perfect, this could be a configurable > option where we could specify three placeholders for > ORIGINAL_NAME, REVISION and ORIGINAL_EXTENSION. (Might be a bit > overkill to have a pref for this, though...) It is overkill ;) > Or maybe a simpler option that allows to choose between > "foo.#.rev.extension" and "foo.extension.#.revision" would be > sufficient (should be a per-sandbox setting)? Yes, that might be a good middle-ground solution. We already have the graph options in WinCvs which controls the graphics for now but we can easily add the settings for retrieve version command. On top of that we might have the settings whether to add ".bak" suffix or not. So for example the set of options would be grouped under "Retrieve revistion" as follows: - Radio buttons or combo box selection: 1. Append revision to the end of file name 2. Insert revision at the front of file name - Add ".bak" suffix Or maybe we should provide more detailed settings for all temporary file names as well? It may be worth the effort if we can apply consistant format for all of them... Best Regards, Jerzy ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NhFolB/TM ---------------------------------------------------------------------~-> 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/