Re: "Retrieve Revision as..." default file name

"kaczoroj" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.gui.devel
Message-ID <[email protected]>
Jens,

> Compare the file names when doing a "Retrieve Revision as..." 
> from graph view or when doing a "View Selection" from graph view:
> In the first case, you'll get "foo.cpp.#1.3.45", whereas in 
> the second case, you get the much more useful name 
> "foo_view_1.3.45_2.cpp".

The difference is that for the view the file is created in the temp 
directory and it gets deleted at the exit, while the retrieve 
operation places the copy of the file in the same location as original 
file. 

To prevent overwriting the working file we have to change the name and 
we've chosen to follow files naming convention similiar to the CVS 
backup files (.# prefix - created during merge) but as a suffix and 
followed by the revision number so you can tell what it is. 

> I think the "Retrieve Revision as..." command should also provide 
> a name in a form similar to the "View Selection" case (exluding 
> the word "view" or course). That would be more consistent, but 
> at the very least, the command should preserve the extension.

I am not sure about the preserving of the extension as I am sure Java 
folks will run into troubles (Java compilers are often picking up any 
files they can find on their way) but I have no objections to changes 
in naming convention in general. 

Basically the retrieved file should look different from the files 
normally used by people so they will not start working on these by 
mistake (hence the .# comes in handy as it's the CVS convention) and 
it should have the revision number embedded into the name and the 
files' original name to easily see where they come from. I am not sure 
whether moving currently used suffix to the front will affect normal 
CVS operation but it probably shouldn't. 

So the effect would be something like that:
.#1.3.45.foo.cpp

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.