Opened 17 years ago
Last modified 6 years ago
#4837 new defect
[Patch] MergeInfoEnhancer no such node after branch deletion and branch from branch creation
| Reported by: | Owned by: | Emmanuel Blot | |
|---|---|---|---|
| Priority: | high | Component: | RevtreePlugin |
| Severity: | major | Keywords: | MergeInfoEnchancer |
| Cc: | Javier Sanz, william.spinelli@… | Trac Release: | 0.11 |
Description
After deleting a concluded branch in my repository revtree refuses to render giving the error:
No node branches/testbranch at revision 8
Note: The revision number is so low because I created a new test repository/trac instance to make sure it wasn't a problem in my development site.
Disabling the MergeInfoEnchancer allows revtree to render the tree again.
From my trac log:
2009-03-26 21:50:12,727 Trac[model] WARNING: Changeset neither a known branch or tag: {'kind': 'dir', 'base_rev': u'-1', 'base_path': None, 'path': u'branches', 'unique': False, 'change': 'add'}
2009-03-26 21:50:12,727 Trac[model] WARNING: Changeset neither a known branch or tag: {'kind': 'file', 'base_rev': u'-1', 'base_path': None, 'path': u'one', 'unique': False, 'change': 'add'}
2009-03-26 21:50:12,729 Trac[api] DEBUG: Enhancers: [<revtree.enhancer.SimpleEnhancerModule object at 0xbaa1a9ac>, <mergeinfoenhancer.enhancer.MergeInfoEnhancerModule object at 0xba67f16c>]
2009-03-26 21:50:12,732 Trac[main] WARNING: 404 No such node (No node branches/testbranch at revision
Attachments (3)
Change History (14)
comment:1 Changed 17 years ago by
| Priority: | normal → high |
|---|
comment:2 Changed 16 years ago by
| Cc: | ryano@… added; anonymous removed |
|---|
comment:3 Changed 16 years ago by
| Cc: | Javier Sanz added |
|---|
Changed 16 years ago by
| Attachment: | deleted-branches.patch added |
|---|
comment:4 Changed 16 years ago by
I'm sure that there are better ways to fix it but the patch above seems to work for me. Feedback is appreciated.
comment:5 Changed 16 years ago by
| Cc: | william.spinelli@… added |
|---|
I had a similar problem #5477, and applying this patch fixed it.
Thanks
comment:6 Changed 16 years ago by
| Cc: | Ryan J Ollos added; ryano@… removed |
|---|
comment:8 Changed 16 years ago by
| Summary: | MergeInfoEnhancer no such node after branch deletion → [Patch] MergeInfoEnhancer no such node after branch deletion |
|---|
comment:9 Changed 15 years ago by
| Summary: | [Patch] MergeInfoEnhancer no such node after branch deletion → [Patch] MergeInfoEnhancer no such node after branch deletion and branch from branch creation |
|---|
I had similar problem like this after creating branch from another branch(merged to trunk, but this can not be important).
So i created similar patch which fixed it for me.
Changed 15 years ago by
| Attachment: | branch-from-branch.patch added |
|---|
Changed 15 years ago by
| Attachment: | getmergeinfo.patch added |
|---|
Enhanced handling for branch from branch problems which backtracks to a suitable source version instead of just skipping the node.
comment:10 Changed 15 years ago by
I attached my own version of a fix which not just skips the problematic node but backtracks the source of the branch to get to a valid revision. Not very elegant but works. If the node is just skipped, no merge information for the branch is retrieved and a number of incorrect merge arrows are rendered.
comment:11 Changed 15 years ago by
I've applied the proposed patch attachment:"getmergeinfo.patch" and it seems to work properly. With the previous two I was able to render a tree only hiding deleted branches, instead now I can render the full revision graph.
I've applied this patch together with the other two (are they still needed?).
comment:12 Changed 6 years ago by
| Cc: | Ryan J Ollos removed |
|---|



I should also point out that I can fix the issue by disabling the 'Show deleted branches' option in the revtree screen, however I think that having a clear view of when branches start and end is helpful in the revision tree.