[darcs-users] how to handle moving code around

Michael G Schwern schwern at pobox.com
Wed Mar 30 03:31:59 UTC 2005


On Tue, Mar 29, 2005 at 05:12:01PM -0800, Sean Perry wrote:
> I have code in a file A. I would now like most of this code to end up in
> file B. Now clearly, I can do:
> 
> open A in editor, grab code
> open B in editor, deposit code
> darcs add B
> darcs record
> 
> But I would like a way for darcs to know I did the equivalent of move
> file without having moved a file.
> 
> Ideas?

darcs mv A B
open B in editor, grab code for A
open A in editor, deposit code
darcs add A
darcs record

Now darcs sees the mv and history is maintained.





More information about the darcs-users mailing list