gimrr.git
5 years agomake: sed VER/REL in deb control file
Frantisek Hrbata [Mon, 4 Jan 2021 17:16:41 +0000 (18:16 +0100)]
make: sed VER/REL in deb control file

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodeb: use VER/REL from Makefile
Frantisek Hrbata [Mon, 4 Jan 2021 17:15:58 +0000 (18:15 +0100)]
deb: use VER/REL from Makefile

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodeb: depends on python3-gssapi
Frantisek Hrbata [Mon, 4 Jan 2021 17:06:00 +0000 (18:06 +0100)]
deb: depends on python3-gssapi

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agorpm: requires python3-gssapi
Frantisek Hrbata [Mon, 4 Jan 2021 17:05:15 +0000 (18:05 +0100)]
rpm: requires python3-gssapi

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomake: add gimrr krb auth scripts
Frantisek Hrbata [Mon, 4 Jan 2021 16:57:44 +0000 (17:57 +0100)]
make: add gimrr krb auth scripts

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogimrr-register-krb: client for adding pub key to server with krb auth
Frantisek Hrbata [Mon, 4 Jan 2021 16:54:14 +0000 (17:54 +0100)]
gimrr-register-krb: client for adding pub key to server with krb auth

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogimrr-server-krb: simple server for adding public keys with krb auth
Frantisek Hrbata [Mon, 4 Jan 2021 16:53:38 +0000 (17:53 +0100)]
gimrr-server-krb: simple server for adding public keys with krb auth

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogimrrdataprot: initial version
Frantisek Hrbata [Mon, 4 Jan 2021 16:52:54 +0000 (17:52 +0100)]
gimrrdataprot: initial version

Simple protocol to be used for adding user public keys via krb
authentication.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomake: bump version to 0.3 v0.3
Frantisek Hrbata [Mon, 28 Dec 2020 14:02:14 +0000 (15:02 +0100)]
make: bump version to 0.3

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: add Reply-To header to mbox for MR description and patches
Frantisek Hrbata [Sun, 27 Dec 2020 17:53:48 +0000 (18:53 +0100)]
mrlib: add Reply-To header to mbox for MR description and patches

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add vn description for git-mr-show
Frantisek Hrbata [Sun, 27 Dec 2020 12:27:11 +0000 (13:27 +0100)]
doc: add vn description for git-mr-show

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: don't call git-log in comments2mrs if there are no mboxes
Frantisek Hrbata [Sun, 27 Dec 2020 12:21:18 +0000 (13:21 +0100)]
mrlib: don't call git-log in comments2mrs if there are no mboxes

If there are not mboxes git log --stdin gets stuck waiting on input.
In such case return empty dict.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add missing ending quotation mark in git-mr-show examples
Frantisek Hrbata [Sun, 27 Dec 2020 11:38:44 +0000 (12:38 +0100)]
doc: add missing ending quotation mark in git-mr-show examples

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-show: use set instead of dict for tag listing
Frantisek Hrbata [Sun, 27 Dec 2020 11:26:28 +0000 (12:26 +0100)]
git-mr-show: use set instead of dict for tag listing

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: ignore batch separator line from git-cat-file
Frantisek Hrbata [Sun, 27 Dec 2020 11:25:51 +0000 (12:25 +0100)]
mrlib: ignore batch separator line from git-cat-file

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add clone url for contribution v0.2
Frantisek Hrbata [Tue, 22 Dec 2020 12:27:12 +0000 (13:27 +0100)]
doc: add clone url for contribution

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit: ignore python's bytecode files
Frantisek Hrbata [Tue, 22 Dec 2020 11:23:27 +0000 (12:23 +0100)]
git: ignore python's bytecode files

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomake: add deb target
Frantisek Hrbata [Tue, 22 Dec 2020 11:18:22 +0000 (12:18 +0100)]
make: add deb target

This builds just a very basic debian binary package.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodeb: initial version of control file for deb package
Frantisek Hrbata [Tue, 22 Dec 2020 11:03:25 +0000 (12:03 +0100)]
deb: initial version of control file for deb package

This is really basic debian binary package.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agorpm: set version and release from makefile variables
Frantisek Hrbata [Tue, 22 Dec 2020 11:01:33 +0000 (12:01 +0100)]
rpm: set version and release from makefile variables

