René Pfeuffer
cc4bd6ddd1
Use bearer tokens to authenticate hg hook callbacks
2019-03-28 08:40:56 +01:00
Sebastian Sdorra
352bfe7f5a
fixed mercurial PreReceiveRepositoryHooks
...
The problem seems to be that guice had multiple options for injecting
HgContext. HgContextProvider bound via Module and HgContext bound void
RequestScoped annotation. It looks like that Guice 4 injects randomly
the one or the other, in SCMv1 (Guice 3) everything works as expected.
To fix the problem we have created a new class annotated with
RequestScoped, which holds an instance of HgContext. This way only the
HgContextProvider is used for injection.
2019-02-13 12:30:40 +01:00
Sebastian Sdorra
5c44df3e4c
use userAgentStartsWith method for user agent check
2014-03-16 11:49:44 +01:00
Sebastian Sdorra
b131d4b804
improve error handling for failed authentication and not enough privileges
2014-03-15 16:12:14 +01:00
Sebastian Sdorra
86bd700bf6
implement new hook api for mercurial repositories
2013-07-22 11:40:03 +02:00
Sebastian Sdorra
9adc65d9e5
util classes should be final with a private constructor
2013-01-31 10:26:16 +01:00
Sebastian Sdorra
5e815cecc0
fix defect hg.bat from package installation
2012-08-11 15:40:38 +02:00
Sebastian Sdorra
fd9df10176
fix mercurial python path for commit, source and blame on windows
2012-03-03 13:12:19 +01:00
Sebastian Sdorra
d623de6fb3
remove unused code
2012-02-12 17:57:39 +01:00
Sebastian Sdorra
20318c4f2c
remove unused methods
2011-10-08 15:37:30 +02:00
Sebastian Sdorra
47f0272f56
improve logging
2011-09-30 08:37:48 +02:00
Sebastian Sdorra
860e9367c9
improve performance of mercurial changesetviewer
2011-09-29 14:57:00 +02:00
Sebastian Sdorra
58b935794e
added getResultFromScript to HgUtil
2011-09-22 19:26:56 +02:00
Sebastian Sdorra
99fd08ef49
added createPythonProcess method to HgUtil
2011-09-22 18:57:08 +02:00
Sebastian Sdorra
fa1d433a36
move core plugins back to main repository, because of a broken release management
2011-07-01 18:43:26 +02:00