Patchwork manifest: update comment to be about bytearray

login
register
mail settings
Submitter via Mercurial-devel
Date April 3, 2017, 6:31 p.m.
Message ID <546662e773f801e6ab3e.1491244289@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/19936/
State Accepted
Headers show

Comments

via Mercurial-devel - April 3, 2017, 6:31 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1491234324 25200
#      Mon Apr 03 08:45:24 2017 -0700
# Node ID 546662e773f801e6ab3eab7feb5c3ca03097bcbe
# Parent  ac69675fff1caacf143ab7f0bda668e6e325670a
manifest: update comment to be about bytearray

Looks like a leftover from 2a18e9e6ca43 (py3: use bytearray() instead
of array('c', ...) constructions, 2017-03-12).
Augie Fackler - April 3, 2017, 7:10 p.m.
On Mon, Apr 03, 2017 at 11:31:29AM -0700, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@google.com>
> # Date 1491234324 25200
> #      Mon Apr 03 08:45:24 2017 -0700
> # Node ID 546662e773f801e6ab3eab7feb5c3ca03097bcbe
> # Parent  ac69675fff1caacf143ab7f0bda668e6e325670a
> manifest: update comment to be about bytearray

queued, thanks

>
> Looks like a leftover from 2a18e9e6ca43 (py3: use bytearray() instead
> of array('c', ...) constructions, 2017-03-12).
>
> diff -r ac69675fff1c -r 546662e773f8 mercurial/manifest.py
> --- a/mercurial/manifest.py	Wed Mar 29 21:43:38 2017 +0900
> +++ b/mercurial/manifest.py	Mon Apr 03 08:45:24 2017 -0700
> @@ -591,7 +591,7 @@
>              return self._lm.text()
>
>      def fastdelta(self, base, changes):
> -        """Given a base manifest text as an array.array and a list of changes
> +        """Given a base manifest text as a bytearray and a list of changes
>          relative to that text, compute a delta that can be used by revlog.
>          """
>          delta = []
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

diff -r ac69675fff1c -r 546662e773f8 mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Mar 29 21:43:38 2017 +0900
+++ b/mercurial/manifest.py	Mon Apr 03 08:45:24 2017 -0700
@@ -591,7 +591,7 @@ 
             return self._lm.text()
 
     def fastdelta(self, base, changes):
-        """Given a base manifest text as an array.array and a list of changes
+        """Given a base manifest text as a bytearray and a list of changes
         relative to that text, compute a delta that can be used by revlog.
         """
         delta = []