Mercurial > hgsubversion
comparison util.py @ 265:9f0738587f94
Re-re-refix username support, add a comment so maybe I remember this time.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 13 Apr 2009 21:12:33 -0500 |
parents | d978192f0d63 |
children | 68aea59116b6 |
comparison
equal
deleted
inserted
replaced
264:112d57bb736e | 265:9f0738587f94 |
---|---|
2 import shutil | 2 import shutil |
3 | 3 |
4 from mercurial import hg | 4 from mercurial import hg |
5 from mercurial import node | 5 from mercurial import node |
6 from mercurial import util as hgutil | 6 from mercurial import util as hgutil |
7 | |
8 | |
9 def getuserpass(opts): | |
10 # DO NOT default the user to hg's getuser(). If you provide | |
11 # *any* default username to Subversion, it won't use any remembered | |
12 # username for the desired realm, breaking OS X Keychain support, | |
13 # GNOME keyring support, and all similar tools. | |
14 return opts.get('username', None), opts.get('password', '') | |
7 | 15 |
8 | 16 |
9 def version(ui): | 17 def version(ui): |
10 """Guess the version of hgsubversion. | 18 """Guess the version of hgsubversion. |
11 """ | 19 """ |