Patchwork D5816: global: make some docstrings raw strings

login
register
mail settings
Submitter phabricator
Date Feb. 4, 2019, 11:36 p.m.
Message ID <8ce4ceb83062e94577550af19d43f37c@localhost.localdomain>
Download mbox | patch
Permalink /patch/38402/
State Not Applicable
Headers show

Comments

phabricator - Feb. 4, 2019, 11:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0f64091cc851: global: make some docstrings raw strings (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5816?vs=13743&id=13776

REVISION DETAIL
  https://phab.mercurial-scm.org/D5816

AFFECTED FILES
  hgext/rebase.py
  mercurial/bookmarks.py
  mercurial/dagop.py
  setup.py

CHANGE DETAILS




To: indygreg, martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -666,7 +666,7 @@ 
             self.addlongpathsmanifest()
 
     def addlongpathsmanifest(self):
-        """Add manifest pieces so that hg.exe understands long paths
+        r"""Add manifest pieces so that hg.exe understands long paths
 
         This is an EXPERIMENTAL feature, use with care.
         To enable long paths support, one needs to do two things:
diff --git a/mercurial/dagop.py b/mercurial/dagop.py
--- a/mercurial/dagop.py
+++ b/mercurial/dagop.py
@@ -142,7 +142,7 @@ 
 
 def revancestors(repo, revs, followfirst=False, startdepth=None,
                  stopdepth=None, cutfunc=None):
-    """Like revlog.ancestors(), but supports additional options, includes
+    r"""Like revlog.ancestors(), but supports additional options, includes
     the given revs themselves, and returns a smartset
 
     Scan ends at the stopdepth (exlusive) if specified. Revisions found
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -44,7 +44,7 @@ 
     return fp
 
 class bmstore(object):
-    """Storage for bookmarks.
+    r"""Storage for bookmarks.
 
     This object should do all bookmark-related reads and writes, so
     that it's fairly simple to replace the storage underlying
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -1278,7 +1278,7 @@ 
     return stats
 
 def adjustdest(repo, rev, destmap, state, skipped):
-    """adjust rebase destination given the current rebase state
+    r"""adjust rebase destination given the current rebase state
 
     rev is what is being rebased. Return a list of two revs, which are the
     adjusted destinations for rev's p1 and p2, respectively. If a parent is