[darcs-users] How to reset a file to an older state?

Thomas Schwinge tschwinge at gnu.org
Fri Apr 28 12:02:06 UTC 2006


On Thu, Apr 27, 2006 at 11:30:48PM +0930, Jonathon Mah wrote:
> On 2006-04-26, at 07:01, Thomas Schwinge wrote:
> 
> >I have a patch P (generated by `diff' or similar) to a known  
> >version V of
> >a file F in a darcs repository.  `known' means that the `hash'  
> >value of
> >the file at that state V is known.  In the meantime there have other
> >patches been applied to the repository, to the file F.
> >
> >How would I non-interactively reset F back to state V, apply P and  
> >then
> >make F up to date again, possibly creating conflicts in F?
> 
> You should be able to use darcs trackdown, with the test being a  
> script which checks the hash of the file.

As I understand it, `darcs trackdown' will also work on a temporary
checkout of the whole repository, which is what I want to avoid.


Regards,
 Thomas




More information about the darcs-users mailing list