Please see attached patches on this ticket:

http://trac-hg.assembla.com/mercurialeclipse/ticket/127

Attached are two patches to allow mercurial eclipse to retrieve both
usernames and passwords in the push and pull pages.

Note that the problem was that the plugin was using "hg paths" to read
the .hg/hgrc paths section, but hg paths blanks out the password. In
these patches, I included code from ini4j (http://
ini4j.sourceforge.net/index.html) so that the plugin can read the hgrc
file directly and pull the passwords out.

I also pre-populate the username and password fields in the pages,
which I think works better from a usability standpoint.

I refactored the the code that gets locations to return
HgRepositoryLocation objects directly to the page wizard class thingy.
What would be more interesting is to allow "re-populating" the
username/password fields if different repos are selected from the drop-
down combo. This should be a bit easier now that this information is
directly available there, but I haven't implemented it yet.

Note also that I added a getDisplayLocation which keeps the username
in the repo location, but gets rid of the password (for security,
obviously). What I might have done is completely omit the username
since it is populated in the user field anyway. I might do this if I
change it to auto-repopulate when selecting different repos.


In general, if somebody could give me a bit of advice as to how stuff
is getting stored in .hg/hgrc in the first place (and how this relates
to the stuff stored in .metadata/...blah) that would be extremely
useful.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MercurialEclipse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mercurialeclipse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to