[darcs-users] discussing 'darcs unpull --tag' and best practices for a production rollback
David Roundy
droundy at abridgegame.org
Sat Jan 8 13:12:33 UTC 2005
On Fri, Jan 07, 2005 at 03:41:04PM +0000, Mark Stosberg wrote:
> Hello,
>
> I was just looking at the docs for 'darcs unpull' and noticed
> that '--tag' is not documented.
>
> Here's what I figured out that it does (by trying it):
>
> It removes a single tag patch, based on the name given.
>
> Correct?
Right.
> A related question:
>
> What is the "best practice" for rolling back a production 'checkout' to
> a previous known-good version?
>
> I had hoped I could 'unpull' back to a previous tag, but it appears I
> can only unpull a tag at at time, which would be a pain.
>
> My particular case is for a running website, so I would like
> to maximize the time the production instance is unavailable.
>
> Perhaps I'll need to prepare a second repo and then quickly switch them:
>
> mv production production_old; mv production_new production;
That's what I'd do. get --to-tag should make getting the older version
pretty painless.
We could add a --to-tag or --from-tag flag to unpull (probably
--from-tag/--from-patch), since this is a pretty common complaint, that it
takes ages to unpull back to an older version.
--
David Roundy
http://www.darcs.net
More information about the darcs-users
mailing list