mercurial/util.py
changeset 30328 2d996af02fd8
parent 30309 4b1af1c867fa
child 30329 dadb00a0ec0f
equal deleted inserted replaced
30327:e0d9b6aab4c5 30328:2d996af02fd8
  2470         # leave the query string escaped
  2470         # leave the query string escaped
  2471         for a in ('user', 'passwd', 'host', 'port',
  2471         for a in ('user', 'passwd', 'host', 'port',
  2472                   'path', 'fragment'):
  2472                   'path', 'fragment'):
  2473             v = getattr(self, a)
  2473             v = getattr(self, a)
  2474             if v is not None:
  2474             if v is not None:
  2475                 setattr(self, a, pycompat.urlparse.unquote(v))
  2475                 setattr(self, a, pycompat.urlunquote(v))
  2476 
  2476 
  2477     def __repr__(self):
  2477     def __repr__(self):
  2478         attrs = []
  2478         attrs = []
  2479         for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path',
  2479         for a in ('scheme', 'user', 'passwd', 'host', 'port', 'path',
  2480                   'query', 'fragment'):
  2480                   'query', 'fragment'):