From 80f95e86014f5fed6fa07435c005708cb63d464f Mon Sep 17 00:00:00 2001 From: Durvesh Pilankar Date: Fri, 26 Jun 2026 16:01:59 -0700 Subject: [PATCH] scm: fix duplicated-word typos in docstrings/comments Removes duplicated words ('for for', 'the the', 'a a') in docstrings and comments across rebase, crecord, patch, peer, and transaction modules. --- eden/scm/sapling/crecord.py | 2 +- eden/scm/sapling/ext/rebase.py | 2 +- eden/scm/sapling/patch.py | 2 +- eden/scm/sapling/peer.py | 2 +- eden/scm/sapling/transaction.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/eden/scm/sapling/crecord.py b/eden/scm/sapling/crecord.py index 194ff4c5acb71..432e68282f928 100644 --- a/eden/scm/sapling/crecord.py +++ b/eden/scm/sapling/crecord.py @@ -1289,7 +1289,7 @@ def printitem( self, item=None, ignorefolding=False, recursechildren=True, towin=True ): """ - use __printitem() to print the the specified item.applied. + use __printitem() to print the specified item.applied. if item is not specified, then print the entire patch. (hiding folded elements, etc. -- see __printitem() docstring) """ diff --git a/eden/scm/sapling/ext/rebase.py b/eden/scm/sapling/ext/rebase.py index d5098ee677349..6890707e29e7a 100644 --- a/eden/scm/sapling/ext/rebase.py +++ b/eden/scm/sapling/ext/rebase.py @@ -1263,7 +1263,7 @@ def rebase(ui, repo, templ=None, **opts): singletransaction = True By default, rebase writes to the working copy, but you can configure it - to run in-memory for for better performance, and to allow it to run if the + to run in-memory for better performance, and to allow it to run if the current checkout is dirty:: [rebase] diff --git a/eden/scm/sapling/patch.py b/eden/scm/sapling/patch.py index 23861463659e4..23e440fdc2e23 100644 --- a/eden/scm/sapling/patch.py +++ b/eden/scm/sapling/patch.py @@ -2948,7 +2948,7 @@ def diffui(*args, **kw): def _filepairs(ctx1, ctx2, modified, added, removed, copy, opts): """generates tuples (f1, f2, copyop), where f1 is the name of the file - before and f2 is the the name after. For added files, f1 will be None, + before and f2 is the name after. For added files, f1 will be None, and for removed files, f2 will be None. copyop may be set to None, 'copy' or 'rename' (the latter two only if opts.git is set).""" gone = set() diff --git a/eden/scm/sapling/peer.py b/eden/scm/sapling/peer.py index 43eeb94586143..73b01d4c6247f 100644 --- a/eden/scm/sapling/peer.py +++ b/eden/scm/sapling/peer.py @@ -31,7 +31,7 @@ class batcher: """base class for batches of commands submittable in a single request All methods invoked on instances of this class are simply queued and - return a a future for the result. Once you call submit(), all the queued + return a future for the result. Once you call submit(), all the queued calls are performed and the results set in their respective futures. """ diff --git a/eden/scm/sapling/transaction.py b/eden/scm/sapling/transaction.py index c63bef5d83348..51e00708b9bac 100644 --- a/eden/scm/sapling/transaction.py +++ b/eden/scm/sapling/transaction.py @@ -410,7 +410,7 @@ def addfilegenerator(self, genid, filenames, genfunc, order=0, location=""): generator will be executed. The `location` arguments may be used to indicate the files are located - outside of the the standard directory for transaction. It should match + outside of the standard directory for transaction. It should match one of the key of the `transaction.vfsmap` dictionary. In a lockfree transaction, filenames must be tracked by metalog.