JP2004127156A - Version management method and version management program - Google Patents

Version management method and version management program Download PDF

Info

Publication number
JP2004127156A
JP2004127156A JP2002293522A JP2002293522A JP2004127156A JP 2004127156 A JP2004127156 A JP 2004127156A JP 2002293522 A JP2002293522 A JP 2002293522A JP 2002293522 A JP2002293522 A JP 2002293522A JP 2004127156 A JP2004127156 A JP 2004127156A
Authority
JP
Japan
Prior art keywords
edition
program
version
difference information
conflict
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2002293522A
Other languages
Japanese (ja)
Inventor
Shinji Kobayashi
小林 慎治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Renesas Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2002293522A priority Critical patent/JP2004127156A/en
Publication of JP2004127156A publication Critical patent/JP2004127156A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve quality of centralized management of a user program derived from editing of a program to be developed. <P>SOLUTION: In a step 11, revision difference information is provided by comparing programs for every line before and after revision and extracting lines of difference where addition, substitution and deletion are made. In a step 12, presence of competition with program of each edition is determined by comparing edition difference information and revision difference information of each edition for every line and determining presence of duplicated lines. In a step 13, a competition message with the program of each edition is output according to the competition presence determination in the step 12. In a step 14, a version is changed and the revision difference information and a number of versions are respectively registered as plate information according to the competition absence determination in the step 12. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、開発対象プログラムの版管理方法に関し、特に、開発対象プログラムから編集により派生したユーザプログラムに対し管理単位としてエディションを用いる版管理方法に関する。
【0002】
【従来の技術】
一般に、ソフトウェアの開発において、開発対象のプログラムは、仕様に基づいて作成され、仕様変更または不具合発生により機能の追加,置換または削除などの変更または修正が頻繁に加えられながら開発される。この開発対象プログラムは、開発中、登録された開発対象プログラムを基準にして、変更または修正が検討され、ある時点で、登録中の開発対象プログラムが更新される。このとき、これらの更新および出力を管理するため、開発対象プログラムに対し更新ごとの管理単位として版を用いた版管理方法が従来から実施されている。
【0003】
従来、この種の版管理方法は、一般的な構成のコンピュータに版管理プログラムをインストールして各コマンド入力に応じて実行させることにより実施され、改版登録ごとに、更新前後のプログラムを行単位で比較して追加,置換および削除された差分の行を更新前後の更新差分情報として抽出し、更新差分情報および版数を版情報としてそれぞれ登録し、プログラム出力時に、指定版から最新版までの更新差分情報と最新版プログラムとをマージし指定版のプログラムを出力する。
【0004】
この従来の版管理方法は、各版の更新差分情報および最新版プログラムを登録し最新版プログラムとのマージによりプログラムを出力する方法であるので、登録のためのメモリ容量が削減され、大規模なソフトウェア開発に適用され、また、最も頻繁に利用される最新版プログラムが、最も高速に出力される。
【0005】
一般に、プログラムの開発では、開発の効率化または短TAT化のため、基本となる開発対象プログラムの開発と並行して、各ユーザ向けのプロジェクト開発が進行することが多く、各ユーザアプリケーションに対応したユーザプログラムが、開発途上の開発対象プログラムからユーザアプリケーションごとの機能差に基づきそれぞれ編集されて派生する。派生したユーザプログラムは、開発対象プログラムが改版される度に、対応を検討する必要があるものであり、その数の増加と共に、改版時の技術工数が増加することとなる。
【0006】
これらユーザプログラムをメンテナンスするため、開発対象プログラムからユーザプログラムへ編集した変更部分と、開発対象プログラムとを独立にそれぞれライブラリ登録し、ライブラリ登録された変更部分および開発対象プログラムを行単位でマージしユーザプログラムを出力し、開発対象プログラムの版管理と一元化する方法も提案されている(例えば、特許文献1参照)。
【0007】
【特許文献1】
特開2000−112800号公報(段落番号0006〜0010、図1)
【0008】
【発明が解決しようとする課題】
一般に、基本となる開発対象プログラムの開発とユーザプログラムの開発とを同期させることは、ユーザ要求または競合他社への対応もあり、かなり難しい。まして、開発対象プログラムの開発完了を待って、ユーザプログラムの開発を始めることは、ほとんどできない。従って、ユーザプログラムの開発は、開発対象プログラムの開発と非同期に開始され、非同期に終了する。
【0009】
例えば、ユーザプログラムの開発開始時に編集対象とした編集前の版の開発対象プログラムは、仕様変更または不具合発生により更新されて改版され、開発終了時には、最新版プログラムではなくなっている。
【0010】
このような場合に、上述した従来の開発対象プログラムの版管理とユーザプログラムのメンテナンスとの一元化方法を適用しても、編集およびシミュレーションにより開発されたユーザプログラムの変更部分は、最新版プログラムに対応したものでなく、ライブラリ登録され、最新版プログラムとマージして、ユーザプログラムが出力されても、出力されたユーザプログラムは、最新版プログラムに対応したものとして動作保証されず、品質確保のため、実際上、編集前版数の版のプログラムに対応したものに限定される。
【0011】
出力されたユーザプログラムを最新版プログラムに対応したものとして動作保証するためには、ユーザプログラムの開発終了時に、再度、最新版プログラムを編集対象とする編集変換を行いシミュレーションする必要があり、更に、これら編集変換およびシミュレーションを改版ごとに繰り返す必要があり、多大な技術工数が発生する。
【0012】
このように、開発対象プログラムの開発が或る程度まで収束していない場合は、メンテナンスされるユーザプログラムは、品質確保のため、実際上、編集前の版のプログラムに対応したものに限定されることになる。
【0013】
従って、本発明の目的は、開発対象プログラムから編集により派生したユーザプログラムの一元管理の品質を向上させることにある。
【0014】
【課題を解決するための手段】
そのため、本発明は、開発対象プログラムに対し更新ごとの管理単位として版を用い改版登録ごとに更新前後の更新差分情報を登録し、ユーザアプリケーションごとの機能差に基づき前記開発対象プログラムから編集により派生したユーザプログラムに対し編集ごとの管理単位としてエディションを用いエディション登録ごとに編集前後の編集差分情報を登録し、指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する版管理方法において、
前記更新差分情報を抽出し各エディションのプログラムとの競合の有無を判定して競合メッセージ出力または改版登録を行う改版登録ステップと、
前記編集差分情報を抽出し最新版プログラムとの競合の有無を判定して競合メッセージ出力またはエディション登録を行うエディション登録ステップと、
版指定またはエディション指定の無効/有効を判定して無効メッセージ出力またはプログラム出力を行うプログラム出力ステップとを含んでいる。
【0015】
また、本発明は、開発対象プログラムに対し更新ごとの管理単位として版を用い改版登録ごとに更新前後の更新差分情報を登録し、ユーザアプリケーションごとの機能差に基づき前記開発対象プログラムから編集により派生したユーザプログラムに対し編集ごとの管理単位としてエディションを用いエディション登録ごとに編集前後の編集差分情報を登録し、指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する処理をコンピュータに実行させる版管理プログラムにおいて、
前記処理が、前記更新差分情報を抽出し各エディションのプログラムとの競合の有無を判定して競合メッセージ出力または改版登録を行う改版登録ステップと、前記編集差分情報を抽出し最新版プログラムとの競合の有無を判定して競合メッセージ出力またはエディション登録を行うエディション登録ステップと、
版指定またはエディション指定の無効/有効を判定して無効メッセージ出力またはプログラム出力を行うプログラム出力ステップとを含んでいる。
【0016】
また、前記改版登録ステップが、更新前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記更新差分情報とする抽出ステップと、
各エディションの前記編集差分情報と前記更新差分情報とを行単位で比較し重複行の有無により各エディションのプログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して各エディションのプログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して改版し前記更新差分情報および版数を版情報としてそれぞれ登録する登録ステップとを含んでいる。
【0017】
また、前記エディション登録ステップが、編集前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記編集差分情報とする抽出ステップと、
編集前の版から最新版までの前記更新差分情報と前記編集差分情報とを行単位で比較し重複行の有無により最新版プログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して編集前の版から最新版までの各版プログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して前記編集差分情報,編集前版数およびエディション名をエディション情報としてそれぞれ登録する登録ステップとを含んでいる。
【0018】
また、前記プログラム出力ステップが、指定版の版数が指定エディションの編集前版数以上であるか否かにより版指定またはエディション指定の有効/無効を判定する判定ステップと、
この判定ステップの無効判定に対応して版指定またはエディション指定の無効メッセージを出力するメッセージ出力ステップと、
前記判定ステップの有効判定に対応して指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムとして出力する出力ステップとを含んでいる。
【0019】
【発明の実施の形態】
本発明の版管理方法は、従来と同じく、一般的な構成のコンピュータに版管理プログラムをインストールして各コマンド入力に応じて実行させることにより実施される。
【0020】
また、本発明の版管理方法は、従来と同じく、開発対象プログラムに対し更新ごとの管理単位として版を用い、改版登録ごとに更新前後の更新差分情報を登録し、また、ユーザアプリケーションごとの機能差に基づき前記開発対象プログラムから編集により派生したユーザプログラムに対し編集ごとの管理単位としてエディションを用い、エディション登録ごとに編集前後の編集差分情報を登録する。また、プログラム出力時に、指定版から最新版までの更新差分情報と指定エディションの編集差分情報と最新版プログラムとをマージし、指定版および指定エディションのプログラムを出力する。
【0021】
次に、本発明について、図面を参照して説明する。図1,図2および図3は、本発明の版管理方法の実施形態を示す流れ図である。本実施形態の版管理方法は、入力された各コマンドを判定して改版登録ステップ1,エディション登録ステップ2,プログラム出力ステップ3へそれぞれ分岐し、図1,図2,図3は、本実施形態の版管理方法における改版登録ステップ1,エディション登録ステップ2,プログラム出力ステップ3の処理例をそれぞれ示す。
【0022】
改版登録ステップ1は、更新前後の更新差分情報を抽出し、各エディションのプログラムとの競合の有無を判定して、競合メッセージ出力または改版登録を行う。本実施形態では、図1に示されるように、ステップ11〜14からなり、ステップ11において、更新前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し更新差分情報とし、ステップ12において、この更新差分情報と、各エディションの編集差分情報と更新差分情報とを行単位で比較し、重複行の有無により各エディションのプログラムとの競合の有無を判定する。また、ステップ13において、ステップ12の競合有り判定に対応して、各エディションのプログラムとの競合メッセージを出力し、ステップ14において、ステップ12の競合無し判定に対応して、改版し、更新差分情報および版数を版情報としてそれぞれ登録する。
【0023】
エディション登録ステップ2は、編集前後の編集差分情報を抽出し最新版プログラムとの競合の有無を判定して競合メッセージ出力またはエディション登録を行う。本実施形態では、図2に示されるように、ステップ21〜24からなり、ステップ21において、編集前後のプログラムを行単位で比較して、追加,置換および削除された差分の行を抽出し編集差分情報とし、ステップ22において、編集前の版から最新版までの更新差分情報と編集差分情報とを行単位で比較し、重複行の有無により最新版プログラムとの競合の有無を判定する。ステップ23において、ステップ22の競合有り判定に対応して、編集前の版から最新版までの各版プログラムとの競合メッセージを出力し、ステップ24において、ステップ22の競合無し判定に対応して、編集差分情報,編集前版数およびエディション名をエディション情報としてそれぞれ登録する。
【0024】
プログラム出力ステップ3は、版指定またはエディション指定の無効/有効を判定して無効メッセージ出力またはプログラム出力を行う。本実施形態では、図3に示されるように、ステップ31〜33からなり、ステップ31において、指定版の版数が指定エディションの編集前版数以上であるか否かにより、版指定またはエディション指定の有効/無効を判定し、ステップ32において、ステップ31の無効判定に対応して、版指定またはエディション指定の無効メッセージを出力し、ステップ33において、ステップ31の有効判定に対応して、指定版から最新版までの更新差分情報と指定エディションの編集差分情報と最新版プログラムとをマージし、指定版および指定エディションのプログラムとして出力する。
【0025】
次に、本実施形態の版管理方法を用いて改版登録,エディション登録およびプログラム出力する例についてそれぞれ説明する。
【0026】
まず、プログラム開発者が開発対象プログラムを変更または修正しシミュレーションして改版登録する場合、改版登録コマンドの入力に対応して、改版登録ステップ1において、更新前後のプログラムから更新差分情報が抽出され、各エディションのプログラムとの競合の有無が判定され、競合無しの場合、改版登録が行われ、競合有りの場合、競合有りエディションについて、競合メッセージが出力される。
【0027】
この競合メッセージを参照して、プログラム開発者は、競合有りエディションについて、開発対象プログラムを再変更または再修正して競合を回避できるか検討し、競合回避が可能の場合、再び、シミュレーションして、改版登録コマンドの入力に対応して、改版登録ステップ1において改版登録が行われる。また、競合回避が不可の場合、プログラム開発者は、競合有りエディションのエディション担当者と対策を協議し、エディション側の対策が可能か検討し、例えば、対策可の場合、シミュレーションして、別途のエディション登録が行われ、対策不可の場合、競合有りエディションのユーザプログラムを開発対象プログラムと独立して開発する。
【0028】
また、エディション担当者が開発対象プログラムから編集およびシミュレーションにより派生したユーザプログラムをエディション登録する場合、エディション登録コマンドの入力に対応して、エディション登録ステップ2において、編集前後のプログラムから編集差分情報が抽出され、最新版プログラムとの競合の有無が判定され、競合無しの場合、エディション登録が行われ、競合有りの場合、競合有り版数について、競合メッセージが出力される。
【0029】
この競合メッセージを参照して、エディション担当者は、競合有り版数について、ユーザプログラムを再編集して競合を回避できるか検討し、競合回避が可能の場合、再び、シミュレーションして、エディション登録コマンドの入力に対応して、エディション登録ステップ2においてエディション登録が行われる。また、競合回避が不可の場合、エディション担当者は、プログラム開発者と対策を協議し、開発対象プログラム側の対策が可能か検討し、例えば、対策可の場合、シミュレーションして、開発対象プログラムが改版されて最新版を編集前版数としてエディション登録が行われ、対策不可の場合、このエディションのユーザプログラムを開発対象プログラムと独立して開発する。
【0030】
また、プログラム開発者またはエディション担当者が指定版および指定エディションのプログラムを出力する場合、プログラム出力コマンドの入力に対応して、プログラム出力ステップ3において、版指定またはエディション指定の無効/有効が判定され、指定有効の場合、プログラム出力が行われ、指定無効の場合、無効メッセージが出力される。
【0031】
この無効メッセージを参照して、プログラム開発者またはエディション担当者は、指定版または指定エディションを確認および変更して、再び、プログラム出力コマンドを入力し、指定版および指定エディションのプログラムが出力される。
【0032】
上述したように、本発明による版管理方法を用いた場合、改版登録およびエディション登録の時点で、各エディションのプログラムまたは最新版プログラムとの間の競合の有無が判定され、競合有りの場合、競合メッセージが出力され、プログラム開発者およびエディション担当者が対策を協議することを促され、常に、指定版から最新版までの更新差分情報と指定エディションの編集差分情報と最新版プログラムとが競合無しの状態で登録され、プログラム出力の時点で正確にマージされ、有効な指定版および指定エディションのプログラムが任意に出力される。
【0033】
ここで、各エディションのプログラムおよび最新版プログラムの間で更新差分情報および編集差分情報間の競合以外の動作不具合がある場合は、本実施形態の版管理方法に限らず、当然、出力された指定版および指定エディションのプログラムも動作不具合を有することになる。しかし、これら動作不具合は、本来、シミュレーションまたはエミュレーションにより確認されるべきものである。一般には、改版登録およびエディション登録の時点で、プログラム開発者またはエディション担当者は常にシミュレーションにより動作確認して登録するので、本実施形態の版管理方法を用いた場合、動作確認された更新差分情報,編集差分情報および最新版プログラムが登録され、動作確認された指定版および指定エディションのプログラムが出力される。
【0034】
なお、本実施形態の版管理方法において、指定版から最新版までの更新差分情報と指定エディションの編集差分情報と最新版プログラムとをマージするとして説明した。しかし、この説明に限定されず、例えば、プログラム出力時に、版およびエディションの指定が共に無い場合、最新版プログラムをマージ無しで出力する変形例も可能である。また、版の指定が無い場合は、従来と同じく、最新版が暗黙に指定される変形例も可能である。
【0035】
【発明の効果】
以上説明したように、本発明による版管理方法を用いた場合、改版登録およびエディション登録の時点で、各エディションのプログラムまたは最新版プログラムとの間の競合の有無が判定され、競合有りの場合、競合メッセージが出力され、プログラム開発者およびエディション担当者が対策を協議することを促され、常に、指定版から最新版までの更新差分情報と指定エディションの編集差分情報と最新版プログラムとが競合無しの状態で登録され、プログラム出力の時点で正確にマージされ、有効な指定版および指定エディションのプログラムが任意に出力される。
【0036】
また、改版登録およびエディション登録の時点でプログラム開発者およびエディション担当者が常にシミュレーションにより動作確認して登録することにより、動作確認された指定版および指定エディションのプログラムが出力され、開発対象プログラムから編集により派生したユーザプログラムの一元管理の品質が向上するなどの効果がある。
【図面の簡単な説明】
【図1】本発明の版管理方法の実施形態における改版登録ステップ1の処理例を示す流れ図である。
【図2】本発明の版管理方法の実施形態におけるエディション登録ステップ2の処理例を示す流れ図である。
【図3】本発明の版管理方法の実施形態におけるプログラム出力ステップ3の処理例を示す流れ図である。
【符号の説明】
1  改版登録ステップ
2  エディション登録ステップ
3  プログラム出力ステップ
11〜14,21〜24,31〜33  ステップ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a version management method for a development target program, and more particularly to a version management method that uses an edition as a management unit for a user program derived from a development target program by editing.
[0002]
[Prior art]
Generally, in the development of software, a program to be developed is created based on specifications, and is developed while changes or modifications such as addition, replacement or deletion of functions are frequently added due to specification changes or occurrence of defects. This development target program is considered for change or modification based on the registered development target program during development, and at some point, the registered development target program is updated. At this time, in order to manage these updates and outputs, a version management method using a version as a management unit for each update of the development target program has conventionally been implemented.
[0003]
Conventionally, this type of version control method is implemented by installing a version control program on a computer having a general configuration and executing the program in response to each command input. Extract, add, replace, and delete lines of difference as update difference information before and after updating, register the update difference information and version number as version information, and update from the specified version to the latest version at program output. Merges the difference information with the latest version program and outputs the specified version program.
[0004]
This conventional version management method is a method of registering update difference information of each version and the latest version program and outputting the program by merging with the latest version program, so that the memory capacity for registration is reduced, and a large-scale The latest version of a program applied to software development and used most frequently is output at the highest speed.
[0005]
In general, in program development, project development for each user often progresses in parallel with development of a basic development target program in order to improve development efficiency or shorten TAT, and each user application is supported. The user program is edited and derived from the developing target program under development based on the functional difference of each user application. Derived user programs need to be examined each time the development target program is revised, and as the number increases, the technical man-hours at the time of revision will increase.
[0006]
In order to maintain these user programs, the changed part edited from the development target program to the user program and the development target program are separately registered in the library, and the changed part registered in the library and the development target program are merged line by line and the user A method of outputting a program and unifying it with version control of a development target program has also been proposed (for example, see Patent Document 1).
[0007]
[Patent Document 1]
JP-A-2000-112800 (paragraphs 0006 to 0010, FIG. 1)
[0008]
[Problems to be solved by the invention]
In general, it is quite difficult to synchronize the development of a basic program to be developed with the development of a user program, in response to user requests or competitors. Furthermore, it is almost impossible to start the development of the user program after the completion of the development of the development target program. Therefore, the development of the user program is started asynchronously with the development of the development target program, and ends asynchronously.
[0009]
For example, an unedited version of the development target program that was edited at the start of development of the user program is updated and revised due to a specification change or occurrence of a defect, and is no longer the latest version program at the end of development.
[0010]
In such a case, even if the above-mentioned unified method of version control of the development target program and maintenance of the user program is applied, the changed part of the user program developed by editing and simulation corresponds to the latest version program. If the user program is output after being registered in the library and merged with the latest version of the program, the output of the user program is not guaranteed to be compatible with the latest version of the program. Actually, the program is limited to the one corresponding to the program of the edition before edition.
[0011]
In order to guarantee the operation of the output user program as the one corresponding to the latest version program, it is necessary to perform the edit conversion again for the latest version program at the end of the development of the user program, and to simulate. These editing conversions and simulations must be repeated for each revision, resulting in a great deal of technical man-hours.
[0012]
As described above, when the development of the development target program does not converge to a certain extent, the user program to be maintained is actually limited to a program corresponding to the version before the edition in order to ensure quality. Will be.
[0013]
Therefore, an object of the present invention is to improve the quality of centralized management of a user program derived from a development target program by editing.
[0014]
[Means for Solving the Problems]
Therefore, the present invention uses a version as a management unit for each update of a development target program, registers update difference information before and after the update for each revision update registration, and derives from the development target program by editing based on a functional difference for each user application. An edition is used as a management unit for each edition for the edited user program, and edit difference information before and after editing is registered for each edition registration, the update difference information from the designated version to the latest version, the edit difference information of the designated edition and the latest version In a version management method of merging with a program and outputting a designated edition and a designated edition program,
A revision registration step of extracting the update difference information, determining whether there is a conflict with the program of each edition, and outputting a conflict message or registering the revision;
An edition registration step of extracting the edit difference information, determining the presence or absence of a conflict with the latest version program, and outputting a conflict message or edition registration;
A program output step of determining whether the edition designation or edition designation is invalid / valid and outputting an invalid message or a program output.
[0015]
In addition, the present invention uses a version as a management unit for each update of a development target program, registers update difference information before and after the update for each revision update registration, and derives by editing from the development target program based on a functional difference for each user application. An edition is used as a management unit for each edition for the edited user program, and edit difference information before and after editing is registered for each edition registration, the update difference information from the designated version to the latest version, the edit difference information of the designated edition and the latest version In a version management program for causing a computer to execute a process of merging a program and outputting a program of a specified edition and a specified edition,
The process is a revision registration step of extracting the update difference information, determining whether there is a conflict with the program of each edition, and outputting a conflict message or registering the revision, and a conflict with the latest program by extracting the edit difference information. Edition registration step of determining whether or not there is a conflict message output or edition registration,
A program output step of determining whether the edition designation or edition designation is invalid / valid and outputting an invalid message or a program output.
[0016]
An update step of comparing the program before and after the update on a line-by-line basis to extract a line of a difference added, replaced, and deleted, and using the difference line as the update difference information;
A determination step of comparing the edit difference information and the update difference information of each edition on a line-by-line basis and determining whether there is a conflict with a program of each edition based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with the program of each edition in response to the conflict determination in the determination step;
A registration step of revising the version in response to the determination of no conflict in the determination step and registering the update difference information and the version number as version information.
[0017]
An edition step of comparing the program before and after editing in units of lines to extract lines of added, replaced, and deleted differences to obtain the edited difference information;
A determination step of comparing the update difference information from the version before edition to the latest version and the edit difference information on a line-by-line basis and determining whether there is a conflict with the latest version program based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with each version program from the edition before editing to the latest version in response to the conflict existence determination in this determination step;
A registration step of registering the edited difference information, the edition number before edition, and the edition name as edition information in correspondence with the determination of no conflict in the determination step.
[0018]
A determining step of determining whether a version designation or an edition designation is valid / invalid based on whether or not the edition number of the designated edition is equal to or more than the edition number before edition of the designated edition;
A message output step of outputting a version-specific or edition-specific invalid message in response to the invalidity determination of this determination step;
An output step of merging the update difference information from the designated version to the latest version, the edited difference information of the designated edition, and the latest version program in correspondence with the validity determination of the determination step, and outputting as a program of the designated version and the designated edition; Contains.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
The version management method of the present invention is implemented by installing a version management program on a computer having a general configuration and executing the program according to each command input, as in the related art.
[0020]
In addition, the version management method of the present invention uses a version as a management unit for each update of a development target program, registers update difference information before and after an update for each registration of a revision, and provides a function for each user application as in the past. An edition is used as a management unit for each edit for a user program derived from the development target program by editing based on the difference, and edit difference information before and after editing is registered for each edition registration. Further, at the time of outputting the program, the update difference information from the designated version to the latest version, the edited difference information of the designated edition, and the latest version program are merged, and the programs of the designated version and the designated edition are output.
[0021]
Next, the present invention will be described with reference to the drawings. FIGS. 1, 2 and 3 are flowcharts showing an embodiment of the version management method of the present invention. The version management method according to the present embodiment determines each input command and branches to a revision registration step 1, an edition registration step 2, and a program output step 3, respectively. FIG. 1, FIG. 2, and FIG. 3 shows a processing example of the revision registration step 1, edition registration step 2, and program output step 3 in the version management method of FIG.
[0022]
The revision registration step 1 extracts update difference information before and after the update, determines whether there is a conflict with the program of each edition, and outputs a conflict message or registers the revision. In the present embodiment, as shown in FIG. 1, the program includes steps 11 to 14. In step 11, the program before and after the update is compared in units of lines to extract the added, replaced, and deleted lines of the difference to obtain the update difference. In step 12, the update difference information is compared with the edit difference information and the update difference information of each edition on a line-by-line basis, and it is determined whether there is a conflict with the program of each edition based on the presence or absence of a duplicate line. In step 13, a conflict message with the program of each edition is output in response to the conflict determination in step 12, and in step 14, the edition is revised in response to the conflict absence determination in step 12, and the update difference information is updated. And the version number are registered as version information.
[0023]
The edition registration step 2 extracts edited difference information before and after editing, determines whether or not there is a conflict with the latest version program, and outputs a conflict message or edition registration. In the present embodiment, as shown in FIG. 2, steps 21 to 24 are performed, and in step 21, the program before and after editing is compared in units of lines, and lines of added, replaced, and deleted differences are extracted and edited. In step 22, the updated difference information from the version before the edition to the latest version and the edited difference information are compared on a line-by-line basis, and it is determined whether there is a conflict with the latest version program based on the presence or absence of a duplicate line. In step 23, a conflict message with each version program from the edition before edition to the latest version is output in response to the conflict determination in step 22, and in step 24, in response to the conflict absence determination in step 22, The editing difference information, the edition number before editing, and the edition name are registered as edition information.
[0024]
The program output step 3 outputs invalid message or program by determining invalid / valid of version designation or edition designation. In the present embodiment, as shown in FIG. 3, the process includes steps 31 to 33, and in step 31, depending on whether or not the edition number of the designated edition is equal to or greater than the edition number before edition of the designated edition, the edition designation or edition designation is performed. In step 32, an invalid message for designating a version or edition is output in response to the invalidity determination in step 31, and in step 33, the designated version is designated in response to the validity determination in step 31. The latest difference program from the latest version to the latest version, the edit difference information of the specified edition, and the latest version program are merged and output as a program of the specified version and the specified edition.
[0025]
Next, examples of edition registration, edition registration, and program output using the version management method of the present embodiment will be described.
[0026]
First, when a program developer changes or modifies a development target program and simulates and registers a revision, in response to the input of a revision registration command, in a revision registration step 1, update difference information is extracted from the program before and after the update, The presence or absence of a conflict with the program of each edition is determined. If there is no conflict, a revision is registered. If there is a conflict, a conflict message is output for the conflicted edition.
[0027]
With reference to the conflict message, the program developer considers whether the conflicted edition can be changed or modified again to avoid the conflict, and if the conflict can be avoided, simulates again. In response to the input of a revision registration command, the revision registration is performed in a revision registration step 1. If conflict avoidance is not possible, the program developer discusses countermeasures with the edition person in charge of the edition with conflict and examines whether measures can be taken on the edition side. If edition registration is performed and measures cannot be taken, the user program of the edition with contention is developed independently of the development target program.
[0028]
When the edition person registers the user program derived from the development target program by editing and simulation, the edition difference information is extracted from the program before and after editing in the edition registration step 2 in response to the edition registration command input. Then, it is determined whether or not there is a conflict with the latest version program. If there is no conflict, edition registration is performed. If there is a conflict, a conflict message is output for the conflicted version number.
[0029]
Referring to the conflict message, the edition manager examines whether or not conflict can be avoided by re-editing the user program for the conflicting version number. If conflict can be avoided, the edition manager simulates again and executes the edition registration command. In step S2, edition registration is performed. If conflict avoidance is not possible, the edition manager discusses the countermeasures with the program developer and examines whether countermeasures are possible on the development target program side. If the edition is revised and the latest version is registered as the edition number before editing and edition is registered, and if measures cannot be taken, the user program of this edition will be developed independently of the development target program.
[0030]
Further, when the program developer or edition manager outputs a program of the designated version and the designated edition, in response to the input of the program output command, in the program output step 3, the invalid / valid of the edition designation or edition designation is determined. If the specification is valid, the program is output. If the specification is invalid, an invalid message is output.
[0031]
With reference to this invalid message, the program developer or edition manager confirms and changes the designated version or the designated edition, and inputs the program output command again, and the designated edition and the designated edition program are output.
[0032]
As described above, when the version management method according to the present invention is used, at the time of edition registration and edition registration, it is determined whether or not there is a conflict with the program of each edition or the latest version program. A message is output, prompting program developers and edition managers to discuss countermeasures.Always, there is no conflict between the update difference information from the specified version to the latest version, the edit difference information of the specified edition, and the latest version of the program. Registered in the state, merged correctly at the time of program output, a valid specified edition and specified edition of the program are arbitrarily output.
[0033]
Here, when there is an operation defect other than the conflict between the update difference information and the edit difference information between the program of each edition and the latest version program, the output specification is not limited to the version management method of the present embodiment. The version and the specified edition of the program also have a malfunction. However, these operation defects should be originally confirmed by simulation or emulation. In general, at the time of edition registration and edition registration, the program developer or edition staff always confirms the operation by simulation and registers it. Therefore, when the version management method of the present embodiment is used, the operation-confirmed update difference information The edited difference information and the latest version program are registered, and the specified version and the specified edition program whose operation has been confirmed are output.
[0034]
In the version management method of the present embodiment, the description has been made assuming that the update difference information from the designated version to the latest version, the edit difference information of the designated edition, and the latest version program are merged. However, the present invention is not limited to this description. For example, when the version and edition are not specified at the time of program output, a modified example in which the latest version program is output without merging is also possible. If no version is specified, a modification in which the latest version is implicitly specified is possible as in the conventional case.
[0035]
【The invention's effect】
As described above, when the version management method according to the present invention is used, at the time of edition registration and edition registration, it is determined whether or not there is a conflict with the program of each edition or the latest version program. A conflict message is output, prompting program developers and edition managers to discuss countermeasures, and there is no conflict between the update difference information from the specified version to the latest version, the edit difference information of the specified edition, and the latest version of the program , And are merged accurately at the time of program output, and a valid specified edition and program of the specified edition are arbitrarily output.
[0036]
In addition, at the time of edition registration and edition registration, the program developer and edition staff always check the operation by simulation and register, so that the program of the specified edition and the specified edition whose operation is confirmed is output and edited from the development target program As a result, the quality of the unified management of the user program derived is improved.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a processing example of a revision registration step 1 in an embodiment of a version management method of the present invention.
FIG. 2 is a flowchart showing a processing example of an edition registration step 2 in the embodiment of the version management method of the present invention.
FIG. 3 is a flowchart showing a processing example of a program output step 3 in the embodiment of the version management method of the present invention.
[Explanation of symbols]
1 Revision registration step 2 Edition registration step 3 Program output steps 11 to 14, 21 to 24, 31 to 33 steps

