<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 27/10/2016 à 09:44, YC Cheng a
écrit :<br>
</div>
<blockquote
cite="mid:CAHWCV3X1taYzBkozfV=SkHY4wbYu=FsMKNdzjF6D+6uMCvU2QA@mail.gmail.com"
type="cite">
<div dir="ltr">Reply in-line, YC<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-10-27 15:36 GMT+08:00 Didier
Roche <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:didrocks@ubuntu.com" target="_blank">didrocks@ubuntu.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<div class="gmail-m_851519627182071513moz-cite-prefix">Le
27/10/2016 à 09:18, YC Cheng a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">I found the following command works:
<div><br>
</div>
<div>snap revert --revision 29</div>
<div><br>
</div>
<div>as expected.</div>
</div>
</blockquote>
<br>
</span> Indeed,<br>
you will notice though that any new data which have been
produced after the revert by revision 20 will not be
available to the new revision 29, which may not be the
expected outcome.<br>
(So, the 2 commands are not equivalent)</div>
</blockquote>
<div><br>
</div>
<div>Yes, I saw that and that make sense to me. One idea to
make "refresh" better is: we can check sum the snap and
report more information. Or the message seem not make much
sense to me. Do you think this sounds like another bug to
fire ?</div>
</div>
</div>
</div>
</blockquote>
<br>
Hum, yeah, it could be more informative telling there is indeed a
possible revision during refresh, but that one was blacklisted (+
steps for rereverting either removing data or keeping them).<br>
<br>
<blockquote
cite="mid:CAHWCV3X1taYzBkozfV=SkHY4wbYu=FsMKNdzjF6D+6uMCvU2QA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<blockquote type="cite">
<div dir="ltr">
<div>We still need a command to list all revision
of a snap install in the system (we can get that
from 'df', but still better to get all info from
a command) ?<br>
</div>
</div>
</blockquote>
</span> +1, as we had "snappy list -v" in 15.04.</div>
</blockquote>
<div><br>
</div>
<div>Fire a bug: <a moz-do-not-send="true"
href="https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1637096">https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1637096</a></div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-HOEnZb"><font
color="#888888"> Didier</font></span>
<div>
<div class="gmail-h5"><br>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>YC</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-10-27 14:38
GMT+08:00 Didier Roche <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:didrocks@ubuntu.com"
target="_blank">didrocks@ubuntu.com</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span>
<div
class="gmail-m_851519627182071513m_8209758444123188224moz-cite-prefix">Le
27/10/2016 à 08:32, YC Cheng a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">I think we need a way
to just Un-revert from rev 20 to rev
29 without remove rev 29.
<div><br>
</div>
<div>Shall we fire a bug for that if
we don't have such method exists
now ?<br>
</div>
</div>
</blockquote>
<br>
</span> I think it's not that easy
considering the associated data. You need
to swap them to restart from the latest
version of data from rev 20 to copy to 29.
Explicitely removing that version makes
sense in that context. Have an unrevert
command won't convey that notion.<span
class="gmail-m_851519627182071513HOEnZb"><font
color="#888888"><br>
<br>
Didier</font></span>
<div>
<div
class="gmail-m_851519627182071513h5"><br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-10-27
14:13 GMT+08:00 Didier Roche <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:didrocks@ubuntu.com"
target="_blank">didrocks@ubuntu.com</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Le
27/10/2016 à 03:01, Marcos
Alano a écrit :<br>
> Hello guys,<br>
<br>
Hey Marcos,<br>
<span>><br>
><br>
> Sorry if I'm in the
wrong mailing list. That's
the only one about snap i<br>
> could found. The
question is: how I
revert-revert (un-revert) a
snap? I<br>
> can install a snap:<br>
><br>
> (sudo snap install
hello) after thatr I can
upgrade a snap (snap refresh<br>
> hello --channel=beta
hello) and finally revert
(sudo snap revert hello).<br>
> But after that if I try
to re-upgrade I just can't:<br>
><br>
> $ sudo snap refresh
--beta hello<br>
><br>
> error: cannot refresh
"hello": snap "hello" has no
updates available<br>
><br>
> I'm doing something
wrong?<br>
<br>
</span>You are not doing it
wrong :) The revert command
"blacklists" this<br>
particular snap revisions on
purpose, so that you don't
reupdate to it.<br>
However, there is a way to get
back to it! You can remove
explicitely<br>
that revision (without
removing the current snap).
Data associated to<br>
the reverted revision will be
cleaned up as well.<br>
Then, you can refresh.<br>
<br>
In a concrete example with the
hello snap:<br>
20 is the revision in the
stable channel, 29 corresponds
to the revision<br>
in the beta channel.<br>
<br>
# Install and update<br>
$ snap install hello<br>
$ snap list hello<br>
Name Version Rev
Developer Notes<br>
hello 2.10 20
canonical -<br>
$ snap refresh hello --beta<br>
$ snap list hello<br>
Name Version Rev
Developer Notes<br>
hello 2.10.1 29
canonical -<br>
<br>
# Revert<br>
$ snap revert hello<br>
$ snap list hello<br>
Name Version Rev
Developer Notes<br>
hello 2.10 20
canonical -<br>
<br>
# Remove reverted version (and
associated data)<br>
$ snap remove hello
--revision=29<br>
hello removed<br>
$ snap list hello<br>
Name Version Rev
Developer Notes<br>
hello 2.10 20
canonical -<br>
<br>
# Reupdate<br>
$ snap refresh hello --beta<br>
$ snap list hello<br>
Name Version Rev
Developer Notes<br>
hello 2.10.1 29
canonical -<br>
<br>
I hope that answer your
questions :)<br>
Cheers,<br>
Didier<br>
<div
class="gmail-m_851519627182071513m_8209758444123188224HOEnZb">
<div
class="gmail-m_851519627182071513m_8209758444123188224h5"><br>
<br>
--<br>
Snapcraft mailing list<br>
<a moz-do-not-send="true"
href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or
unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/snapcraft"
rel="noreferrer"
target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset
class="gmail-m_851519627182071513m_8209758444123188224mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</div>
</div>
</div>
<br>
--<br>
Snapcraft mailing list<br>
<a moz-do-not-send="true"
href="mailto:Snapcraft@lists.snapcraft.io"
target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/snapcraft"
rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset
class="gmail-m_851519627182071513mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</div>
</div>
</div>
<br>
--<br>
Snapcraft mailing list<br>
<a moz-do-not-send="true"
href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/snapcraft"
rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>