Don't use hardcoded ver/rel in spec.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomake: define RELEASE and VERSION variables
Frantisek Hrbata [Tue, 22 Dec 2020 11:13:26 +0000 (12:13 +0100)]
make: define RELEASE and VERSION variables

Add RELEASE and VERSION so we can use them instead of values
hardcoded in gimrr.spec.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add doc about configuration and update refs info
Frantisek Hrbata [Tue, 22 Dec 2020 09:07:39 +0000 (10:07 +0100)]
doc: add doc about configuration and update refs info

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: tags in tags ref has to match mr and user on server
Frantisek Hrbata [Mon, 21 Dec 2020 11:23:53 +0000 (12:23 +0100)]
doc: tags in tags ref has to match mr and user on server

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: describe push rules in more detail
Frantisek Hrbata [Sun, 20 Dec 2020 21:28:55 +0000 (22:28 +0100)]
doc: describe push rules in more detail

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: git-mr-create add info about default tags
Frantisek Hrbata [Sun, 20 Dec 2020 14:56:22 +0000 (15:56 +0100)]
doc: git-mr-create add info about default tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add info about tag restriction
Frantisek Hrbata [Sun, 20 Dec 2020 13:25:11 +0000 (14:25 +0100)]
doc: add info about tag restriction

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add note that dirs for --write-revs are created
Frantisek Hrbata [Sun, 20 Dec 2020 12:23:19 +0000 (13:23 +0100)]
doc: add note that dirs for --write-revs are created

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-reply: create revs dir if it doesn't exist
Frantisek Hrbata [Sun, 20 Dec 2020 12:19:07 +0000 (13:19 +0100)]
git-mr-reply: create revs dir if it doesn't exist

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-show: create revs dir if it doesn't exist
Frantisek Hrbata [Sun, 20 Dec 2020 12:18:40 +0000 (13:18 +0100)]
git-mr-comment-show: create revs dir if it doesn't exist

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomake: add git-mr-comment-show.txt
Frantisek Hrbata [Sun, 20 Dec 2020 11:58:22 +0000 (12:58 +0100)]
make: add git-mr-comment-show.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-comment-show.txt
Frantisek Hrbata [Sun, 20 Dec 2020 11:57:50 +0000 (12:57 +0100)]
doc: add git-mr-comment-show.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add info about git-mrcomment-(list|show) commands to git-mr-reply
Frantisek Hrbata [Sun, 20 Dec 2020 11:56:29 +0000 (12:56 +0100)]
doc: add info about git-mrcomment-(list|show) commands to git-mr-reply

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-comment-list to git-mr
Frantisek Hrbata [Sat, 19 Dec 2020 12:49:35 +0000 (13:49 +0100)]
doc: add git-mr-comment-list to git-mr

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-comment-list.txt
Frantisek Hrbata [Sat, 19 Dec 2020 12:47:29 +0000 (13:47 +0100)]
doc: add git-mr-comment-list.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-comment-list.txt
Frantisek Hrbata [Sat, 19 Dec 2020 12:47:08 +0000 (13:47 +0100)]
doc: add git-mr-comment-list.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: allow limit comments by recipients
Frantisek Hrbata [Sat, 19 Dec 2020 12:38:05 +0000 (13:38 +0100)]
git-mr-comment-list: allow limit comments by recipients

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: allow extended regexp
Frantisek Hrbata [Sat, 19 Dec 2020 12:16:22 +0000 (13:16 +0100)]
git-mr-comment-list: allow extended regexp

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: allow limit comments by author
Frantisek Hrbata [Sat, 19 Dec 2020 12:10:51 +0000 (13:10 +0100)]
git-mr-comment-list: allow limit comments by author

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: allow limit comments by date
Frantisek Hrbata [Sat, 19 Dec 2020 11:52:05 +0000 (12:52 +0100)]
git-mr-comment-list: allow limit comments by date