Claims (8)

開発対象プログラムに対し更新ごとの管理単位として版を用い改版登録ごとに更新前後の更新差分情報を登録し、ユーザアプリケーションごとの機能差に基づき前記開発対象プログラムから編集により派生したユーザプログラムに対し編集ごとの管理単位としてエディションを用いエディション登録ごとに編集前後の編集差分情報を登録し、指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する版管理方法において、
前記更新差分情報を抽出し各エディションのプログラムとの競合の有無を判定して競合メッセージ出力または改版登録を行う改版登録ステップと、
前記編集差分情報を抽出し最新版プログラムとの競合の有無を判定して競合メッセージ出力またはエディション登録を行うエディション登録ステップと、
版指定またはエディション指定の無効/有効を判定して無効メッセージ出力またはプログラム出力を行うプログラム出力ステップとを含むことを特徴とする版管理方法。
The version is used as a management unit for each update for the development target program, and the update difference information before and after the update is registered for each revision registration, and the user program derived from the development target program by editing is edited based on the functional difference for each user application. The edition is used as the management unit for each edition, edit difference information before and after editing is registered for each edition registration, and the update difference information from the specified version to the latest version, the edit difference information of the specified edition, and the latest version program are merged and specified. In the version management method of outputting the version and the program of the specified edition,
A revision registration step of extracting the update difference information, determining whether there is a conflict with the program of each edition, and outputting a conflict message or registering the revision;
An edition registration step of extracting the edit difference information, determining the presence or absence of a conflict with the latest version program, and outputting a conflict message or edition registration;
A program output step of determining invalid / valid of version designation or edition designation and outputting an invalid message or program output.
前記改版登録ステップが、更新前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記更新差分情報とする抽出ステップと、
各エディションの前記編集差分情報と前記更新差分情報とを行単位で比較し重複行の有無により各エディションのプログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して各エディションのプログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して改版し前記更新差分情報および版数を版情報としてそれぞれ登録する登録ステップとを含む、請求項1記載の版管理方法。
An extracting step of comparing the program before and after the update on a line-by-line basis, extracting the added, replaced, and deleted difference lines to obtain the updated difference information;
A determination step of comparing the edit difference information and the update difference information of each edition on a line-by-line basis and determining whether there is a conflict with a program of each edition based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with the program of each edition in response to the conflict determination in the determination step;
2. A version management method according to claim 1, further comprising a registration step of updating the version in response to the determination of no conflict in the determination step and registering the update difference information and the version number as version information.
前記エディション登録ステップが、編集前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記編集差分情報とする抽出ステップと、
編集前の版から最新版までの前記更新差分情報と前記編集差分情報とを行単位で比較し重複行の有無により最新版プログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して編集前の版から最新版までの各版プログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して前記編集差分情報,編集前版数およびエディション名をエディション情報としてそれぞれ登録する登録ステップとを含む、請求項1または2記載の版管理方法。
An edition registering step of comparing a program before and after editing in units of lines, extracting lines of added, replaced, and deleted differences to obtain the edited difference information;
A determination step of comparing the update difference information from the version before edition to the latest version and the edit difference information on a line-by-line basis and determining whether there is a conflict with the latest version program based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with each version program from the edition before editing to the latest version in response to the conflict existence determination in this determination step;
3. The version management method according to claim 1, further comprising a registration step of registering the edition difference information, the edition number before edition, and the edition name as edition information in correspondence with the determination of no conflict in the determination step.
前記プログラム出力ステップが、指定版の版数が指定エディションの前記編集前版数以上であるか否かにより版指定またはエディション指定の有効/無効を判定する判定ステップと、
この判定ステップの無効判定に対応して版指定またはエディション指定の無効メッセージを出力するメッセージ出力ステップと、
前記判定ステップの有効判定に対応して指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する出力ステップとを含む、請求項1,2または3記載の版管理方法。
A determination step of determining whether a version designation or edition designation is valid / invalid based on whether or not the edition number of the designated edition is equal to or greater than the edition number before edition of the designated edition;
A message output step of outputting a version-specific or edition-specific invalid message in response to the invalidity determination of this determination step;
An output step of merging the updated difference information from the designated version to the latest version, the edited difference information of the designated edition, and the latest version program in correspondence with the validity determination of the determination step, and outputting a program of the designated version and the designated edition; The version management method according to claim 1, 2, or 3, comprising:
開発対象プログラムに対し更新ごとの管理単位として版を用い改版登録ごとに更新前後の更新差分情報を登録し、ユーザアプリケーションごとの機能差に基づき前記開発対象プログラムから編集により派生したユーザプログラムに対し編集ごとの管理単位としてエディションを用いエディション登録ごとに編集前後の編集差分情報を登録し、指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する処理をコンピュータに実行させる版管理プログラムにおいて、
前記処理が、前記更新差分情報を抽出し各エディションのプログラムとの競合の有無を判定して競合メッセージ出力または改版登録を行う改版登録ステップと、前記編集差分情報を抽出し最新版プログラムとの競合の有無を判定して競合メッセージ出力またはエディション登録を行うエディション登録ステップと、
版指定またはエディション指定の無効/有効を判定して無効メッセージ出力またはプログラム出力を行うプログラム出力ステップとを含むことを特徴とする版管理プログラム。
The version is used as a management unit for each update for the development target program, and the update difference information before and after the update is registered for each revision registration, and the user program derived from the development target program by editing is edited based on the functional difference for each user application. The edition is used as the management unit for each edition, edit difference information before and after editing is registered for each edition registration, and the update difference information from the specified version to the latest version, the edit difference information of the specified edition, and the latest version program are merged and specified. In a version management program that causes a computer to execute a process of outputting a version and a program of a specified edition,
The process is a revision registration step of extracting the update difference information, determining whether there is a conflict with the program of each edition, and outputting a conflict message or registering the revision, and a conflict with the latest program by extracting the edit difference information. Edition registration step of determining whether or not there is a conflict message output or edition registration,
A program output step of determining whether the version designation or edition designation is invalid / valid and outputting an invalid message or program output.
前記改版登録ステップが、更新前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記更新差分情報とする抽出ステップと、
各エディションの前記編集差分情報と前記更新差分情報とを行単位で比較し重複行の有無により各エディションのプログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して各エディションのプログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して改版し前記更新差分情報および版数を版情報としてそれぞれ登録する登録ステップとを含む、請求項5記載の版管理プログラム。
An extracting step of comparing the program before and after the update on a line-by-line basis, extracting the added, replaced, and deleted difference lines to obtain the updated difference information;
A determination step of comparing the edit difference information and the update difference information of each edition on a line-by-line basis and determining whether there is a conflict with a program of each edition based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with the program of each edition in response to the conflict determination in the determination step;
6. The version management program according to claim 5, further comprising a registration step of revising a version in response to the determination of no conflict in the determination step and registering the update difference information and the version number as version information.
前記エディション登録ステップが、編集前後のプログラムを行単位で比較して追加,置換および削除された差分の行を抽出し前記編集差分情報とする抽出ステップと、
編集前の版から最新版までの前記更新差分情報と前記編集差分情報とを行単位で比較し重複行の有無により最新版プログラムとの競合の有無を判定する判定ステップと、
この判定ステップの競合有り判定に対応して編集前の版から最新版までの各版プログラムとの競合メッセージを出力するメッセージ出力ステップと、
前記判定ステップの競合無し判定に対応して前記編集差分情報,編集前版数およびエディション名をエディション情報としてそれぞれ登録する登録ステップとを含む、請求項5または6記載の版管理プログラム。
An edition registering step of comparing a program before and after editing in units of lines, extracting lines of added, replaced, and deleted differences to obtain the edited difference information;
A determination step of comparing the update difference information from the version before edition to the latest version and the edit difference information on a line-by-line basis and determining whether there is a conflict with the latest version program based on the presence or absence of a duplicate line;
A message output step of outputting a conflict message with each version program from the edition before editing to the latest version in response to the conflict existence determination in this determination step;
7. The version management program according to claim 5, further comprising a registration step of registering the edition difference information, the edition number before edition, and the edition name as edition information in response to the determination of no conflict in the determination step.
前記プログラム出力ステップが、指定版の版数が指定エディションの前記編集前版数以上であるか否かにより版指定またはエディション指定の有効/無効を判定する判定ステップと、
この判定ステップの無効判定に対応して版指定またはエディション指定の無効メッセージを出力するメッセージ出力ステップと、
前記判定ステップの有効判定に対応して指定版から最新版までの前記更新差分情報と指定エディションの前記編集差分情報と最新版プログラムとをマージし指定版および指定エディションのプログラムを出力する出力ステップとを含む、請求項5,6または7記載の版管理プログラム。
A determination step of determining whether a version designation or edition designation is valid / invalid based on whether or not the edition number of the designated edition is equal to or greater than the edition number before edition of the designated edition;
A message output step of outputting a version-specific or edition-specific invalid message in response to the invalidity determination of this determination step;
An output step of merging the updated difference information from the designated version to the latest version, the edited difference information of the designated edition, and the latest version program in correspondence with the validity determination of the determination step, and outputting a program of the designated version and the designated edition; The version management program according to claim 5, 6 or 7, comprising:
JP2002293522A 2002-10-07 2002-10-07 Version management method and version management program Withdrawn JP2004127156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002293522A JP2004127156A (en) 2002-10-07 2002-10-07 Version management method and version management program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002293522A JP2004127156A (en) 2002-10-07 2002-10-07 Version management method and version management program

