live-archive icon indicating copy to clipboard operation
live-archive copied to clipboard

Revert jump to the most recent revision

Open bradynpoulsen opened this issue 9 years ago • 2 comments

I made a test file I'm tracking with live-archive. I have made several changes and saved after each one and I can view each of those changes as a different revision. When I find the revision I want (ie, Version 2 out of 5), I click "Revert" expecting it to update my test file to that point in history, but instead just jumps to Version 5 out of 5 and leaves the test file untouched.

Am I just expecting the wrong result of that button?

bradynpoulsen avatar Jan 07 '16 20:01 bradynpoulsen

No, it is supposed to work as you want. It seems like live-archive is being restarted.

What kind of file is test? Can you send a copy to [email protected]?

On Thu, Jan 7, 2016 at 12:56 PM, Bradyn Poulsen [email protected] wrote:

I made a test file I'm tracking with live-archive. I have made several changes and saved after each one and I can view each of those changes as a different revision. When I find the revision I want (ie, Version 2 out of 5), I click "Revert" expecting it to update my test file to that point in history, but instead just jumps to Version 5 out of 5 and leaves the test file untouched.

Am I just expecting the wrong result of that button?

— Reply to this email directly or view it on GitHub https://github.com/mark-hahn/live-archive/issues/15.

mark-hahn avatar Jan 07 '16 21:01 mark-hahn

FooBar.php

<?php

class FooBar
{
    protected $name;

    public function __construct($name)
    {
        assert(func_num_args() === 1);
        assert('is_string($name)');

        $this->name = $name;
    }

    public function sayHello()
    {
        assert(func_num_args() === 0);

        echo "Hello there, {$this->name}";
    }
}

bradynpoulsen avatar Jan 08 '16 01:01 bradynpoulsen