Commits

Augie Fackler committed ab6f165

Handle hidepassword move from url to util.

Comments (0)

Files changed (1)

 else:
     from mercurial.patch import updatedir
 
+try:
+    hidepassword = util.hidepassword
+except AttributeError:
+    hidepassword = url.hidepassword
+
 # almost entirely stolen from the git-rebase--interactive.sh source
 editcomment = """
 
         if revs:
             revs = [repo.lookup(rev) for rev in revs]
 
-        ui.status(_('comparing with %s\n') % url.hidepassword(dest))
+        ui.status(_('comparing with %s\n') % hidepassword(dest))
         parent = findoutgoing(repo, other, force=opts.get('force'))
     else:
         if opts.get('force'):