From 17dab3c5a60c7976c9339f7b0efc0a98071b1b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Fri, 24 Nov 2023 11:41:13 +0000 Subject: [PATCH] Ignore .sl directory the same way as .hg. The .sl directory is used by Sapling (https://sapling-scm.com/) so it should be handled like the other SCM directories. Signed-off-by: Carmen Bianca BAKKER --- CHANGELOG.md | 2 ++ src/reuse/__init__.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6d4206a7..ffb2dcc0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,8 @@ CLI command and its behaviour. There are no guarantees of stability for the currently exits early. To automatically create a .license file for unrecognised files, `--fallback-dot-license` has been added. (#823, #851, #853, #859; this took a while to get right.) +- Ignore `.sl` directory as used by [Sapling SCM](https://sapling-scm.com/). + (#867) ### Changed diff --git a/src/reuse/__init__.py b/src/reuse/__init__.py index 1c567da92..7935d94e8 100644 --- a/src/reuse/__init__.py +++ b/src/reuse/__init__.py @@ -54,6 +54,7 @@ _IGNORE_DIR_PATTERNS = [ re.compile(r"^\.git$"), re.compile(r"^\.hg$"), + re.compile(r"^\.sl$"), # Used by Sapling SCM re.compile(r"^LICENSES$"), re.compile(r"^\.reuse$"), ]