[darcs-users] [Haskell-cafe] Reverting to any old version using Darcs
Max Battcher
me at worldmaker.net
Mon Apr 6 01:45:06 UTC 2009
Eric Kow wrote:
> On Wed, Apr 1, 2009 at 11:25 PM, Claus Reinke <claus.reinke at talk21.com>wrote:
>>> Perhaps the rumours refer to non-tagged "versions"? In conventional
>>> non-distributed version control systems, one
>>> might go back to the version on a specific date, while with
>>> darcs, that only makes sense wrt a specific repo (I think?).
>
> On Wed, Apr 01, 2009 at 23:43:36 +0200, Peter Verswyvelen wrote:
>> Yes, that might be the rumor indeed, it surely sounds like it :)
>> Darcs is really very different, so it takes a while to get used to it when
>> coming from other systems.
>
> This has been said in one of the earlier responses, but I thought it was
> worth repeating: darcs has a notion of context files which can be used to
> retrieve exactly another version of a repository with darcs get
> --context name-of-file.
>
> You can generate such files by invoking darcs changes --context. For
> that matter, patch bundles (as created by darcs send) can also be used
> as context files. It's sometimes quite handy to do something like darcs
> get --context foo.dpatch to retrieve exactly the version of the
> repository a patch bundle was meant to apply to.
>
> This is one of the little known features of darcs, and should probably
> appear in some kind of darcs tips series of blog articles :-)
Including perhaps a revision/review of this old post:
http://blog.worldmaker.net/2008/mar/27/darcs-and-useful-context-file/
(Hard to believe it is over a year old already.)
--
--Max Battcher--
http://worldmaker.net
More information about the darcs-users
mailing list