Supercharge Your Innovation With Domain-Expert AI Agents!

Digraph-based code repository Java conflict file sorting and grouping method

A grouping method and directed graph technology, applied in the computer field, can solve problems such as reducing the efficiency of collaboration, affecting the efficiency of the solution process, and node ordering, so as to help resolve conflicts, avoid repeated modifications, and improve efficiency.

Active Publication Date: 2022-06-28
XUANCAI INTERACTIVE NETWORK SCI & TECH +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A disadvantage of this mode of working is that when contributions from different developers are merged, conflicts arise, reducing the efficiency of collaboration and introducing potential vulnerabilities. As refactoring becomes prevalent in software development and evolution, and The situation gets worse with a higher number of conflicts
[0003] However, a common problem with conflicting merges is that for unstructured merges, which treat the code as plain text, conflicts will be reported whenever a developer modifies the same line of code. Higher number of false positives; for structured merges it reduces some false positives
[0005] In the published document CN201910904927-an AST-based relational database SQL table relationship analysis and display method and document CN201210219285-a random test case generation method for Java programs, although it also has the idea of ​​​​dependency analysis and sorting, However, when sorting, the nodes are not sorted, and it is easy to make repeated modifications during subsequent processing, which affects the efficiency of the solution process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Digraph-based code repository Java conflict file sorting and grouping method
  • Digraph-based code repository Java conflict file sorting and grouping method
  • Digraph-based code repository Java conflict file sorting and grouping method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to deepen the understanding of the present invention, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. The embodiments are only used to explain the present invention and do not constitute a limitation on the protection scope of the present invention.

[0030] like Figure 1-3 As shown, a method for sorting and grouping conflicting files in a code repository Java based on a directed graph constructs a dependency graph for all files in a Java project in the code repository according to the dependencies between the files; then, traverses the dependency graph to construct a new Then, traverse the newly constructed graph, and save the conflicting files in sequence according to the order of the traversed nodes; finally, divide the conflicting files in the same graph into the same group.

[0031] A directed graph-based code repository Java conflict file sorting and grouping method, comprising ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a directed graph-based code repository Java conflict file sorting and grouping method. The method comprises the following steps of: firstly, constructing a dependency graph for all Java files on different branches according to a dependency relationship among the files; secondly, combining the graphs on different branches to obtain a combined dependency graph; then, traversing the merged dependency graph, comparing file full path names carried by the nodes with full path names of the Java files with conflicts, and storing the full path names of the Java files with the same comparison according to the sequence numbers of the nodes from large to small; then, dividing the Java files in the same dependency graph into the same group; according to the method, a large number of conflicts existing in the current code warehouse can be effectively sorted, and meanwhile, the conflicted files are effectively grouped, so that developers are helped to solve the conflicts in order.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for sorting and grouping conflicting files in a code warehouse Java based on a directed graph. Background technique [0002] In modern software development, developers rely on version control systems like Git to collaborate on branch-based development efforts. A disadvantage of this working model is that when merging contributions from different developers, conflicts can arise, reducing the efficiency of collaboration and introducing potential vulnerabilities, as refactoring has become prevalent in software development and development, and The situation gets worse with a higher number of conflicts. [0003] However, a common problem with conflicting merges is that for an unstructured merge, which treats the code as plain text, a conflict is reported whenever a developer modifies the same line of code, and this situation exists High number of false positives; for stru...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41G06F8/70G06F8/72
CPCG06F8/41G06F8/72G06F8/70
Inventor 张婷婷唐勇刘世伟张传忠张卫丰
Owner XUANCAI INTERACTIVE NETWORK SCI & TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More