Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 43077:687b865b95ad
formatting: byteify all mercurial/ and hgext/ string literals
Done with
python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py')
black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**')
# skip-blame mass-reformatting only
Differential Revision: https://phab.mercurial-scm.org/D6972
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:48:39 -0400 |
parents | 2372284d9457 |
children | beed7ce61681 |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Sun Oct 06 09:45:02 2019 -0400 +++ b/mercurial/interfaces/repository.py Sun Oct 06 09:48:39 2019 -0400 @@ -13,7 +13,7 @@ # When narrowing is finalized and no longer subject to format changes, # we should move this to just "narrow" or similar. -NARROW_REQUIREMENT = 'narrowhg-experimental' +NARROW_REQUIREMENT = b'narrowhg-experimental' # Local repository feature string. @@ -352,7 +352,7 @@ if name in caps: return True - name = '%s=' % name + name = b'%s=' % name for cap in caps: if cap.startswith(name): return cap[len(name) :] @@ -365,8 +365,8 @@ raise error.CapabilityError( _( - 'cannot %s; remote repository does not support the ' - '\'%s\' capability' + b'cannot %s; remote repository does not support the ' + b'\'%s\' capability' ) % (purpose, name) ) @@ -1025,7 +1025,7 @@ def get(path, default=None): """Obtain the node value for a path or a default value if missing.""" - def flags(path, default=''): + def flags(path, default=b''): """Return the flags value for a path or a default value if missing.""" def copy(): @@ -1746,7 +1746,7 @@ pass def commit( - text='', + text=b'', user=None, date=None, match=None, @@ -1766,7 +1766,7 @@ """Inform the repository that nodes have been destroyed.""" def status( - node1='.', + node1=b'.', node2=None, match=None, ignored=False,