Mercurial: restore files -


I would like to restore a file which has been deleted in some Commit, and to restore it under a different name , So that it shares history, in reverse, I would like to do

  svn cp src  

. Use peg modification What is equal in Mercury?

I do not think Mercurial has an inherent way to do this. But I think that you can achieve the same effect:

  hg up -C REV # Update with a copy of the file & lt; Modify file in question & gt; Hg committed # Create second head on the basis of the old revision # Mix two heads in one # Note: Make sure the file is present in the HG command HG MV MYFILE  

. The file holds all its old history, because the best Mercurial can track it.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -