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 support for Sapling as a VCS as well. #899

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Flameeyes
Copy link
Contributor

Add support for Sapling as a VCS as well.

I introduced support to ignore the .sl directory already, but that did
not include support for the VCS interface.

As a VCS, Sapling uses effectively the same interface as Mercurial,
although notably it does not support Mercurial's .hgignore file, nor
does it invent a new one: it uses .gitignore.

I opted for copying the Mercurial implementation though, it looks
more adequate.

I introduced support to ignore the `.sl` directory already, but that did
not include support for the VCS interface.

As a VCS, Sapling uses effectively the same interface as Mercurial,
although notably it does not support Mercurial's `.hgignore` file, nor
does it invent a new one: it uses `.gitignore`.

I opted for copying the Mercurial implementation though, it looks
more adequate.
Copy link
Member

@carmenbianca carmenbianca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Flameeyes! Thanks for the pull request. This looks pretty good, but is missing some stuff. The #858 PR is a good example of things that need to be added:

  • A change log entry
  • A mention in README
  • A small collection of tests
  • A workflow where Sapling is installed and tested

Comment on lines +293 to +294
if directory is None:
directory = Path.cwd()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This segment of code isn't needed. I'll remove it from the other methods too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #969

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

Successfully merging this pull request may close these issues.

2 participants