[darcs-users] DARCS and Microsoft Web Expression and Visual Studio assistance
Pekka Pessi
ppessi at gmail.com
Mon May 19 13:47:20 UTC 2008
2008/5/16 Santiago Estrada Rubio <estrasan at hotmail.com>:
> In connection with Web Expression assistance, there is another issue I want to comment. It is appropriate to use Web Expression to rename files in order to use the automatic assistance. But it is also appropriate to use "darcs mv" to continue the history of changes of the file. Our current solution is to change the name twice: first rename the file in Web Expression explorer in order to update automatically all links to the file. Then (don't record changes yet) come back to the original name, and use "darcs mv" to change the name forever.
You don't have to come back to original name, you can as well use
"darcs mv" ex post facto.
> In connection with the previous case, there is a more subtle issue. When Expression Web updates all links to the renamed file, we would like DARCS interprets these changes as a single "replace", but DARCS interprets them as many different hunks. In this case, we cannot use the previous procedure: replace in Web Expression, use DARCS revert and then use DARCS replace. The automatic Web Expression "replace" depends on token context (it just changes the file path when it appears in html links: href, etc..), while DARCS replaces all token occurrences despite of context. Our current solution is to let DARCS interpret Web Expression automatic path replace as many different hunks.
>
> Similar issues arise with Visual Studio automatic assistance to change the name of files and programming entities like classes, methods and fields: Visual Studio name changes assistance takes into account the scope of the programming entity (that's great, but It doesn't change other entity name references: comments, etc.).
Again, darcs replace works ex post facto. The darcs replace command
works even if Web Expression has done (some) changes in the working
files.
Looks like darcs 2 has some regression related to darcs replace in move'd fils.
--
Pekka.Pessi mail at nokia.com
More information about the darcs-users
mailing list