Hi there,

Is there a fossil "copy" command?  There's add, mv, rm but no cp?

It's a neat feature of subversion that you can copy a file either from the 
current checked-out tree or from somewhere else in time and space from the 
repository, thereby keeping a tracable history intact.

At the moment, please forgive me if I've overlooked it, when a file is copied 
its link to its previous versions is lost and therefore diffs are not easily 
available, unless the user knows where the previous version is.

Would this be a feature worth considering?  As a test, I did a bit of a hack in 
terms of manually updating the vfile table via sqlite and setting 'origname' to 
the original file, and this sort-of worked, although it probably doesn't work 
for pulling a copy directly from the repository which may or may not exist as 
such in the current checked-out branch, and the timeline of course didn't link 
it correctly either.

If it doesn't already exist, and were to be added, in my opinion the copy 
command should at least support the same syntax as fossil mv, but with an 
optional --from option:

fossil cp ?OPTIONS? ORIG COPY
fossil cp ?OPTIONS? ORIG... DIR

where OPTIONS can be:
  --from REVISION  = copy from the specified check-in

Good idea / bad idea?

I'm happy to have a go at patching fossil to support this, if someone can give 
me an quick overview of how to go about it in the correct way since I'm not to 
familiar with fossil's internals yet.

Cheers
Andy


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to