unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-guix@gnu.org
Subject: Re: Rollback problems
Date: Mon, 28 Jan 2013 23:10:34 +0100	[thread overview]
Message-ID: <201301282310.34473.andreas@enge.fr> (raw)
In-Reply-To: <87libe4kvs.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

Am Sonntag, 27. Januar 2013 schrieb Ludovic Courtès:
> ludo@gnu.org (Ludovic Courtès) skribis:
> > Having agreed on linear history, it seems that (a) the current
> > behavior is broken because roll-backs don’t actually follow the
> > history, as illustrated previously, and (b) the generation from which
> > we are rolling back must be deleted.

It seems to work: I rolled back from 21 to 20, 19, 18, 17; then removed a 
package and am at 18 now. Then removed another package and arrived at 19, 
where the previous 18 and 19 were overwritten.

Personally, I would have deleted all (consecutive) generations starting 
with 19 after the first roll-back and additional package removal; now we 
still have pieces of old history lying around, the (old and) current 20 is 
not a successor of the current 19 any more.

But I can also live with the current situation.

Am Sonntag, 27. Januar 2013 schrieb Ludovic Courtès:
> Andreas Enge <andreas@enge.fr> skribis:
> > $ guix-package --roll-back
> > error: no previous profile; not rolling back
> > 
> > No links are changed. I think in this case, rollback should create the
> > "empty profile" and have $PERUSER/guix-profile-1-link point to it.
> 
> Implemented in d930726.

It works also:
building path(s) `/nix/store/2gkfim0yry8sii7vhxwcivkbnfpaiqiq-user-
environment'
building user environment `/nix/store/2gkfim0yry8sii7vhxwcivkbnfpaiqiq-
user-environment' with 0 packages...
switching from generation 1 to 0

Thanks!

Andreas

[-- Attachment #2: Type: text/html, Size: 6541 bytes --]

  reply	other threads:[~2013-01-28 22:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23 20:48 Rollback problems Andreas Enge
2013-01-23 22:58 ` Ludovic Courtès
2013-01-23 23:17   ` Andreas Enge
2013-01-24 11:34     ` Ludovic Courtès
2013-01-24 15:33       ` Alex Sassmannshausen
2013-01-24 15:59         ` Ludovic Courtès
2013-01-24 20:52       ` Ludovic Courtès
2013-01-25  2:44         ` Nikita Karetnikov
2013-01-25 13:54           ` Alex Sassmannshausen
2013-01-25 14:48             ` Andreas Enge
2013-01-25 14:53           ` Ludovic Courtès
2013-01-27 17:05         ` Ludovic Courtès
2013-01-28 22:10           ` Andreas Enge [this message]
2013-01-28 22:44             ` Ludovic Courtès
2013-01-25  3:08     ` Nikita Karetnikov
2013-01-27 17:06 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201301282310.34473.andreas@enge.fr \
    --to=andreas@enge.fr \
    --cc=bug-guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).