This just adds wrapper around git-log --before and --after options.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomakefile: add git-mr-merge.txt
Frantisek Hrbata [Fri, 18 Dec 2020 16:43:59 +0000 (17:43 +0100)]
makefile: add git-mr-merge.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-merge description
Frantisek Hrbata [Fri, 18 Dec 2020 16:42:46 +0000 (17:42 +0100)]
doc: add git-mr-merge description

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-merge: include MR base in the merge commit
Frantisek Hrbata [Fri, 18 Dec 2020 14:52:18 +0000 (15:52 +0100)]
git-mr-merge: include MR base in the merge commit

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-merge: check for base and subject
Frantisek Hrbata [Fri, 18 Dec 2020 14:50:01 +0000 (15:50 +0100)]
git-mr-merge: check for base and subject

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-merge: add --edit option
Frantisek Hrbata [Fri, 18 Dec 2020 14:43:59 +0000 (15:43 +0100)]
git-mr-merge: add --edit option

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-reply reference to git-mr
Frantisek Hrbata [Fri, 18 Dec 2020 10:21:53 +0000 (11:21 +0100)]
doc: add git-mr-reply reference to git-mr

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomakefile: add help target and make it the default one
Frantisek Hrbata [Fri, 18 Dec 2020 10:20:26 +0000 (11:20 +0100)]
makefile: add help target and make it the default one

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-reply: abort on empty message
Frantisek Hrbata [Fri, 18 Dec 2020 10:05:24 +0000 (11:05 +0100)]
git-mr-reply: abort on empty message

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomakefile: add git-mr-(reply|merge|comment-list|comment-show)
Frantisek Hrbata [Fri, 18 Dec 2020 10:03:33 +0000 (11:03 +0100)]
makefile: add git-mr-(reply|merge|comment-list|comment-show)

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomakefile: add git-mr-reply.txt
Frantisek Hrbata [Fri, 18 Dec 2020 10:00:49 +0000 (11:00 +0100)]
makefile: add git-mr-reply.txt

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: add git-mr-reply description
Frantisek Hrbata [Fri, 18 Dec 2020 10:00:16 +0000 (11:00 +0100)]
doc: add git-mr-reply description

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-merge: initial implementation
Frantisek Hrbata [Wed, 16 Dec 2020 17:30:32 +0000 (18:30 +0100)]
git-mr-merge: initial implementation

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-tag: don't allow adding tags which are owner's only
Frantisek Hrbata [Wed, 16 Dec 2020 16:43:20 +0000 (17:43 +0100)]
git-mr-tag: don't allow adding tags which are owner's only

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: define owner's tags
Frantisek Hrbata [Wed, 16 Dec 2020 16:42:42 +0000 (17:42 +0100)]
mrlib: define owner's tags

These can be set by MR owner only.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-update: owner's tags moved to mrlib
Frantisek Hrbata [Wed, 16 Dec 2020 16:42:04 +0000 (17:42 +0100)]
git-mr-update: owner's tags moved to mrlib

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-tag: don't allow users to add reserved tags
Frantisek Hrbata [Wed, 16 Dec 2020 16:32:37 +0000 (17:32 +0100)]
git-mr-tag: don't allow users to add reserved tags

This would be caught by git-mr-update, but let's inform users about
this while the tag is created.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-update: use reserved tag names from mrlib
Frantisek Hrbata [Wed, 16 Dec 2020 16:32:16 +0000 (17:32 +0100)]
git-mr-update: use reserved tag names from mrlib

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: move reserved tag names to mrlib
Frantisek Hrbata [Wed, 16 Dec 2020 16:31:36 +0000 (17:31 +0100)]
mrlib: move reserved tag names to mrlib

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-update: check that MR in in-reply-to header matches RM ref
Frantisek Hrbata [Wed, 16 Dec 2020 11:11:35 +0000 (12:11 +0100)]
git-mr-update: check that MR in in-reply-to header matches RM ref

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-reply: don't add rev to read comments if user replies to himself
Frantisek Hrbata [Wed, 16 Dec 2020 10:42:31 +0000 (11:42 +0100)]
git-mr-reply: don't add rev to read comments if user replies to himself

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: don't list user's own comments as new
Frantisek Hrbata [Wed, 16 Dec 2020 10:39:24 +0000 (11:39 +0100)]
git-mr-comment-list: don't list user's own comments as new

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-reply: initial implementation
Frantisek Hrbata [Wed, 16 Dec 2020 09:58:18 +0000 (10:58 +0100)]
git-mr-reply: initial implementation

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib.py: interpret new lines for MR description while generating mbox
Frantisek Hrbata [Wed, 16 Dec 2020 09:47:37 +0000 (10:47 +0100)]
mrlib.py: interpret new lines for MR description while generating mbox

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib.py: add patches2mrs helper
Frantisek Hrbata [Wed, 16 Dec 2020 09:47:01 +0000 (10:47 +0100)]
mrlib.py: add patches2mrs helper

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-show: initial implementation
Frantisek Hrbata [Tue, 15 Dec 2020 11:43:53 +0000 (12:43 +0100)]
git-mr-comment-show: initial implementation

