Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to detect file/folder deletion #1

Closed
JElchison opened this issue Sep 20, 2014 · 4 comments
Closed

Add ability to detect file/folder deletion #1

JElchison opened this issue Sep 20, 2014 · 4 comments

Comments

@JElchison
Copy link
Owner

Test importing a file deletion event from Surround

@JElchison JElchison changed the title Test file delete Add ability to detect file/folder deletion Oct 3, 2014
@JElchison
Copy link
Owner Author

As is, file (and presumably folder) deletions are not properly detected in most cases, as the sscm ls command doesn't list deleted files.

I couldn't find a way to make sscm ls list deleted files.

Find another way to detect file/folder deletions, and add delete events to database file:
* Is there a way to get a list of files that existed at any time in the past?

More brainstorming is welcome.

This affects #23.

@JElchison JElchison added bug and removed test labels Oct 3, 2014
@JElchison JElchison modified the milestone: 0.5.0 release Oct 3, 2014
@JElchison
Copy link
Owner Author

Brainstorming...

What does sscm history report when run on a deleted file? If it gives useful history (including deletion event), then try running sscm history on all known files to detect deletions.

Ideas for listing all known files:

  • Via git-fast-import's ls command?
  • List all known paths/files in repo across all branches
    • Create this list via sqlite database query?

@JElchison
Copy link
Owner Author

Confirmed: sscm history on a deleted file does provide history including the delete event.

@JElchison
Copy link
Owner Author

Change find_all_files_in_branch_under_path() to find_all_files_under_path() and pass in list of branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant