1. Field of the Invention
The present invention relates to the field of artifact version control and more particularly to navigating deltas in a compare view.
2. Description of the Related Art
Version control relates to the management of different versions of artifacts produced through repetitive editing by one or more end editors. Often referred to in the context of source code development, software model development and configuration management, version control involves the management of one or more documents when the documents are edited in succession, parallel or both by one or more editors. Put plainly, version control addresses one of two likely contingencies. In a first contingency, an editor applies edits to a document in succession and requires a view to changes in the document from an ancestor version to a contemporary version. In the other contingency, one or more editors concurrently apply different edits to the same document and the edits must be merged into a unified document.
Merging is a common operation when working with versioned artifacts in a version control system. Wherever two or more editors apply edits to the same version of a file in parallel, a merge is required to harmonize the edits of the parallel artifacts. Merging unstructured textual artifacts can be a relatively simple operation because within an unstructured textual artifact, there is no relationship from one line to the next. By comparison, merging a structured artifact such as source code or markup can be trying, as the skilled artisan will attest.
Notably, when editing an artifact, a simple line to line change can affect the integrity of structures or objects specified within the artifact. In this regard, the more structural the file content, the worse the problem because relationships between structures within an artifact must be maintained during a merge operation in order to protect the integrity of the artifact. Exacerbating matters, each element in an artifact can have multiple properties, each of which can contain or reference one or more other elements in the artifact. As other relationships can exist only in source code, the structure of an artifact can become exceedingly complex—so much so that attempting to edit the artifact within a mere text editor can virtually guarantee the corruption of the artifact as has been demonstrated by sufficient empirical evidence.
Thus, more sophisticated visual merge tools have become the preferred mode of performing a merge operation. The use of a visual merge tool in a version control system, however, is not without its own set of challenges. In this regard, each individual change can appear within the visual merge tool as a single artifact difference referred to in the art as a “delta”. Moreover, each individual change to an element in an artifact by a contributor reflected by a delta can be a candidate for conflict in view of a possible change to the same element by another contributor in another version of the artifact.
Visualizing deltas among different modified versions of an ancestor artifact, referred to in the art as a “contributor artifact”, can be challenging where a multiplicity of deltas can be identified for any given contributor artifact. To facilitate the visualization of deltas in an artifact, conventional visual compare tools provide for the manual selection of different contextual views for the deltas. In this regard, whereas a hierarchical view of deltas can be appropriate in some circumstances, visualizing changes in a model, for example, can require the use of a diagrammatic view. Likewise, visualizing property changes can require a property view. Finally, visualizing textual changes can require a text view.
Conventional compare tools typically permit the selection of any one of several contextual views for viewing an artifact in a particular context. For instance, one or more tab controls can be provided for a contextual view of an artifact such that the selection of any one of the tab controls can result in the re-rendering of the artifact utilizing a different contextual view associated with the selected tab control. Notwithstanding, repeatedly switching contextual views for an entire artifact can be problematic, distracting and tedious when navigating different deltas in a contributor artifact. Yet, switching contextual views for an artifact is an all or none proposition within conventional compare tools.
Embodiments of the present invention address deficiencies of the art in respect to comparing artifacts in a version control system and provide a novel and non-obvious method, system and computer program product for multi-contextual navigation of deltas in a hierarchy. In one embodiment of the invention, a method for multi-contextual navigation can include rendering objects for an artifact utilizing a default contextual view of the objects, selecting an object in the default contextual view and directing an inward navigation to a different object in the default contextual view. Notably, responsive to the directing of the inward navigation to the different object, a different contextual view can be provided for at least a portion of the objects defined by the different object.
In one aspect of the invention, the default contextual view is a hierarchical view of the objects. In another aspect of the invention, the different contextual view is a diagrammatic view. In yet another aspect of the invention, the different contextual view is a textual view. Finally, in even yet another aspect of the invention, the different contextual view is a properties view. Regardless, rendering objects for an artifact utilizing a default contextual view of the objects, further can include providing an icon adjacent to deltas among the objects indicating at least one of an added object, a removed object, a relocated object and a conflicted object.
Preferably, rendering objects for an artifact utilizing a default contextual view of the objects can include rendering objects for each of an ancestor artifact in an ancestor artifact view and at least one contributor artifact in a contributor artifact view, each within a single compare view. As such, providing a different contextual view for at least a portion of the objects defined by the different object can include providing a different contextual view for at least a portion of the objects for each of the ancestor artifact in the ancestor artifact view and each contributor artifact in a corresponding contributor artifact view. Alternatively, providing a different contextual view can include providing a different contextual view for at least a portion of the objects for only one of the ancestor artifact in the ancestor artifact view and each contributor artifact in a corresponding contributor artifact view.
Additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The aspects of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
The accompanying drawings, which are incorporated in and constitute part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. The embodiments illustrated herein are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown, wherein:
Embodiments of the present invention provide a method, system and computer program product for the multi-contextual navigation of deltas in a version control system. In accordance with an embodiment of the present invention, a default contextual view can be provided for a set of nodes in a hierarchy of objects of an artifact in a version control system. The hierarchy can include one or more deltas and generally, the hierarchy can be traversed directionally from a root node to a multiplicity of leaf nodes through intermediate nodes. In particular, peer nodes can be traversed by specifying a next or previous node in relation to a current node. By comparison, a child node can be reached from a parent node by specifying an inward movement from the parent node, and a parent node can be reached from a child node by specifying an outward movement from the child node.
Notably, a navigation control can be provided permitting inward, outward, previous and next navigation movements. As such, while the default contextual view can be provided for the hierarchy of objects initially, whenever an inward navigation movement is selected for a node in the hierarchy, a different contextual view can be provided for the node so as to more effectively communicate the content of the node in a context most suitable for the node. More specifically, each different node in the hierarchy can be associated with a default contextual view. Consequently, when an inward navigation command is received in association with a selected node, the default contextual view best able to visualize the selected node can be provided. In this regard, the contextual views can range from a hierarchical view, to a properties view, to a textual view to a diagrammatic view.
In illustration,
As it will be apparent to the skilled artisan, each of the contributor artifact views 150A, 160B can indicate deltas disposed in a corresponding hierarchy. The deltas can indicate either changes that have occurred as between the ancestor artifact and the contributor artifact as shown in
For instance, the “+” icon can indicate an addition of a new object to the hierarchy, while a “−” icon can indicate the removal of an existing object from the hierarchy. An “←” icon can indicate the re-positioning of an object from a previous position in the hierarchy, while an “→” icon can indicate the re-positioning of an object to a new position in the hierarchy. Finally, a “Δ” can indicate a change to an object in the hierarchy, and an “!” can identify a conflict between the object in the hierarchy and the counterpart object in a hierarchy for a different contributor artifact. In respect to the latter, accept and reject controls 120 can permit the resolution of a selected conflict in favor of one of the contributor artifacts.
Importantly, a navigation control 130 can be disposed in the visualization window 110. The navigation control 130 can provide for the navigation of a selected one of the hierarchies of the ancestor artifact view 140A and the contributor artifact views 150A, 160A. Specifically, the navigation control 130 can provide for separate user interface controls for commanding next, previous, inward and outward navigation movements relative to a selected node in a hierarchy. Responsive to an inward navigation movement to a destination node, a different contextual view can be provided for the hierarchy based upon a default contextual view associated with the destination node.
In illustration, referring to
Likewise, referring to
Finally, referring to
Notably, the compare view of
The development platform can include a version control system 240 which can provide for a compare view 250. The compare view 250 can be enabled to compare a contributor artifact with an ancestor artifact among a set of artifacts 280 in order to visualize deltas between the artifacts. Examples include changes in a model, changes in a text document, and changes in properties for objects in a model. The compare view 250 further can be enabled to compare differences in two or more contributor artifacts with a common ancestor artifact so as to identify conflicting deltas among the contributor artifacts. Finally, the compare view 250 can provide one or more operations for resolving conflicting deltas in a merge operation. To that end, the compare view 250 can incorporate functionality prevalent in many version control systems such as those present in the IBM Rational ClearCase™ software configuration management product manufactured by International Business Machines Corporation of Armonk, N.Y., United States of America.
In accordance with the present invention, delta navigation logic 260 can be coupled to the compare view 250. The delta navigation logic 260 can include program code enabled to process previous, next, inward and outward navigation directives received through one or more user interface controls for the control view 250. In particular, the program code can be enabled to process an inward navigation directive for a selected node in order to select and render a particular contextual view for a destination node leading inward from the selected node. In this regard, the program code can be enabled to choose the particular contextual view for the destination node from among a set of potential contextual views specified within a view table 290. In this way, a suitable contextual view can be provided for the destination node automatically without requiring an end user to manually select a contextual view for the destination node.
In further illustration of the operation of the delta navigation logic 260,
In block 330, a node in the hierarchy can be selected and a navigation directive can be received for navigating from the selected node to a destination node in the hierarchy. In decision block 340, if the navigation directive is an inward navigation directive, in block 350 a default context can be located for a destination node for the navigation directive and in block 360, a contextual view can be rendered according to the located default context. For instance, each of the ancestor artifact view, and the contributor artifact views can be re-rendered utilizing the located default context. Alternatively, only the view associated with the navigation directive can be rendered according to the located default context. In respect to the latter circumstance, the delta navigation logic 260 can provide for a simultaneous, multi-contextual view of the hierarchies for the ancestor artifact and contributor artifacts.
Referring again to
Embodiments of the invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, and the like. Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system.
For the purposes of this description, a computer-usable or computer readable storage medium can be any apparatus that can contain, store, communicate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The storage medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device). Examples of a computer-readable storage medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.
A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers. Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
Number | Name | Date | Kind |
---|---|---|---|
5278979 | Foster et al. | Jan 1994 | A |
5551027 | Choy et al. | Aug 1996 | A |
5623661 | Hon | Apr 1997 | A |
5640579 | Koppolu et al. | Jun 1997 | A |
6018747 | Burns et al. | Jan 2000 | A |
6061695 | Slivka et al. | May 2000 | A |
6075530 | Lucas et al. | Jun 2000 | A |
6144962 | Weinberg et al. | Nov 2000 | A |
6226652 | Percival et al. | May 2001 | B1 |
6237006 | Weinberg et al. | May 2001 | B1 |
6275223 | Hughes | Aug 2001 | B1 |
6393437 | Zinda et al. | May 2002 | B1 |
6449624 | Hammack et al. | Sep 2002 | B1 |
6487713 | Cohen et al. | Nov 2002 | B1 |
6532471 | Ku et al. | Mar 2003 | B1 |
6553563 | Ambrose et al. | Apr 2003 | B2 |
6754885 | Dardinski et al. | Jun 2004 | B1 |
6868425 | Bergstraesser et al. | Mar 2005 | B1 |
7131112 | Bartz et al. | Oct 2006 | B1 |
7143366 | McKelvey et al. | Nov 2006 | B1 |
7272815 | Eldridge et al. | Sep 2007 | B1 |
7278106 | Mason | Oct 2007 | B1 |
20030084425 | Glaser | May 2003 | A1 |
20030159136 | Huang et al. | Aug 2003 | A1 |
20030167446 | Thomas | Sep 2003 | A1 |
20030226106 | McKellar et al. | Dec 2003 | A1 |
20040167868 | Owen et al. | Aug 2004 | A1 |
20040167900 | Owen et al. | Aug 2004 | A1 |
20040230557 | Bales et al. | Nov 2004 | A1 |
20040230917 | Bales et al. | Nov 2004 | A1 |
20050039139 | Schwartz et al. | Feb 2005 | A1 |
20050091181 | McKee et al. | Apr 2005 | A1 |
20050091225 | McKee et al. | Apr 2005 | A1 |
20050091667 | McKee et al. | Apr 2005 | A1 |
20050131964 | Saxena | Jun 2005 | A1 |
20050216893 | Horton et al. | Sep 2005 | A1 |
20060184540 | Kung et al. | Aug 2006 | A1 |
20060206865 | Reinhardt et al. | Sep 2006 | A1 |
20060242603 | Wong et al. | Oct 2006 | A1 |
20060248505 | Tsukamoto | Nov 2006 | A1 |
20070061702 | Letkeman | Mar 2007 | A1 |
20070136394 | Cowan et al. | Jun 2007 | A1 |
Number | Date | Country |
---|---|---|
1026586 | Aug 2000 | EP |
1205842 | May 2002 | EP |
Entry |
---|
David Pogue, Windows Millennium: The Missing Manual, 2000, O'Reilly, p. 74. |
Chapman, D. Brent; Majordomo. How I Manage 17 Mailing Lists Without Answering—“request” Mail; 1992 Lisa VI—Oct. 19-23, 1992—Long Beach, CA. |
Tellioglu, Horst, Mailing Lists; Dec. 3, 1998 14.15:46 rev.1.2 Exp. [retrieved by WIPO Dec. 3, 1998 at URL: http://timaios.philo.at/Wiki—stuff/mlms.pdf. |
Houle, Bill, MajorCool:A Web Interface to Majordomo; Proceedings or the Tenth USENIX System Administration Conference (LISA X) Chicago, IL, Sep. 29-Oct. 4, 1996. |
Number | Date | Country | |
---|---|---|---|
20070143680 A1 | Jun 2007 | US |