Recovery file directly from log

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Recovery file directly from log

David Rodrigues
This post has NOT been accepted by the mailing list yet.
On log screen, we can see file list from commit. A good option is allow you recovery it, without "save as" one-by-one.

Feature Request:
Allow to recovery one or more files directly from commit files;

How it Works:
When user select one or more file, right-click to context menu, and click "Recovery".
It need show a message like "It will recovery 34 files in 4 differents folders. Some files will be overwrited".

If user click "yes", files will be recovered and files that are overwritten are staged so overwrited.

Example:
My files are: a.php, b.php, c.php, d.php
Old commit files: a.php, b.php, c.php
My current stage: a.php is changed or staged
So I recovery only: a.php, b.php
Will be asked: "It will recovery 2 files on root folder. One file will be overwrited, but staged before it."
I do accept: a.php is staged with current version, so overwrited with old file, b.php is overwrited, c.php is not recovered.
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

WORMSS
Would be quicker from a users perspective to bundle it into a zip file with the structure in tact and let the user  do what they want with the zip file.
They could extract it to the root which would filter down into all the correct locations.. Or extract to a new location (for what ever reason they may have).
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
There is already "Save As" in the Files view ... isn't that sufficient?

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com



02/11/2015 09:30 - WORMSS [hidden email] [smartgit] wrote:

> Would be quicker from a users perspective to bundle it into a zip file with
> the structure in tact and let the user  do what they want with the zip file.
> They could extract it to the root which would filter down into all the
> correct locations.. Or extract to a new location (for what ever reason they
> may have).
>
>
>
> --
> View this message in context:
> http://smartgit.3668570.n2.nabble.com/Recovery-file-directly-from-log-tp7575553p7575559.html
> Sent from the SmartGit mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
The "save as" is different feature and not work fine most often.
 

 Comparison between two methods:
 - The recovery method allow select one or more items;
 - The recovery method will copy selected items to original directory, overwriting and staging old files;
 - The save method not allow select more than one item;
 - For each save, you need walk to directory of file;
 - If you need recovery, for instance, 10 items, you need walk 10 times to directory of each file;
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
>  - The recovery method will copy selected items to original directory, overwriting
> and staging old files;

I would not like to stage anything, because a) it would be more complicated, b) harder to understand and c) silently overwrite already staged changes.

>  - For each save, you need walk to directory of file;
>  - If you need recovery, for instance, 10 items, you need walk 10 times to
> directory of each file;

Er, really? Works fine for me. What operating system you are using?

--
Best regards,
Thomas Singer
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


02/11/2015 21:10 - [hidden email] [smartgit] wrote:

> The "save as" is different feature and not work fine most often.
>  
>
>  Comparison between two methods:
>  - The recovery method allow select one or more items;
>  - The recovery method will copy selected items to original directory, overwriting
> and staging old files;
>  - The save method not allow select more than one item;
>  - For each save, you need walk to directory of file;
>  - If you need recovery, for instance, 10 items, you need walk 10 times to
> directory of each file;
>
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
I'm on SmartGit 6.5.5 (build #4176), Windows 8.1, Java 1.8.0 (31-b13). Here, if I select more than one file, the "save as" is disabled.
 

 View image: Cannot Save http://postimg.org/image/ocvl2jawf/ 
 
 http://postimg.org/image/ocvl2jawf/ 
 
 View image: Cannot Save http://postimg.org/image/ocvl2jawf/ http://postimg.org/image/ocvl2jawf/ Link copy to clipboard http://s3.postimg.org/57sbsrw8j/Cannot_Save.png Direct Link copy to clipboard  
 
 
 
 View on postimg.org http://postimg.org/image/ocvl2jawf/ 
 Preview by Yahoo
 
 
 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
I was not talking about selecting multiple files, but about having to choose the directory on each save.

--
Best regards,
Thomas Singer
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


02/12/2015 15:10 - [hidden email] [smartgit] wrote:

> I'm on SmartGit 6.5.5 (build #4176), Windows 8.1, Java 1.8.0 (31-b13). Here, if I
> select more than one file, the "save as" is disabled.
>  
>
>  View image: Cannot Save http://postimg.org/image/ocvl2jawf/ 
>  
>  http://postimg.org/image/ocvl2jawf/ 
>  
>  View image: Cannot Save http://postimg.org/image/ocvl2jawf/
> http://postimg.org/image/ocvl2jawf/ Link copy to clipboard
> http://s3.postimg.org/57sbsrw8j/Cannot_Save.png Direct Link copy to clipboard  
>  
>  
>  
>  View on postimg.org http://postimg.org/image/ocvl2jawf/ 
>  Preview by Yahoo
>  
>  
>  
>
>  
>
>  
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
I think that it is not pratical if you need recovery a lot files.  Is not too common, right, but it happen.
 

 Maybe enable support to "save as" with multiple selection will work.
 In this case, to avoid confusion, just ask for each file path (like if you do with one file only).
Reply | Threaded
Open this post in threaded view
|

Re: Recovery file directly from log

SmartGit mailing list
I've added your RFE to our issue tracker (SG-9196).

--
Best regards,
Thomas Singer
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


02/12/2015 17:10 - [hidden email] [smartgit] wrote:

> I think that it is not pratical if you need recovery a lot files.  Is not too
> common, right, but it happen.
>  
>
>  Maybe enable support to "save as" with multiple selection will work.
>  In this case, to avoid confusion, just ask for each file path (like if you do
> with one file only).
>