5 years agogit-mr-comment-list: add --new-only option
Frantisek Hrbata [Tue, 15 Dec 2020 09:52:59 +0000 (10:52 +0100)]
git-mr-comment-list: add --new-only option

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-comment-list: initial implementation
Frantisek Hrbata [Mon, 14 Dec 2020 17:08:25 +0000 (18:08 +0100)]
git-mr-comment-list: initial implementation

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib.py: add comments2mrs
Frantisek Hrbata [Thu, 10 Dec 2020 17:34:26 +0000 (18:34 +0100)]
mrlib.py: add comments2mrs

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: really verify the revs in verify_commits
Frantisek Hrbata [Thu, 10 Dec 2020 16:20:31 +0000 (17:20 +0100)]
mrlib: really verify the revs in verify_commits

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-sendmail: remove forgotten debug print
Frantisek Hrbata [Thu, 10 Dec 2020 16:16:27 +0000 (17:16 +0100)]
git-mr-sendmail: remove forgotten debug print

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: add verify_comments
Frantisek Hrbata [Thu, 10 Dec 2020 16:15:35 +0000 (17:15 +0100)]
mrlib: add verify_comments

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agodoc: remove git-mr-mbox.txt.bak
Frantisek Hrbata [Tue, 8 Dec 2020 18:57:49 +0000 (19:57 +0100)]
doc: remove git-mr-mbox.txt.bak

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-update: add checks for mr ref
Frantisek Hrbata [Tue, 8 Dec 2020 16:56:11 +0000 (17:56 +0100)]
git-mr-update: add checks for mr ref

Also extend the current checks for other refs.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: check mr and user values while loading tags
Frantisek Hrbata [Tue, 8 Dec 2020 16:54:48 +0000 (17:54 +0100)]
mrlib: check mr and user values while loading tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-push: push mr ref with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:20:39 +0000 (14:20 +0100)]
git-mr-push: push mr ref with tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-fetch: fetch mr ref with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:19:51 +0000 (14:19 +0100)]
git-mr-fetch: fetch mr ref with tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-remove: remove mr ref along with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:17:20 +0000 (14:17 +0100)]
git-mr-remove: remove mr ref along with tags

mr ref contains tags which cannot be modified, so remove it aloing
with tags.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-show: don't add mr and commit hash info to tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:13:17 +0000 (14:13 +0100)]
git-mr-show: don't add mr and commit hash info to tags

MR hash and commit hash tags are now added in mrlib.load_tags, so
there is no need to add them explicitly.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: load commit tags from git in load_tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:10:16 +0000 (14:10 +0100)]
mrlib: load commit tags from git in load_tags

Originally commit info, like subject, was stored as a tag and created
by git-mr-create. It looks like that calling git one more time does not
have such performance impact, so let's just load all the data from git.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: store mr tags to separate ref
Frantisek Hrbata [Tue, 8 Dec 2020 13:06:46 +0000 (14:06 +0100)]
git-mr-create: store mr tags to separate ref

Tags which cannot be changed, like base, commits or commits count, are
stored under new mr ref. Also don't store commit subjects and other
info in tags. Let's get them directly from git in mrlib.load_tags.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-show: add vn format
Frantisek Hrbata [Thu, 3 Dec 2020 17:43:29 +0000 (18:43 +0100)]
git-mr-show: add vn format

All tag values should have newlines escaped. This format allows
to diplay values with newline interpreted.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: escape newline in all tags, not only in MR description
Frantisek Hrbata [Thu, 3 Dec 2020 17:25:51 +0000 (18:25 +0100)]
git-mr-create: escape newline in all tags, not only in MR description

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: add check for already existing MR
Frantisek Hrbata [Thu, 3 Dec 2020 13:27:20 +0000 (14:27 +0100)]
git-mr-create: add check for already existing MR

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agoInitial commit
Frantisek Hrbata [Tue, 1 Dec 2020 13:23:13 +0000 (14:23 +0100)]
Initial commit

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>