Publications (1)

Publication Number Publication Date
JP2004127156A true JP2004127156A (en) 2004-04-22

Family

ID=32284400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002293522A Withdrawn JP2004127156A (en) 2002-10-07 2002-10-07 Version management method and version management program

Country Status (1)

Country Link
JP (1) JP2004127156A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058368A (en) * 2005-08-23 2007-03-08 Yokogawa Electric Corp Collating device for program
JP2009515264A (en) * 2005-11-01 2009-04-09 インテンショナル ソフトウェア コーポレーション Method and system for control of documents and source code

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058368A (en) * 2005-08-23 2007-03-08 Yokogawa Electric Corp Collating device for program
JP4556807B2 (en) * 2005-08-23 2010-10-06 横河電機株式会社 Program verification device
JP2009515264A (en) * 2005-11-01 2009-04-09 インテンショナル ソフトウェア コーポレーション Method and system for control of documents and source code

Similar Documents

Publication Publication Date Title
JP5235357B2 (en) Method and program for replicating a data set and synchronizing with a master data set
US7856621B2 (en) Method for synchronization of concurrently modified interdependent semi-derived artifacts
JP5652228B2 (en) Database server device, database update method, and database update program
JPH10232891A (en) Work group computing for electronic design automation
US20080208554A1 (en) Simulator development system and simulator development method
KOCH et al. Distributed graph transformation with application to visual design of distributed systems
JP4140917B2 (en) Verification work support system and method
Stevens Connecting software build with maintaining consistency between models: towards sound, optimal, and flexible building from megamodels
JP6651977B2 (en) Information processing apparatus, compiling method, and compiling program
CN109271199A (en) A kind of method and system for database continuous integrating and script file management
US8245163B1 (en) Partial compilation of circuit design with new software version to obtain a complete compiled design
JP4724387B2 (en) Program conversion program, program conversion apparatus, and program conversion method
US11349908B2 (en) Generating templates for deployment of system services
Varró et al. Automated program generation for and by model transformation systems
JP2004127156A (en) Version management method and version management program
Kirchhof et al. Variant and product line co-evolution
JPH11134307A (en) Program development supporting device and method therefor and recording medium for recording program development supporting software
US20040139425A1 (en) Method and apparatus for deriving multiple test source files from one source file
JP2010176594A (en) Source code version management program and source code version managing method
JP2609820B2 (en) Program management method
JP6447358B2 (en) Source code generation program, source code generation method, and computer
JP2001265572A (en) Device and method for managing source program, and recording medium with its program recorded thereon
JP2006107025A (en) Apparatus and method of automatically creating source code, program and recording medium
JP2002082811A (en) Compiling method and recording medium
JP2000112722A (en) System and method for managing number of printing and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060110