Improved version management tool
6 claims: 6 independent, 0 dependent
- 1A method for creating a text file of a desired version of a module (10), where the desired version (40) is included in a given one of many possible paths (12), with each path (12) including an ordered set of versions (40), each identified by a version number, of a common module (10), with each version (40) in a path (12) evolving from the immediately preceding version (40), and characterised by:storing where the status history of the activation and deletions of each line active in any version (40) in a path (12) are stored in a variant history file (22) for the path (12);storing where the text of the lines active in all versions (40) in all paths (12) are stored in an indexed line file (20) with each line in the indexed line file (20) identified by a unique line identifier ULI (24);identifying the given path (12) in which the desired version (40) is included and the version number of the desired version in said given path (12);searching (50-57) the variant history file (22) of the given path (12) to determine which lines in the line file (20) are active in the desired version (40);andretrieving (66), from said line file (20) the text of lines determined to be active in the desired version (40). Eine Methode, um eine Textdatei einer gewünschten Version eines Moduls (10) zu erstellen, wobei die gewünschte Version (40) in einem gegebenen von vielen möglichen Pfaden (12) enthalten ist, und wobei jeder Pfad (12) ein geordnetes Set von Versionen (40) enthält, von denen jedes durch eine Versionsnummer identifiziert ist und weiterhin von einem gemeinsamen Modul (10) ist, wobei jede Version (40) in einem Pfad (12) aus der unmittelbar vorhergehenden Version entsteht und charakterisiert ist durch: Speichern wo die Statusvorgeschichte der Aktivierung und Auslöschungen jeder in irgendeiner Version (40) in einem Pfad (12) aktiven Zeile in einer Varianten Vorgeschichtsdatei (22) für den Pfad (12) gespeichert werden;Speichern wo der Text der in allen Versionen (40) in allen Pfaden (12) aktiven Zeilen in einer indizierten Zeilendatei (20) gespeichert werden, wobei jede Zeile in der indizierten Zeilendatei (20) durch einen einzigen Zeilenidentifizierer ULI (Unique Line Identifier) (24) identifiziert wird;Identifizierung des gegebenen Pfades (12), in welchem die gewünschte Version (40) enthalten ist und die Versionsnummer der gewünschten Version in obengenanntem gegebenem Pfad (12);Suchen (50-57) der Varianten Vorgeschichtsdatei (22) des gegebenen Pfades (12), um zu bestimmen, welche Zeilen in der Zeilendatei (20) in der gewünschten Version (40) aktiv sind;undWiedergewinnung (66) des Textes der in der gewünschten Version (40) als aktiv bestimmten Zeilen von obengenannter Zeilendatei (20). Procédé de création d'un fichier de texte d'une version souhaitée d'un module (10), où la version souhaitée (40) est incluse dans un trajet donné parmi de nombreux trajets possibles (12), chaque trajet (12) incluant un ensemble ordonné de versions (40) d'un module commun (10), identifiées chacune par un numéro de version, chaque version (40) d'un trajet (12) évoluant à partir de la version immédiatement précédente (40), et caractérisé par les étapes consistant à: mémoriser où l'histoire d'état de l'activation et des suppressions de chaque ligne active d'une version quelconque (40) d'un trajet (12) est mémorisée dans un fichier (22) d'histoire des variantes du trajet (12);mémoriser où le texte des lignes actives de toutes les versions (40) de tous les trajets (12) est mémorisé dans un fichier indexé (20) de lignes, chaque ligne du fichier indexé (20) de lignes étant identifiée par un élément d'identification unique de ligne ULI (24);identifier le trajet donné (12) dans lequel la version souhaitée (40) est incluse et le numéro de version de la version souhaitée dans ledit trajet donné (12);explorer (50 à 57) le fichier (22) d'histoire des variantes du trajet donné (12) afin de déterminer les lignes du fichier (20) de lignes qui sont actives dans la version souhaitée (40);etextraire (66), à partir dudit fichier (20) de lignes, le texte de lignes déterminées comme actives dans la version souhaitée (40).
- 2Die Methode von Anspruch 1,wobei. die Varianten Vorgeschichtsdatei (22) des gegebenen Pfades (12) ein Set von Eintragungen (30) enthält, welches jedem gegebenen ULI (24) zugeordnet ist, der eine in irgendeiner Version (40) im gegebenen Pfad (12) aktive Zeile identifiziert, wobei jede Eintragung (30) in einem Set eine der Versionsnummern der Version (40) des gegebenen Pfades (12) anzeigt, wo die durch den zugeordneten ULI (24) identifizierte Zeile gelöscht ist, wobei die Eintragungen (30) in obengenannter Varianten Vorgeschichtsdatei so geordnet sind, daß die Eintragung (30), welche eine Versionsnummer einer ersten gegebenen Version (40) anzeigt, in welcher eine gegebene Zeile aktiv wird, unmittelbar der Eintragung (30), welche die Versionsnummer einer zweiten gegebenen Version (40), in welcher die obengenannte gegebene Zeile gelöscht ist, vorangestellt ist, und wo die Eintragungen (30) der Zeilen, die in der zweiten gegebenen Version (40) aktiviert wurden, unmittelbar der letzten Eintragung (30) folgen, und dabei anzeigen, daß eine Zeile in der zweiten gegebenen Version (40) gelöscht wurde und worin obengenannter Schritt des Suchens (50-57) besteht aus:Lesen (50-54) eines benachbarten Paares von vorangestellten und nachfolgenden Eintragungen (30) in obengenannter Varianten Vorgeschichtsdatei;Bestimmen, ob die ULls (24) in obengenanntem banachbartem Paar von Eintragungen (30) dieselben sind (58);ob die ULls (24) dieselben sind, wobei die identifizierende Zeile in der gewünschten Version (40) nur enthalten (66) ist, wenn die Versionsnummer, die durch obengenannte nachfolgende Eintragung (30) angezeigt wird, größer ist als die Versionsnummer von obengenannter gewünschter Version (40), wenn die Versionsnummer, die durch die vorhergegangene Eintragung (30) im Paar angezeigt wird, geringer ist als oder gleich wie die Versionsnummer der gewünschten Version (40) und wenn der Status der identifizierten Zeile, der durch die vorgegangene Eintragung (30) in dem Paar angezeigt wird, aktiv ist;undwenn die ULls (24) verschieden sind, wobei die identifizierte Zeile in der gewünschten Version (40) nur enthalten ist (57d), wenn die Versionsnummer, die durch obengenannte vorangehende Eintragung (30) in dem Paar angegeben ist, kleiner ist als oder gleich wie die Versionsnummer der gewünschten Version (40) und wenn der Status der identifizierten Zeile, der durch die vorangegangene Eintragung (30) in dem Paar angezeigt wird, aktiv ist. Procédé selon la revendication 1 dans lequel: le fichier (22) d'histoire des variantes du trajet donné (12) inclut un ensemble d'enregistrements (30) associés à chaque ULI donné (24) qui identifie une ligne active dans une version quelconque (40) du trajet donné (12), chaque enregistrement (30) d'un ensemble indiquant l'un des numéros de version de la version (40) du trajet donné (12) dans laquelle la ligne identifiée par le ULI associé (24) est supprimée, les enregistrements (30) dudit fichier d'histoire des variantes étant ordonnés d'une manière telle que l'enregistrement (30), qui indique un numéro de version d'une première version donnée (40) dans laquelle une ligne donnée devient active, précède immédiatement l'enregistrement (30) qui indique le numéro de version d'une deuxième version donnée (40) dans laquelle ladite ligne donnée est supprimée, et où les enregistrements (30) des lignes rendues actives dans la deuxième version donnée (40) suivent immédiatement le dernier enregistrement (30) qui indique qu'une ligne est supprimée dans la deuxième version donnée (40), et dans lequel ladite étape d'exploration (50 à 57) comprend les étapes consistant à:lire (50, 54) dans ledit fichier d'histoire des variantes une paire adjacente d'enregistrements précédent et suivant (30);déterminer si les ULI (24) de ladite paire adjacente d'enregistrements (30 ) sont les mêmes (58);si les ULI (24) sont les mêmes, n'inclure dans la version souhaitée (40) la ligne d'identification que si le numéro de version indiqué par ledit enregistrement suivant (30) est supérieur au numéro de version de ladite version souhaitée (40), si le numéro de version indiqué par l'enregistrement précédent (30) de la paire est inférieur ou égal au numéro de version de la version souhaitée (40), et si l'état de la ligne identifiée indiqué par l'enregistrement précédent (30) de la paire est actif;etsi les ULI (24) sont différents, n'inclure (57d) la ligne identifiée dans la version souhaitée (40) que si le numéro de version indiqué par ledit enregistrement précédent (30) de la paire est inférieur ou égal au numéro de version de la version souhaitée (40) et si l'état de la ligne identifiée indiqué par l'enregistrement précédent (30) de la paire est actif. The method of claim 1, wherein: the variant history file (22) of the given path (12) includes a set of records (30) associated with each given ULI (24) identifying a line active in any version (40) in the given path (12), with each record (30) in a set indicating one of the version numbers of the version (40) of the given path (12) where the line identified by the associated ULI (24) is deleted, with the records (30) in said variant history file ordered so that the record (30) indicating a version number of a first given version (40), in which a given line becomes active, immediately precedes the record (30) indicating the version number of a second given version (40) in which said given line is deleted, and where the records (30) of lines made active in the second given version (40) immediately follow the last record (30) indicating a line is deleted in the second given version (40), and wherein said step of searching (50-57) comprises:reading (50,54) an adjacent pair of preceding and following records (30) in said variant history file;determining whether the ULIs (24) in said adjacent pair of records (30) are the same (58);if the ULIs (24) are the same, including (66) the identifying line in the desired version (40) only if the version number indicated by said following record (30) is greater than the version number of said desired version (40), if the version number indicated by the preceding record (30) in the pair is less than or equal to the version number of the desired version (40), and if the status of the identified line indicated by the preceding record (30) in the pair is active;andif the ULIs (24) are different, including (57d) the identified line in the desired version (40) only if the version number indicated by said preceding record (30) in the pair is less than or equal to the version number of the desired version (40) and if the status of the identified line indicated by the preceding record (30) in the pair is active.
- 3Die Methode von Anspruch 2, wobei:die Eintragungen (30) der in der zweiten gegebenen Version (40) aktivierten Zeilen unmittelbar der letzten Eintragung (30), welche den Status des ULI (24) für die Zeile, welche in der Textdatei unmittelbar der in der zweiten Version (40) aktivierten Zeile vorangestellt ist, folgen. Procédé selon la revendication 2 dans lequel les enregistrements (30) de lignes rendues actives dans la deuxième version donnée (40) suivent immédiatement le dernier enregistrement (30) qui indique l'état du ULI (24) pour la ligne qui précède immédiatement, dans le fichier de texte, la ligne rendue active dans la deuxième version (40). The method of claim 2 wherein: the records (30) of lines made active in the second given version (40) immediately follow the last record (30) indicating the status of the ULI (24) for the line which, in the text file, immediately precedes the line made active in the second version (40).
- 4Die Methode von Anspruch 1, wobei:die Varianten Vorgeschichtsdatei (22) des gegebenen Pfades (12) ein Set von Einträgen (30) enthält, welches jedem ULI (24) zugeordnet ist, der eine in irgendeiner Version (40) des gegebenen Pfades (12) aktiven Zeile identifiziert, wobei jeder Eintrag (30) in einem Set eine der Versionsnummern der Versionen (40) in einem gegebenen Pfad (12) angibt, wo die durch den zugeordneten ULI (24) identifizierte Zeile aktiv wird oder eine der Versionsnummern der Versionen (40) in dem gegebenen Pfad (12), wo die durch den zugeordneten ULI (24) identifizierte Zeile gelöscht wird;und wobei obengenannter Suchschritt (50-57) die folgenden Schritte enthält:das Ordnen der Eintragungen (30) in obengenannter Varianten Vorgeschichtsdatei (22), so daß der Eintrag (30), der eine Versionsnummer einer ersten gegebenen Version (40), in welcher eine gegebene Zeile aktiv wird, angibt, unmittelbar der Eintragung (30) vorangeht, welche die Versionsnummer einer zweiten gegebenen Version (40) angibt, in welcher obengenannte gegebene Zeile gelöscht ist und wo die Eintragungen (30) der Zeilen , die in der zweiten gegebenen Version (40) aktiviert wurden, unmittelbar der letzten Eintragung (30) folgen, die anzeigt, daß ein Zeile in der zweiten gegebenen Version (40) gelöscht wurde;das Lesen eines benachbarten Paares von vorhergehenden und nachfolgenden Eintragungen (30) in obengenannter Varianten Vorgeschichtsdatei (22);die Bestimmung, ob die ULls (24) im obengenannten benachbarten Paar von Eintragungen (30) dieselben sind,wenn die ULls (24) dieselben sind, einschließlich (66) der identifizierten Zeile in der gewünschten Version (40), wenn die Versionsnummer, die durch obengenannten nachfolgenden Eintrag (30) angegeben wird, größer ist als die Versionsnummer von obengenannter gewünschter Version (40), wenn die Versionsnummer, die durch den vorangehenden Eintrag (30) im Paar angezeigt wird, kleiner als oder gleich wie die Versionsnummer der gewünschten Version (40) ist, und wenn der Status der identifizierten Zeile, der durch den vorhergehenden Eintrag (30) in dem Paar angegeben wird, aktiv ist;undwenn die ULls (24) verschieden sind, einschließlich (66) der identifizierten Zeile in der gewünschten Version (40) wenn die Versionsnummer, die durch obengenannten vorangehenden Eintrag (30) in dem Paar angegeben wird, kleiner als oder gleich wie die Versionsnummer der gewünschten Version (40) ist, und wenn der Status der identifizierten Zeile, der durch den vorangehenden Eintrag (30) in dem Paar angegeben wird, aktiv ist. Procédé selon la revendication 1 dans lequel: le fichier (20) d'histoire des variantes du trajet donné (12) inclut un ensemble d'enregistrements (30) associés à chaque ULI (24) qui identifie une ligne active d'une version quelconque (40) du trajet donné (12), chaque enregistrement (30) d'un ensemble indiquant l'un des numéros de versions parmi les versions (40) d'un trajet donné (12) où la ligne identifiée par l'ULI associé (24) devient active, ou l'un des numéros de version parmi les versions (40) du trajet donné (12) où la ligne identifiée par le ULI associé (24) est supprimée;et dans lequel ladite étape d'exploration (50 à 57) comprend les étapes consistant à:ordonner les enregistrements (30) dudit fichier d'histoire des variantes (22) d'une manière telle que l'enregistrement (30) qui indique un numéro de version d'une première version donnée (40), dans laquelle une ligne donnée devient active, précède immédiatement l'enregistrement (30) qui indique le numéro de version d'une deuxième version donnée (40) dans laquelle ladite ligne donnée est supprimée, et où les enregistrements (30) de lignes rendues actives dans la deuxième version donnée (40) suivent immédiatement le dernier enregistrement (30) qui indique qu'une ligne est supprimée dans la deuxième version donnée (40);lire dans ledit fichier (22) d'histoire des variantes une paire adjacente d'enregistrements précédent et suivant (30);déterminer si les ULI (24) de ladite paire adjacente d'enregistrements (30 ) sont les mêmes;si les ULI (24) sont les mêmes, inclure (66) dans la version souhaitée (40) la ligne identifiée si le numéro de version indiqué par ledit enregistrement suivant (30) est supérieur au numéro de version de ladite version souhaitée (40), si le numéro de version indiqué par l'enregistrement précédent (30) de la paire est inférieur ou égal au numéro de version de la version souhaitée (40), et si l'état de la ligne identifiée indiqué par l'enregistrement précédent (30) de la paire est actif;etsi les ULI (24) sont différents, inclure (66) dans la version souhaitée (40) la ligne identifiée si le numéro de version indiqué par ledit enregistrement précédent (30) de la paire est inférieur ou égal au numéro de version de la version souhaitée (40) et si l'état de la ligne identifiée indiqué par l'enregistrement précédent (30) de la paire est actif. The method of claim 1 wherein: the variant history file (22) of the given path (12) includes a set of records (30) associated with each ULI (24) identifying a line active in any version (40) of the given path (12), with each record (30) in a set indicating one of the version numbers of the versions (40) in a given path (12) where the line identified by the associated ULI (24) becomes active, or one of the version numbers of the versions (40) in the given path (12) where the line identified by the associated ULI (24) is deleted;and wherein said step of searching (50-57) comprises the steps of:Ordering the records (30) in said variant history file (22) so that the record (30) indicating a version number of the a first given version (40), in which a given line becomes active, immediately precedes the record (30) indicating the version number of a second given version (40) in which said given line is deleted, and where the records (30) of lines made active in the second given version (40) immediately follow the last record (30) indicating a line is deleted in the second given version (40);reading an adjacent pair of preceding and following records (30) in said variant history file (22);determining whether the ULIs (24) in said adjacent pair of records (30) are the same;if the ULIS (24) are the same, including (66) the identified line in the desired version (40) if the version number indicated by said following record (30) is greater than the version number of said desired version (40), if the version number indicated by the preceding record (30) in the pair is less than or equal to the version number of the desired version (40), and if the status of the identified line indicated by the preceding record (30) in the pair is active;andif the ULIs (24) are different, including (66) the identified line in the desired version (40) if the version number indicated by said preceding record (30) in the pair is less than or equal to the version number of the desired version (40) and if the status of the identified line indicated by the preceding record (30) in the pair is active.
- 5A computer (17), including a memory, operating under control of a stored program for allowing a user to store a source file module (10), to create and store a new version of the module (10), to create and name independent paths (12) of development of the module (10), with each path (12) being an ordered set of versions (40), characterised by:means (13) for building an indexed line file (20) stored in the memory, including the text of all lines active in all versions (40) in all paths (12), with each line in said indexed line file (20) identified by a unique line identifier ULI (24);means (15) for building a variant history file (22) stored in the memory, including a set of records (30) associated with each ULI (24) identifying a line included in any version (40) along a given path (12) where each record (30) in a given set of records (30) associated with a given ULI (24) indicates a version (40) in the given path (12) where the line identified by the ULI (24) becomes active or a version (40) in the given path (12) where the ULI (24) was deleted;andmeans (13) for utilizing said variant history file (22) and indexed line file (20) to directly generate the text file (22) of a desired version (40) in said given path (12) without creating any intermediate versions (40). Ein Computer (17), der einen Speicher enthält, der unter Steuerung eines gespeicherten Programmes arbeitet, um einem Benutzer zu ermöglichen, ein Quellendateimodul (10) zu speichern, um eine neue Version des Moduls (10) herzustellen und zu speichern, um unabhängige Pfade (12) der Entwicklung des Moduls (10) herzustellen und zu benennen, wobei jeder Pfad (12) ein geordnetes Set von Versionen (40) ist, das charakterisiert ist durch: Mittel (13) um eine indizierte Zeilendatei (20) zu konstruieren, die im Speicher gespeichert ist und den Text von allen in allen Versionen (40) in allen Pfaden (12) aktiven Zeilen enthält, wobei jede Zeile in obengenannter indizierter Zeilendatei (20) durch einen einzigen Zeilenidentifizier ULI (24) identifiziert ist;Mittel (15) um eine Varianten Vorgeschichtsdatei (22), die im Speicher gespeichert ist, zu erzeugen, und die ein Set von Eintragungen (30) enthält, das zu jedem ULI (24) zugeordnet ist, der eine Zeile, die in irgendeiner Version (40) entlang eines gegebenen Pfades (12) enthalten ist, identifiziert, wobei jeder Eintrag (30) in einem gegebenen Set von Eintragungen (30), das einem gegebenen ULI (24) zugeordnet ist, eine Version (40) in dem gegebenen Pfad (12) angibt, wo die von dem ULI (24) identifizierte Zeile aktiv wird, oder eine Version (40) in dem gegebenen Pfad (12), wo das ULI (24) gelöscht wurde;undMittel (13), um obengenannte Varianten Vorgeschichtsdatei (22) und die indizierte Zeilendatei (20) dazu zu benutzen, direkt die Textdateien (22) einer gewünschten Version (40) in obengenanntem gegebenem Pfad (12) zu erzeugen, ohne irgendwelche Zwischenversionen (40) zu erzeugen. Ordinateur (17) qui inclut une mémoire fonctionnant sous commande d'un programme mémorisé pour permettre à un utilisateur de mémoriser un module (10) de fichier de source, afin de créer et de mémoriser une nouvelle version du module (10), de créer et de nommer des trajets indépendants (12) de développement du module (10), chaque trajet (12) étant un ensemble ordonné de versions (40), caractérisé par: un moyen (13) de constitution d'un fichier indexé (20) de lignes mémorisé dans la mémoire, incluant le texte de toutes les lignes actives de toutes les versions (40) de tous les trajets (12), chaque ligne dudit fichier indexé (20) de lignes étant identifiée par un élément d'identification unique de ligne ULI (24);un moyen (15) de constitution d'un fichier (22) d'histoire des variantes mémorisé dans la mémoire, incluant un ensemble d'enregistrements (30) associés à chaque ULI (24) qui identifie une ligne incluse dans une version quelconque (40) d'un trajet donné (12) où chaque enregistrement (30) d'un ensemble donné d'enregistrements (30) associé à un ULI donné (24) indique une version (40) du trajet donné (12) où la ligne identifiée par le ULI (24) devient active ou une version (40) du trajet donné (12) où le ULI (24) a été supprimé;etun moyen (13) d'utilisation dudit fichier (22) d'histoire des variantes et dudit fichier indexé (20) de lignes pour engendrer directement le fichier (22) de texte d'une version souhaitée (40) dudit trajet donné (12) sans créer aucune version intermédiaire (40).
- 6Der Computer (17) von Anspruch 5, weiterhin charakterisiert durch:Jeder einzelne Zeilenidentifizierer ULI (24) enthält eine Wechselmarke (26), die der Operation zugeordnet ist, die Version (40) zu erzeugen, wo die durch das ULI (24) identifizierte Zeile zuerst aktiv wird;und obengenannte Varianten Vorgeschichtsdatei (22) hat ihre Eintragungen (30) so geordnet, daß der Eintrag (30), der eine Versionsnummer einer ersten gegebenen Version (40), in welcher eine gegebene Zeile aktiv wird, anzeigt, unmittelbar dem Eintrag (30) vorangestellt ist, welcher die Versionsnummer einer zweiten gegebenen Version (40) anzeigt, in welcher obengenannte gegebene Zeite gelöscht ist und wo die Eintragungen (30) der Zeilen, die in der zweiten gegebenen Version (40) aktiviert wurden, unmittelbar dem letzten Eintrag (30) folgen, der anzeigt, daß eine Zeile in der zweiten gegebenen Version (40) gelöscht ist. Ordinateur (17) selon la revendication 5 caractérisé en outre en ce que chaque élément d'identification unique ULI (24) inclut une étiquette de modification (26) associée à l'opération de création de la version (40) où la ligne identifiée par le ULI (24) devient active en premier lieu;etles enregistrements dudit fichier (22) d'histoire des variantes sont ordonnés d'une manière telle que l'enregistrement (30) qui indique un numéro de version d'une première version donnée (40), dans laquelle une ligne donnée devient active, précède immédiatement l'enregistrement (30) qui indique le numéro de version d'une deuxième version donnée (40) dans laquelle ladite ligne donnée est supprimée, et où les enregistrements (30) de lignes rendues actives dans la deuxième version donnée (40) suivent immédiatement le dernier enregistrement (30) qui indique qu'une ligne est supprimée dans la deuxième version donnée (40). The computer (17) of claim 5 further characterised in that: each unique line identifier ULI (24) includes a change tag (26) associated with the operation of creating the version (40) where the line identified by the ULI (24) first becomes active;andsaid variant history file (22) has its records (30) ordered so that the record (30) indicating a version number of a first given version (40), in which a given line becomes active, immediately precedes the record (30) indicating the version number of a second given version (40) in which said given line is deleted, and where the records (30) of lines made active in the second given version (40) immediately follow the last record (30) indicating a line is deleted in the second given version (40).
Independent claims6
101 paragraphs in 2 sections, as filed
The present invention relates generally to the field of software development tools and more particularly relates to a system for maintaining control of various versions of a file and for merging different versions of the same file.
An important type of software development tool manages multiple versions of a common text file, e.g., a program. Typically, this function is required in a software development environment where programs are revised frequently, often by different people, and where previous versions must be preserved. Also, it may be required to merge the changes introduced into independent versions of a common file.
One approach to developing such a management system is described in an article by Tichy entitled "RCS-A System for Version Control", Software-Practice and Experience, John Wiley & Sons, New York, 1985, pp. 637-654. That article describes common methods for preserving every version of a file and for merging versions of the same file.
Turning first to the method of preserving versions, the delta method is described in the above-referenced article. A delta is a series of edit commands that change one version into another. A delta may be a forward delta, for changing a given version into the immediately following version, or a reverse delta, for changing a given version into an immediately preceding version.
A reverse delta system is often preferred because experience shows that often the most frequently required version is the last version created. In a reverse delta system, the last version is stored intact and may be immediately accessed. Text files of previous versions must be created by successively applying reverse deltas to the last version created.
A significant limitation in using the delta system to create a text file of a version separated from the last version by several intermediate versions is that each intermediate version must be created and changed by the appropriate delta. This iterative process limits the speed of accessing intermediate versions.
A given file may develop along a single path where each version evolves from the immediately preceding version. Often however, development of a file may proceed along several independent paths. For example, a first programmer may check out a given file and proceed to create several versions along a first path. A second programmer may check out the same given file and proceed to create several versions along a second path. The changes introduced along the first and second paths may be completely independent, e.g., the two programmers might not talk to each other and have different development goals. The paths are related since they diverge from the same given file.
In some cases, it may be desirable to merge two versions created along independent paths to form a resulting version incorporating the changes introduced along both paths. For example, referring to the example above, the first programmer may be improving a first aspect of the given program and the second programmer may be improving a second aspect. When they have completed their tasks, a new program improved in both aspects may be created by merging versions from the two paths.
A problem in merging occurs when the same line of the given program is changed in both versions to be merged. It is possible that the changes made will conflict and not be compilable. Accordingly, merge programs have been developed including rules for processing lines changed in both versions.
In many existing systems, the lines included in a given version are identified by line numbers. During a merge, the line numbers in the versions to be merged are compared and lines identified by specified line numbers are included in a resulting version. However, often lines will be duplicated in the resulting version because identical lines will have different line numbers in the versions to be merged.
Accordingly, there is a need for improved software development tools having efficient systems for preserving development versions of a text file, creating desired versions, and merging versions developed along independent paths.
The present invention is a version management tool having improved systems for preserving all versions, creating any desired version, and merging versions developed from a common file along independent paths.
In a preferred embodiment, the fundamental unit for editing is a complete line of text. Thus, to change a character in a given line of text requires that the given line be deleted and replaced by a new line having the desired character changed. Every line active (included) in any version of a given file is included in an indexed line file and tagged by a unique line identifier (ULI). The history of the status of each line in the various versions is recorded in a variant history file.
EP-A-0230616 relates to a version control system in which there is a separate LV (logical view) file for each version. As depicted in Figure 3, the records in this file indicate which lines from a source database are to be included in the version. There are no version numbers in the records because the file including the records corresponds to a version. Also, the records do not indicate in which version a particular line becomes active.
The Proceedings of Trends and Applications 1981; Advances in Software Technology, May 1981, pages 163-171, discloses a system similar to that of EP-A-0230616 in that a correction set is formed for each version. The correction set contains INSERT and DELETE commands which modify the immediately preceding version of a path. Thus "in principle we can always go back to any previous version by yanking all correction sets subsequent to the desired version". Further, later versions are based on intermediate versions. Thus, the creation of a particular version of a path requires the creation of all intermediate versions preceding the version.
According to the present invention, there is provided a method for creating a text file of a desired version of a module, where the desired version is included in a given one of many possible paths, with each path including an ordered set of versions, each identified by a version number, of a common module, with each version in a path evolving from the immediately preceding version and characterised by: <ul id="ul0001" list-style="none" compact="compact"><li>storing where the status history of the activation and deletions of each line active in any version in a path are stored in a variant history file for the path;</li><li>storing where the text of the lines active in all versions in all paths are stored in an indexed line file with each line in the indexed line file identified by a unique line identifier ULI;</li><li>identifying the given path in which the desired version is included and the version number of the desired version in said given path;</li><li>searching the variant history file of the given path to determine which lines in the line file are active in the desired version; and</li><li>retrieving from said line file the text of lines determined to be active in the desired version.</li></ul>
According to a further aspect of the invention, there is provided a computer, including a memory, operating under control of a stored program for allowing a user to store a source file module, to create and store a new version of the module, to create and name independent paths of development of the module, with each path being an ordered set of versions, characterised by: <ul id="ul0002" list-style="none" compact="compact"><li>means for building an indexed line file stored in the memory, including the text of all lines active in all versions in all paths, with each line in said indexed line file identified by a unique line identifier ULI;</li><li>means for building a variant history file stored in the memory, including a set of records associated with each ULI identifying a line included in any version along a given path where each record in a given set of records associated with a given ULI indicates a version in the given path where the line identified by the ULI becomes active or a version in the given path where the ULI was deleted; and</li><li>means for utilizing said variant history file and indexed line file to directly generate the text file of a desired version in said given path without creating any intermediate versions.</li></ul>
In the preferred embodiment, the line file and variant history files of a FROM path and a TO path are utilised to merge a FROM version in the FROM path into a TO version in the TO path to form a resulting version. The result of the merge is that lines are either added to or deleted from the new TO version. Accordingly, the effect of the merge operation is to modify the TO variant history file to create a resulting variant history for the TO path. This resulting variant history is utilized to create the text file of any desired version, including the resulting version, in the TO path.
According to a further aspect of the invention, a unique change tag is associated with the operation of creating each version of a module. When a line is first added to a version, the ULI created for the line includes the change tag associated with the version and a sequence number. A change tag list may be built for any version that includes all change tags which have been applied to create the version.
In an embodiment of the merge operation, the change tag list for the TO and FROM versions are built and a common list of change tags which are included in both lists is built. For lines identified by ULIs having a change tag in the common list, the status of the line in the resulting version is determined by the status of the line in the TO and FROM versions and a predetermined set of rules.
One embodiment includes a computer, operating under control of a stored program, for executing the program to perform the procedures described above. The indexed line file and variant history file are built, stored in the computer memory, and utilized to create a text file of a desired version or to merge two versions to form a resulting version.
Other advantages and features of the invention will become apparent in view of the drawings and following detailed description. <ul id="ul0003" list-style="none" compact="compact"><li>Fig. 1A is a schematic diagram of a path of development;</li><li>Fig. 1B is a schematic diagram depicting the formation of a second path;</li><li>Fig. 2 is a schematic diagram depicting a naming system;</li><li>Fig. 3A is a schematic diagram illustrating the use of an exemplary embodiment of the version management tool loaded into a general purpose digital computer;</li><li>Fig. 3B is a block diagram of a general purposed digital computer configured as a version management tool;</li><li>Fig. 4 is a schematic diagram depicting a set of variant history (VH) files and line (LN) files;</li><li>Fig. 5 is a schematic diagram depicting the text files corresponding to the variant history files depicted in Fig. 4;</li><li>Fig. 6 is a flow chart of a procedure for creating the text file of a desired version;</li><li>Fig. 7 is a schematic diagram depicting a merge operation;</li><li>Fig. 8 is a diagram of a status matrix;</li><li>Fig. 9 is a schematic diagram depicting exemplary text files, variant history files, and line file for explaining the merge operation;</li><li>Figs. 10 through 18 are flow charts of the procedures for performing the merge operation; and</li><li>Fig. 19 is a schematic diagram depicting a complex merge operation.</li></ul>
The present invention includes a unique system for organizing information regarding multiple versions of a common text file. This information is organized in a manner that provides for directly creating the text file of any previously created version of the common text file and for efficiently merging the changes introduced in any two independent paths to create a resulting version incorporating those changes.
The terminology utilized herein will now be defined with reference to Figs. 1 and 2. Referring to Fig. 1, a module is the name of a source file 10 checked into the system. In this example the module name is APPLY. A version of the module may be conceptualized in terms of a simple text file. For example, if text file X is in the system, then it can be duplicated to create text file Y which is then modified. Thus Y represents a different version of X. The file Y is then checked back into the system. Versions of files checked into the system are immutable and a request for any file checked into the system retrieves the identical file checked in.
In Fig. 1A, a path 12 of development of the module 10 is depicted. Each version in the path is identified by a path name (MAIN) and a version number. To create version (MAIN.1) the module (MAIN.0) is checked out (duplicated) and line aaa is added between line 222 and 333. This modified text file is then checked in as (MAIN.1). A unique change tag (tag), comprising a field of characters, is associated with each operation that creates a new version. Thus, a tag is associated with the operation that creates (MAIN. 1). The versions in a path are identified by version numbers (VN).
Each version in the path 12 is created by modifying the immediately preceding version in the path. Fig. 1B depicts two paths of a module formed from the version (MAIN.0). Referring to Fig. 1B, the new path 12(b) is formed when a version in a path is checked out, given a new path name, modified, and checked back in. In Fig. 1B, the version (MAIN.0) is checked out, given the path name USER, modified, and checked in. Thus, the version created from (MAIN.0) is (USER.0). Changes subsequently entered into the two paths will be independent.
The naming scheme utilized will now be described with reference to Fig. 2. A variant is a logical name that is used to associate one or more versions on a single path of a particular module. This name consists of a module name and a path name. For example, in Fig. 1B the two variant names are APPLY:MAIN and APPLY:USER. A version-id includes a path name and version number, e.g., (MAIN.1).
Fig. 3A is a schematic diagram depicting the use of version management procedures 13 loaded into a general purpose digital computer for creating and using a version management system. A user utilizes a user interface to check-in a source file module, check-out desired versions of the module, modify the checked-out version, check-in the checked-out version, name and create new paths of development, and merge modules in independent paths to create a resulting module incorporating the changes introduced along the independent paths.
The text files of the various versions are encoded in machine readable form and stored in a structured database 15. The version management procedures 13 build an indexed line file in which the text of every line of every version is stored. Each line is identified by a unique line identifier (ULI). The version management procedures 13 also create a variant history (VH) file in structured database 15 for each path. The variant history file stores information relating to the status of the lines in each version along a path.
Additionally, a merge procedure utilizes the indexed line file and variant history files to generate a resulting version incorporating changes introduced along two paths.
Fig. 3B depicts a standard general purpose digital computer 17 configured as a version management system. The various version management procedures are stored as program data in the computer memory. The computer memory includes the main memory and peripheral storage devices such as disk drives, tape drives and so forth. During operation, the program data is executed in standard fashion. The various version management procedures are executed to build the structured database in the computer memory, to create text files of desired versions, and to merge versions from independent paths.
Fig. 4 is a schematic diagram of a line file (LN) 20 and variant history file (VH) 22 utilized to form different versions of a given module on a given path. A new VH file is created for each independent path of a module. Whenever a new version of a variant is created, a comparison is made between the existing latest version and the text file being checked in. The comparison reports three types of differences, resulting in an updated VH file being written and, possibly, additions being made to the LN file. These three types of differences are: <dl id="dl0001" compact="compact"><dt>Deletion:</dt><dd>Lines were deleted in the text file. In the new VH file, new records for these ULIs are written, indicating that these lines are "deleted" in this version.</dd><dt>Insertion:</dt><dd>New lines were introduced in the text file, directly before a line with ULI "M" which was unchanged. New ULIs are assigned to the new lines, and new records are introduced in the VH file, directly before the first record for line M. New records containing the text of the new lines are added to the LN file, with the new ULIs as their keys.</dd><dt>Replacement:</dt><dd>New lines were introduced in the text file, replacing one or more lines in the version which was checked out. This change is treated as a combination of a deletion and insertion. In the new VH file, new records for the deleted lines are written, indicating that these lines are "replaced" in this version. New ULIs are assigned to the new lines, and new records are introduced in the VH file, directly after the records for the replaced lines. New records containing the text of the new lines are added to the LN file, with the new ULIs as their keys.</dd></dl>
In the present embodiment, the smallest unit of change within a module is a line. Thus, if a character in a line is modified this modification is accomplished by deleting the unmodified line and replacing it with a new line.
Referring now to Fig. 4, the LN 20 is an indexed file that includes the lines active in all versions in all paths of development of a module. Each line is identified by a unique line identifier (ULI) 24 consisting of two parts; a change tag 26 (which identifies when the line was added to the module) and a sequence number 28 (which identifies the line within a tag's changes). The ULI functions as an address for the lines in the LN 20 and is utilized to access the lines to create a text file of a selected version.
The variant history file 22 comprises an ordered list of records 30. These records 30 indicate changes of status of the lines, identified by the ULIs in the records, in the various versions along the given path. The change of status of a given line is indicated by the values of a status flag (A for active), (R for replaced), and (D for deleted) and a version number (VN) of a version in the given path. For example, if a line identified by ULI(1) is added in version 3, then the VH record includes ULI(1), the value of the status flag is (A), and VN=3. The VH file may include several records for a given ULI if the line identified undergoes several status changes. The records in the VH file are ordered to facilitate the direct creation of a text file for any version in the path.
Referring back to Fig. 1B, a version (USER.-1) created in the USER path is a copy of (MAIN.0). The VH file of the MAIN PATH (MVH) is copied to form the VH file of the USER path (UVH). The UVH is then updated to reflect the change made to (MAIN.0), or equivalently (USER.-1), to form (USER.0).
The creation of (USER.-1) is necessary to create a VH file for the USER path and illustrates the fact that the paths diverge from the module (MAlN.0). The path of development of both paths up to and including version (MAIN.0)/(USER.-1) is identical. To reflect this identity, the UVH file is built by creating a set of records corresponding to the records in the MVH file. The ULI and status flag in corresponding records are identical. However, the VNs in the UVH records are set to -1.
The creation of (USER.-1) is transparent. The first version in the USER path subject to normal processing is (USER.0), where the line uuu is added to the text file of (MAIN.0).
It is possible to reactivate a deleted or replaced line using a backout operation. This operation removes changes associated with a particular version of a module. For example, a line identified by a given ULI might be deleted to create the particular module. If this change were subsequently backed out, then the line would become active again. This activation would be reflected in a VH record including the given ULI, the VN of the version created by the backout operation, and the status flag (A).
Fig. 5 depicts three versions 40 of a module formed on a first path. The LN 20 and VH files 22 corresponding to these versions are depicted in Fig. 4. The formation of the LN 20 and VH 22 for the first path will now be described.
The LN 20a for the first version 40a includes all the lines of the first version 40a with each line identified by a ULI 24. The field E in the ULIs is the change tag associated with the operation of creating the first version.
In the second version 40b, the first line of the first version 40a has been replaced by a new line. Referring to the second LN 20b, the new line has been added to the LN 20b and is identified by a ULI where the field S1 is the change tag associated with the operation of creating the second version 40b. The LN 20b has been updated to include the lines added in the operation of creating the second version 40b. Note that no lines are ever deleted from the LN 20b.
Referring now to the VH files, the first VH file 22a includes four records 30, each including one of the ULIs of the lines in the first version and specifying that the lines become active in version 0. The second VH file 22b, includes all the records from the first VH file 22a and additional records indicating the changes entered into the second version 40b. More specifically, the records are sequentially numbered to clarify the following description. The second record has been added to indicate that line E.1 has been replaced in the second version. Note that the records with the same ULI are adjacent. The third record identifies the line that has replaced the deleted line. This record immediately follows the last record indicating a replaced line.
Again, as with the LN 20, the second VH file 22b is formed by updating the first VH file 22a and no records have been deleted.
Referring again to Fig. 5, the third version 40c is updated by replacing the first two lines of the second version 40b with new lines. The new LN 20c is formed by adding the lines identified by ULIs S2.1 and S2.2 to the second LN 20b. The field S2 in the ULIs is the change tag associated with the operation of creating the third version.
Turning to the third VH file 22c, those records having VNs equal to 0 or 1 are the records from the second VH file 22b. The fourth record indicates that the line identified by S1.1 is replaced in the third version; the sixth record indicates that the line identified by E.2 is replaced in the third version; and, the seventh and eighth records indicate that the lines identified by S2.1 and S2.2 are added in the third version. The records indicating lines added in the third version immediately follow the last record indicating that a line has been replaced.
At this point, all the information required to create the text file of any version in the path is included in the LN 20c and the VH 22c. Further, the text file of a selected version is created directly without the requirement of creating intermediate versions.
Fig. 6 is a flow chart illustrating the procedure for creating a selected version, VN=M, in a path.
Referring to Fig. 6, the first VH record is read 50 and saved 52. An attempt is then made to read 54 the next VH record. If there are no more records then the end of the file has been reached 56 and the process branches to a closing label (B) 57. Otherwise, the ULIs of the saved and read records are then compared 58 to determine whether they are different. If they are not different then, because of the ordering of the records in the VH file, the second record indicates the version number where the identified line is replaced or deleted. Accordingly, the version number of the read record is compared 60 to M to determine whether the identified line was deleted in a version following the version being created. If this version number is not greater than M, then the line was deleted in a preceding version or the desired version and is not included in the version M. Accordingly, the process branches back to point A.
If this version number is greater than M, then the line is deleted in a subsequent version in the path. Thus, the value of the status flag is examined 62 and the version number of the saved record is compared 64 to M. If the version number in the saved record is less than or equal to M and the value of the status flag is (A) then the identified line becomes active in a preceding or the desired version, is retrieved from the line file, and is included in the text file of the version M. If the version number is greater than M then this ULI does not affect version M and the process branches back to point A.
Returning to step 58, if the ULIs are different then the value of the status flag in the saved record is examined 62 and the VN is compared 64 to M. The line identified by the ULI in the saved record is included 66 in the text file if the value of the status flag in the saved record is (A) and the VN is less than or equal to M. If the version number in the saved record is greater than M, then the identified line was introduced in a version following version M and is not present in version M. In this case, the process branches to point A.
Each adjacent pair of records in the VH is processed, with the first record in the pair being the saved record and the second record in the pair being the next read record, as described above until the end of the VH file is reached.
The closing subroutine 57 will now be described. The last record is examined to determine if status flag is (A) 57b, and if the VN is less than or equal to M 57c. If both these conditions are met than the line identified by the ULI in the last record is included 57d in version M. Otherwise, the line is not included and the process returns 57e to a calling program.
A specific example of the operation of this process to create version 1 of Fig. 5 utilizing the VH and line file 20(c) and 22(c) of Fig. 4 will now be described for the case M=1. Referring now to Figs. 4-6, the ULIs of the first pair of records, the first and second, are not different 58 and the VN of the second record is not greater than 1 60. Thus, the line identified by the ULI is replaced in version 1 and is not included.
The ULIs of the next pair of records, the second and third, are different 58, the VN in the second record is equal to M 64, but the status flag is not (A) 62. Thus, the line identified by the ULI is not included.
The ULIs in the next pair of records, the third and fourth, are not different 58, the VN in the fourth record is greater than M 60, the value of the status flag in the third record is (A) 62, and the VN of the first record is equal to M 64. Accordingly, the line identified by the first record, stu, is included 66 in the text file of version 1. The process for creating the remainder of the text file for version 1 follows directly from the above description.
It is now apparent that the procedure depicted in Fig. 6 is able to utilize the VH and LN files for a given path and directly create the text file of a selected version in the path.
An important feature of the present system is the ability to merge changes introduced along two independent paths into a resulting version. This procedure is illustrated in Fig. 7. The letters in parentheses are the change tags associated with the operation of creating each version. These change tags appear in the ULIs of all new lines added in the associated versions.
Versions (T.0), (T.1), and (T.2) form the first three versions in a TO path 70. The first version (F.0) in a FROM path 72 and version (T.3) in the TO path both diverge from (T.2). Each path has its own VH file and shares a single common LN file.
The operation of merging version (F.2), the FROM version, into version (T.4), the TO version, creates a resulting version (T.5) reflecting the changes made along both paths subsequent to their divergence at version.(T.2). Accordingly, a resulting VH file (RVH) must be created so that text files of all versions in the TO path, including the resulting version (T.5), may be created from the RVH file utilizing the procedure described with reference to Fig. 6.
The change lists for (F.2) and (T.4) are required to perform the merge operation. A change list is a list of the change tags which have been applied to create the version owning the list. Table 1 depicts the change lists for versions (F.2) and (T.4). <tables id="tabl0001" num="0001"><table frame="all"><title>TABLE 1</title><tgroup cols="2" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="78.75mm" /><colspec colnum="2" colname="col2" colwidth="78.75mm" /><thead valign="top"><row><entry namest="col1" nameend="col1" align="left">VERSION</entry><entry namest="col2" nameend="col2" align="left">CHANGE LIST</entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">(F.2)</entry><entry namest="col2" nameend="col2" align="left">A,B,C,S,T,U</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">(T.4)</entry><entry namest="col2" nameend="col2" align="left">A,B,C,D,E</entry></row></tbody></tgroup></table></tables>
The procedure for creating the RVH file includes the steps of generating a common list (tags in both change lists), a TO list (change list for the TO version), and a FROM list (change list for the FROM version). Table 2 depicts the change tags in these lists. <tables id="tabl0002" num="0002"><table frame="all"><title>TABLE 2</title><tgroup cols="2" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="78.75mm" /><colspec colnum="2" colname="col2" colwidth="78.75mm" /><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">COMMON LIST</entry><entry namest="col2" nameend="col2" align="left">A,B,C</entry></row><row><entry namest="col1" nameend="col1" align="left">FROM LIST</entry><entry namest="col2" nameend="col2" align="left">A,B,C,S,T,U</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">TO LIST</entry><entry namest="col2" nameend="col2" align="left">A,B,C,D,E</entry></row></tbody></tgroup></table></tables>
The status of a given line in the resulting version depends on the change tag included in the ULI identifying the given line. If the change tag is in the common list, then the status of the given line in the resulting version depends on the status of the given line in both (F.2) and (T.4) and is determined by a set of predetermined rules.
The predetermined set of rules utilized to determine the status of the given line identified by a ULI having a change tag in the common list is represented in Fig. 8 by a matrix 83. Referring to Fig. 8, the matrix 83 has its rows labelled by the status of the given line in the FROM path and its columns labelled by the status of the given line in the TO path. The elements in the matrix 83 are set forth in boxes 84 sequentially numbered from 0 to 35. The meaning of the symbols utilized to label the rows and columns of the matrix are defined in Table 3. The symbols utilized to define the matrix elements 86 are defined in Table 4. An (*) in a box 84 indicates that a new record will be written to the RVH file. The method for utilizing the matrix will be described more fully below.
TABLE 3
(Active,<=): line was active when files diverged/previously merged and has not been altered since then; <ul id="ul0004" list-style="none"><li>(Active,>): a backout of a change, resulted in a change to this ULI since the files diverged/previously merged;</li><li>(Inactive delete,<=): line was deleted when files diverged/previously merged and has not been altered since then;</li><li>(Inactive delete,>): line was deleted since the files diverged/previously merged;</li><li>(Inactive replace,<=): line was replaced when files diverged/previously merged and has not been altered since then;</li><li>(Inactive replace,>): line was replaced since the files diverged/previously merged.</li></ul>
TABLE 4
<ul id="ul0005" list-style="none"><li>A: the result of the merge is that the ULI is left active; no new VH record is written;</li><li>I: the result of the merge is that the ULI is left inactive; no new VH record is written;</li><li>R: the result of the merge is that the ULI is left replaced; no new VH record is written;</li><li>A*: create a new VH record indicating that the ULI is now active;</li><li>I*: create a new VH record indicating that the ULI is now delected;</li><li>R*: create a new VH record indicating that the ULI is now replaced.</li></ul>
The symbols <= and > indicate the result of a comparison between the change which created the VH record being considered and the common list of changes. This determines whether the VH record's information was already known when the paths diverged or were last merged, or whether the information is new since the last such point of divergence.
The mechanism currently used for deciding when a change occurred in relation to the last divergence point involves comparing the version number in a VH record with a "common version" on the path currently being considered.
The "common version" is determined by comparing the common list of tags with the list of tags present in each significant version of the T0 or FROM path, starting at the earliest version. The first such version which includes all common tags, or includes tags not found in the common list, is the desired common version.
Thus for a simple case, where version O of a new path is being merged back into the path from which it diverged, the common version would be -1.
The procedure for merging two modules will now be described with reference to Figs. 9 through 18. Fig. 9 illustrates a merge operation from version (F.0) (FROM version) in a FROM path to version (M.1) (TO version) in a MAIN path. The text file and ULIs for each version are depicted. Additionally, the VH file generated when each version was created is shown associated with the various versions. The change lists for (F.0) and (M.1) are depicted in Table 5 and the common, TO, and FROM lists are depicted in Table 6. <tables id="tabl0003" num="0003"><table frame="all"><title>TABLE 5</title><tgroup cols="2" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="78.75mm" /><colspec colnum="2" colname="col2" colwidth="78.75mm" /><thead valign="top"><row><entry namest="col1" nameend="col1" align="left">VERSION</entry><entry namest="col2" nameend="col2" align="left">CHANGE LIST</entry></row></thead><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">(F.0)</entry><entry namest="col2" nameend="col2" align="left">E,F0</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">(M.1)</entry><entry namest="col2" nameend="col2" align="left">E,M1</entry></row></tbody></tgroup></table></tables><tables id="tabl0004" num="0004"><table frame="all"><title>TABLE 6</title><tgroup cols="2" colsep="1" rowsep="0"><colspec colnum="1" colname="col1" colwidth="78.75mm" /><colspec colnum="2" colname="col2" colwidth="78.75mm" /><tbody valign="top"><row><entry namest="col1" nameend="col1" align="left">COMMON LIST</entry><entry namest="col2" nameend="col2" align="left">E</entry></row><row><entry namest="col1" nameend="col1" align="left">FROM LIST</entry><entry namest="col2" nameend="col2" align="left">E,F0</entry></row><row rowsep="1"><entry namest="col1" nameend="col1" align="left">TO LIST</entry><entry namest="col2" nameend="col2" align="left">E,M1</entry></row></tbody></tgroup></table></tables>
The VH file associated with (F.0) is the FVH, the VH file associated with (M.1) is the TVH, and the VH file associated with (M.2) is the RVH.
Fig. 10 is a flow chart listing the steps in the Merge-Main routine which coordinates the overall merge operation. This program invokes numerous subroutines which perform the detailed operations necessary to merge two paths of a module.
Referring now to Fig. 10, the first step 100 is to build a list of the module names to include and exclude from the merge. In the present example, module E is included in the merge. Next, the merge list is tested 102 to determine whether there are more modules to merge. If no, then the program branches to a closing label A 103. If yes, the LN file for module E, and VH files for the FROM and TO variants are opened 104 and a new VH file (RVH) is created 106 for the results of the merge.
Next, the procedure for merging the variant paths is called 108. These procedures are described below. If the merge is successful 110 then the variant record is updated 112, if not the program jumps to step 102. Next, a new record describing the version is created 114 and and the LN file and VH files are closed 116. The program then returns to step 102. If there are no more modules to be merged, then the closing portion 103 is executed.
Referring to the closing, a change record is built 103a to reflect the merge, the new VH file is renamed and the old one purged 103b, and the results of the merges are reported 103c.
Fig. 11 is a flow chart listing the steps of the MERGE-VARIANT-PATHS procedure. This procedure controls the mechanics of merging two paths of one module. Referring to Fig. 11, the TO list, FROM list, and common list for (F.0) and (M.1) are generated 310. The contents of these lists are set forth above in Tables 5 and 6. Next, the lists are examined 320 to determine whether the FROM list is a subset of the TO list. If yes, than there is no need to proceed further because the status of all lines in the FROM version have already been used in determining the status of the lines in the TO version.
If not, then the first record from the TVH and FVH files are read 340. Next, it is determined that the end of the file has not been reached 350. The procedure then tests the change tags in the ULIs of the read records to determine whether the tags in the ULIs in the first TVH and FVH records are in the common list 360, whether only the tag in the first TVH record is in the common list 362, whether only the tag from the first FVH record is in the common list 364, or whether neither the tag in the first FVH record nor the the tag in the first TVH record is in the common list. Depending on which condition is true, the appropriate subroutine 368, 370, 372, or 374 is called.
The operation of the MERGE-VARIANT-PATHS sub-routine 300 will be described with reference to the example illustrated in Fig. 9. The first record in the TVH file (E.0 0 A) and in the FVH file (E.0 -1 A) are read 340. The change tag (E) in both records are in the common list 360 and the subroutine PROCESS-ULI-IN-BOTH-PATHS is called 368.
Fig. 13 is a flow chart of this subroutine. Referring to Fig. 13, the ULIs in both records match 502. The read (first) TVH record is written to the new VH file 504 and the value of the status flag (A) of the record is saved 506. The next (second) TVH record (E.1 0 A) is read 508 and the saved ULI and ULI of the next read record are compared 510. In this case, the ULIs are different.
The read (first) FVH record is then examined to determine whether the version number in the record is less than or equal to the version number of (F.0) 512, and if so, the status flag of the record is saved 513. In this case, the version number (-1) in the record is less than the version number (0) of the FROM version and the status flag (A) is saved. The next (second) record (E.1 -1 A) is read 514 and the ULIs of the saved and next read FROM records are compared 516.
In this case, the ULIs are different and the saved status flags are utilized 518 to execute the case statement which implements the predetermined set of rules. As described above, this set of rules is shown as a matrix. Referring to Fig. 8, and Tables 5 and 6, for both paths the line was active before divergence and no changes have been made since then (A,<=). Accordingly, case statement 0 is executed and the line is active in the resulting version. The result of the subroutine is that the first record in the RVH file is the same as the first record in TVH file and no new record is created. The subroutine then returns 520 to the calling subroutine.
The steps 350, 360, and 368 of the MERGE-VARIANT-PATHS procedure are then repeated for the second records in TVH and FVH files and the subroutine PROCESS-ULIS- IN-BOTH-PATHS 368 is called. From the structure of the TVH and FVH files it is apparent that the first five records in those files are processed as described above and that the first five records in the RVH file are the same as the first five records in the TVH file.
Referring to Fig. 13, after the fifth TVH record is written 504 and the sixth TVH record is read 508, the ULIs of the two records are compared 510. In this case the ULIs are not different and the subroutine branches back to step 504. The sixth TVH record (E.4 1 R) is written to the RVH file, the status flag (R) is saved 506, and the seventh TVH record (F0.0 0 A) is read 508. The ULIs are then compared 510 and found to be different.
The sixth FVH record (E.4 0 R) is read 514 and its ULI is compared to the ULI of the fifth record 516. The ULIs are the same so the subroutine branches back to step 512. The status flag (R) of the sixth record is saved 513 and the seventh FVH (F0.0 0 A) record is read 516. The ULIs of the sixth and seventh records are compared 516 and found to be different.
The saved status flags are then utilized 518 to execute on of the case statements of the predetermined set of rules. As described above, this set of rules is implemented as a case statement based on the matrix shown in Fig. 8. Referring to Fig. 8, and Tables 5 and 6, for both paths the line was replaced since divergence (R,>). Accordingly, case statement 35 is executed, the line is replaced in the resulting version, a new record is generated and written to the RVH file, and a conflict message is generated. The result of the executing the subroutine is that the record (E.4 2 R) is generated and written as the seventh RVH record. The subroutine then returns 520 to the calling subroutine.
The change tags of the ULIs in the seventh TVH and FVH records are compared to the change tags in the common list and it is determined that neither tag is in the common list 360,362,364. Accordingly, the subroutine NEW-LINES-IN-BOTH-PATHS is called 374.
Fig. 17 is a flow chart for this subroutine. In Fig. 17, first the TVH file records are processed 900 and then the FVH file records are processed 910. If it is determined that lines from both paths are active in the resulting version 920, then a warning message is printed and the active lines are displayed 922. This feature calls attention to the possible conflict between the lines added along the independent paths and provides for a quick review of the lines added. The method of keeping track of these active lines is described below.
The subroutine PROCESS-ULI-IN-TO-PATH is called in step 900. Fig. 14 is a flow chart for this subroutine. In Fig. 14, the seventh TVH record is written to the new VH 600, the eighth TVH record is read 602, and the ULIs of the two records are compared 606. In this case the ULIs are different, the status flag in the seventh record is examined 608 to determine whether the value of the status flag is (A), and active-TO-ULI-count is incremented 608. This count keeps track of new ULIs added in the TO path since the point of divergence and which are active. The change tag of the ULI in the eighth record is then compared to the change tags in the common list 610 to determine whether the ULI is in the common list. In this case it is not and the sub-routine branches back to step 600.
The processing of the eighth through eleventh TVH records is the same as described above with the result that these records become the ninth through twelfth records of the RVH. The twelfth TVH record (E.5 0 A) is read 602, the count is incremented 609, it is determined that the new ULI read is in the common list 610, and the subroutine returns to step 900 of the calling subroutine. The subroutine PROCESS-ULI-IN-FROM-PATH is then called 910.
Fig. 16 is a flow chart of that subroutine. In Fig. 16, the status flag (A) of the seventh FVH record is saved 800 because the version number in the record is equal to version number of the FROM version, the eighth FVH record is read 810, and ULIs of the records are compared 812. In this case, the ULIs are different and a new VH record is built 814 that reflects the last saved state. This new VH record, (F0.0 2 A), indicates that the line identified by the ULI (F0.0) becomes active in version 2, the resulting version, in the TO path as a result of the merge operation and which are active. The record built is written to the RVH file 816 and the status flag of the record is examined 818 to determine whether its value is (A). If so, active-FROM-ULI-count is incremented 820. This count keeps track of new lines added from the FROM path during the merge operation and which are active. The change tag of the ULI in the eighth record is then compared 822 to the change tags in the common list to determine whether the ULI is in the common list. In this case it is not and the subroutine branches back to step 800.
The processing of the eighth through tenth FVH records is the same as described above with the result that the fourteenth through sixteenth records are built reflecting that these lines become active as a result of the merge.
It is determined 822 that the change tag in the ULI of the eleventh FVH record is in the common list and the subroutine returns 824 to step 910 of the calling subroutine. The counts generated in the two called subroutines indicate that new lines in both paths become active in the resulting version and the warning message is printed and the new lines are displayed 922. The subroutine then returns to step 350 of the calling procedure.
It is then determined that the change tags of the eleventh FVH record and twelfth TVH record are in the common list 360, and the procedure PROCESS-ULI-IN-BOTH-PATHS described above are utilized to write the twelfth through fifteenth TVH records to the new VH. It is then determined that the end of a VH file is reached and part (B), Fig. 12, is executed to complete the merge.
Fig. 18 depicts the subroutine SKIP-THIS-MERGE-ULI. This subroutine is not used in the above example but may be called by the subroutine PROCESS-FROM-PATH-VH-RECS when the FROM version is not the last version created in the FROM path. This subroutine prevents changes made in the FROM path subsequent to the creation of the FROM version from being included in the resulting version.
The generation of change lists and determination of the point of divergence for the example of Fig. 9 was possible from inspection. However for more complicated cases where several independent paths exist and merges between paths have been made previously, the generation of the list is more difficult. Fig. 20 is a schematic diagram depicting such a complex case. The use of the change list to generate the common list is important to the above-described merge procedure and facilitates the generation of conflict messages and other advantageous features.
A generalized procedure for building the change list for a version will now be described. This procedure is an application of graph theory. A significant version is defined as either the first version in a variant (i.e. version 0), or was the version from which a new variant was created, or was the version created as the result of a merge operation, or was the version from which a merge was done. All significant versions are candidates for being the common versions in a merge operation.
The versions of the module are considered as part of a directed, acyclic graph. All versions of the module are descendents of the original version (version 0) in the original path. Each version can be created in only one of four ways, i.e., a) by adding a module to the database; b) by checking in a checked out version; c) by creating a new path; or, d) as the result of a merge operation.
The algorithm for creating the change tags starts by representing the graph of versions as a graph of significant versions. Each such version is assigned its own change list, which is initially empty. The first (earliest) significant node has its own change tag placed in its change list, Next, the call VISIT(earliest node) is made, where VISIT is the following recursive procedure:<img file="EP0339901B1_D0001.tif" />
Where the procedure COMBINE is:<img file="EP0339901B1_D0002.tif" />
The invention has now been described in terms of preferred embodiments. Modifications and substitutions will now be apparent to persons of ordinary skill in the art. In particular, the rules for processing ULIs in both the TO and FROM paths may be varied according to specific systems requirements. Therefore, it is not intended that the invention be limited except as provided by the appended claims.
Contents2
16 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16
Every citation, both waysCites: the store holds 1 of 2
| Document | Relation | Office | Cited during |
|---|---|---|---|
| CN1320455C | Cited by | China | Search report |
| EP0230616A | Cites | European Patent Office (EPO) | – |
10 members in 6 offices
Priority claims5
| Document | Office | Kind | Date |
|---|---|---|---|
| 183190 | United States of America | – | |
| 18319088 | United States of America | A | |
| 18319088 | United States of America | A | |
| 183190 | – | – | – |
| US19880183190 | – | – | – |
Members10
| Document | Office | Kind | |
|---|---|---|---|
| AU3337189A | Australia | A | |
| EP0339901A2 | European Patent Office (EPO) | A2 | |
| JPH0228831A | Japan | A | |
| US4912637A | United States of America | A | |
| AU615536B2 | Australia | B2 | |
| EP0339901A3 | European Patent Office (EPO) | A3 | |
| CA1316262C | Canada | C | |
| EP0339901B1This record | European Patent Office (EPO) | B1 | |
| DE68925746D1 | Germany | D1 | |
| DE68925746T2 | Germany | T2 |
28 legal events, as 2 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Lapsed in a contracting state announced via postgrant inform. from nat. office to epoLapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Notification of lapseLapsedST | ST | FR | |
| Gb: european patent ceased through non-payment of renewal feeCeasedGBPC | GBPC | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Se: european patent has lapsedLapsedEUG | EUG | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionPLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTAA | STAA | EP | |
| It: translation for a ep patent filedITF | ITF | EP | |
| Fr: translation filedET | ET | EP | |
| Corresponds to:REF | REF | EP | |
| Designated contracting statesAK | AK | EP | |
| (expected) grantGRAA | GRAA | EP | |
| Despatch of communication of intention to grant a patentGRAH | GRAH | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Search report despatchedPUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phasePUAI | PUAI | EP |
Numbers
- Publication
- 0339901
- Publication, DOCDB
- 0339901
- Publication, EPODOC
- EP0339901
- Application
- 89304043
- Application, DOCDB
- 89304043
- Application, EPODOC
- EP19890304043
Titles3
- German
- Versionen-Verwaltungswerkzeug
- English
- Improved version management tool
- French
- Outil de gestion de version
Classification
- CPC, 2
- G06F8/71
- Y10S707/99954
- IPC, 3
- G06F9 06
- G06F9 44
- G06F12 00
Designated states5
- Contracting states, 5
- Germany
- France
- United Kingdom
- Italy
- Sweden
