1. Marcin Kuzminski
  2. RhodeCode
  3. Issues

Issues

Issue #266 resolved

Rhodecode allows to create repo with the same name and in the same parent as group

Dmitry
created an issue

Rhodecode allows to create repo with the same name and in the same parent as group, and this leads to troubles.

By the way, reverse order is unavailable: if i try to create group with the same name and in the same parent as repo, Rhodecode disallows this.

Example:

1) create group "test_name"

2) create repo "test_name"

Voila! - created group and repo with the same names.

well, now another example:

1) create repo "test_name_2"

2) create group "test_name_2"

Failed! Can't create group test_name_2 because there's already item with this name.

I'm really not sure if user should be able to create group and repo with the same names or not.

(please note: if yes, then hook "Update repository after push (hg update)" might lead to conflict.)

But anyway, current behavior is a bit weird: need to go one of two ways:

1) enable creating repo and group with the same name in any order;

2) disable creating repo and group with the same name in any order.