Added first chunk of functionality

- receives an e-mail via stdin, saves it
- processes the saved mail, gets the information from it (mailing list
	is the most important)
- tries to see if it's a patch, usnig git mailinfo
- moves it into a specific location afterwards
- some other junk code commented out

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Git mirroring first implementation

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Now, stderr gets ignored

Since stderr was not needed, at this moment we are not returning it.
Also, we don't use PIPE for it, in order to let the child process to
flush their own stderr, like the information about from git receive
pack.

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Core code is pretty much ready

Now, finishing and polishing it...

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Sync works correctly now + added git_cmd wrapper

The addition of a new repository, working with remoets and syncing
between upstream and downstream repositories is working now and should
be fully functional.

Since there were many git_cmd calls in the bare cache repository, the
git_bare_cmd command is a wrapper that automatically forms the git
command in a bare repository, with the feature that the command can
also be given as string instead of as list, to increase readability.

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Core functionality ready, not polished

Now, the script can process all incoming pathces, without doing any
patch dependency check. Also, the script needs polishing.

Signed-off-by: Alin Dobre <alinmd@gmail.com>
changed work branches

Signed-off-by: Alin Dobre <alinmd@gmail.com>
cleanup and fix am conditionals

- cleaned up the sout variable to only out.
- when git am fails, it should also be aborted and cleaned

Signed-off-by: Alin Dobre <alinmd@gmail.com>
moved to class based git commands

Since the function based implementation was quite ugly and repetitive,
the new class based style is now cleaner and reviewable.

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Fix for push command

- Push command was calling G.X() with more parameters.
- The already existent msg directory is now also displayed to improve
	error reporting

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Moved entirely to class based code

Now, the message handling has also been moved to a class called M().
Also, main code moved under __name__ conditional.

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Moved script into separate subdirectory + header and readme

Signed-off-by: Alin Dobre <alinmd@gmail.com>
Merge ml-sync-gerrit into script repository.