Changing group description

Issue #279 resolved
semmelb created an issue


when I try to adapt the repository group description the change leads to an error which complains about existing directory:

//2011-10-17 19:17:50.533 ERROR [rhodecode.controllers.admin.repos_groups] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.1-py2.7.egg/rhodecode/controllers/admin/", line 129, in update repos_group_model.update(id, form_result) File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.1-py2.7.egg/rhodecode/model/", line 156, in update new_parent_id=form_data['group_parent_id']) File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.1-py2.7.egg/rhodecode/model/", line 104, in __rename_group 'existing dir %s' % new_path) Exception: Was trying to rename to already existing dir /daten/hg/all/egl/artsystem//

So adjusting the description is not allowed right now.


Comments (9)

  1. semmelb reporter

    Updating to 1.2.2 makes it even more worse.

    Now no renaming of the repository group is possible.

    Error Message:

    2011-10-18 10:39:55.479 ERROR [rhodecode.controllers.admin.repos_groups] Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.2-py2.7.egg/rhodecode/controllers/admin/", line 120, in update
        repos_group_model.update(id, form_result)
      File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.2-py2.7.egg/rhodecode/model/", line 140, in update
        self.__rename_group(old_path, new_path)
      File "/usr/local/lib/python2.7/dist-packages/RhodeCode-1.2.2-py2.7.egg/rhodecode/model/", line 91, in __rename_group
        shutil.move(old_path, new_path)
      File "/usr/lib/python2.7/", line 298, in move
        copy2(src, real_dst)
      File "/usr/lib/python2.7/", line 127, in copy2
        copyfile(src, dst)
      File "/usr/lib/python2.7/", line 81, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: u'/daten/hg/all/ea_libs'

    This message is true. The directory /daten/hg/all/ea_libs does not exists in this hierarchy. But the script should look in this folder: /daten/hg/all/ea/ea_libs. The parent repository group is missing.

  2. semmelb reporter


    • Repository groups created in 1.2.1
    • 2 Repository groups ( ea, ea_libs )
    • one repository parent of the other ( for me ea parent of ea_libs )

    Step by step example:

    1. Login as admin
    2. Admin -> Repository groups
    3. Select repository subgroup ( for me ea >> ea_libs )
    4. Rename Group name ( for me ea_libs to libs )
    5. Save
  3. semmelb reporter

    Creating the repository groups with the Rhodecode version 1.2.2. does not shows this issue! Everything went smoothly then.

    So report could be closed if the conversion is unimportant.


  4. Log in to comment