JP2002007121A - Source file change history management method, apparatus, and recording medium recording program - Google Patents
Source file change history management method, apparatus, and recording medium recording programInfo
- Publication number
- JP2002007121A JP2002007121A JP2000191356A JP2000191356A JP2002007121A JP 2002007121 A JP2002007121 A JP 2002007121A JP 2000191356 A JP2000191356 A JP 2000191356A JP 2000191356 A JP2000191356 A JP 2000191356A JP 2002007121 A JP2002007121 A JP 2002007121A
- Authority
- JP
- Japan
- Prior art keywords
- change
- source file
- source code
- identification number
- source
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
(57)【要約】
【課題】 管理されたソースファイルの変更内容を正確
に他のソースファイルに適用することができるソースフ
ァイル変更履歴管理方法を提供する。
【解決手段】 差分検出部21で、変更前後のソースフ
ァイルを比較して変更部分を検出する。識別情報生成部
22で、変更部分の変更後のソースコードに今回の変更
で付与される変更識別番号および変更内行番号を生成す
る。変更履歴管理部23で、変更前後のソースコード、
変更識別番号および変更内行番号を対応付けて差分ソー
スコード情報として保存する。流通情報生成部24で、
流通させたい変更内容の変更識別番号を変更後のソース
コードに対して有する差分ソースコード情報を流通情報
として出力する。流通情報解析部25で、与えられた流
通情報中の変更前のソースコードおよび変更識別情報と
一致する箇所が変更前のソースファイルにあれば流通情
報を保存する。
(57) [Summary] [PROBLEMS] To provide a source file change history management method capable of correctly applying a change content of a managed source file to another source file. A difference detection unit compares a source file before and after a change and detects a changed part. The identification information generation unit 22 generates a change identification number and a change-in-line number given to the source code after the change in the current change. In the change history management unit 23, the source code before and after the change,
The change identification number and the in-change line number are stored in association with each other as difference source code information. In the distribution information generation unit 24,
The difference source code information having the change identification number of the change content to be distributed with respect to the changed source code is output as the distribution information. The distribution information analysis unit 25 stores the distribution information if there is a portion in the given distribution information that matches the source code before change and the change identification information in the source file before change.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ソースファイルの
変更履歴を管理する方法に関し、特に、管理されたソー
スファイルの変更内容を他のソースファイルに適用する
ことができるソースファイル変更履歴管理方法に関す
る。[0001] 1. Field of the Invention [0002] The present invention relates to a method of managing a change history of a source file, and more particularly to a method of managing a change history of a source file which can apply the changed contents of a managed source file to another source file. .
【0002】[0002]
【従来の技術】ソフトウェアプログラムにおいて、その
開発過程や製品出荷後に変更、修正されるソースファイ
ルを保存し管理する必要がある。2. Description of the Related Art In a software program, it is necessary to store and manage source files that are changed or modified after the development process or after product shipment.
【0003】従来のソースファイルの変更履歴を管理す
る方法として、変更前と後のソースファイルの差分を示
す変更情報を変更開始行番号と変更部分の変更前および
変更後のソースコードで記録して管理する方法がある。
この方法によれば、同じソースコードをベースとして別
個に変更、修正されているソースファイル間で、一方の
ソースファイルの変更内容を他方のソースファイルに適
用させることができる。ここでは、一方のソースファイ
ルの変更内容を別個に管理された他のソースファイルに
適用することを流通と呼ぶこととする。As a conventional method of managing the change history of a source file, change information indicating a difference between a source file before and after a change is recorded as a change start line number and a source code before and after a change portion is changed. There is a way to manage it.
According to this method, the changed content of one source file can be applied to the other source file between source files that have been separately changed and modified based on the same source code. Here, applying the changed content of one source file to another separately managed source file is referred to as distribution.
【0004】この従来のソースファイル変更履歴管理方
法では、変更情報の変更開始行番号と変更前のソースコ
ードで変更すべき部分を特定し、変更後のソースコード
をそこに置き換えることで別個に管理されたソースファ
イルへの流通を可能にしている。In this conventional source file change history management method, a change start line number of change information and a portion to be changed in a source code before change are specified, and the source code after change is replaced with the source code to separately manage the change. Distribution to the source files.
【0005】[0005]
【発明が解決しようとする課題】従来のソースファイル
変更履歴管理方法では、変更開始行番号は一連で管理さ
れたソースファイルの行番号で示されており、別個に管
理されてきたソースファイルの行番号と必ずしも一致す
るとは限らない。そのため、変更開始行番号から変更す
べき部分を特定することができない場合がある。In the conventional source file change history management method, the change start line number is indicated by the line number of the source file managed in series, and the line number of the separately managed source file is changed. It does not always match the number. Therefore, it may not be possible to specify a portion to be changed from the change start line number.
【0006】また、変更前ソースコードで変更部分を特
定する場合、変更を加えようとするソースファイルに変
更前ソースコードと一致する部分が複数箇所に存在する
ことがある。[0006] When a changed portion is specified in the source code before the change, a portion of the source file to be changed may coincide with the source code before the change in a plurality of places.
【0007】したがって、従来のソースファイル変更履
歴管理方法では、変更情報の変更開始行番号、変更前ソ
ースコードから単純に変更後ソースコードの格納位置を
特定することができない。そのため、別個に管理された
ソースファイルに変更情報を適用する場合に、そのソフ
トウェアプログラムに精通したエンジニア等が変更部分
を判断しながら適用していく必要があった。また、この
ような人手による作業の場合、変更ミスや変更漏れが発
生する可能性があった。Therefore, the conventional source file change history management method cannot simply specify the storage location of the changed source code from the change start line number of the change information and the source code before change. Therefore, when applying the change information to separately managed source files, it is necessary for an engineer or the like who is familiar with the software program to apply the change information while judging the changed portion. Further, in the case of such a manual operation, there is a possibility that a change error or a change omission may occur.
【0008】本発明の目的は、管理されたソースファイ
ルの変更内容を正確に他のソースファイルに適用するこ
とができるソースファイル変更履歴管理方法、装置およ
びプログラムを記録した記録媒体を提供することであ
る。An object of the present invention is to provide a source file change history management method, apparatus, and recording medium on which a program can be accurately applied to another source file by applying the changed contents of the managed source file. is there.
【0009】[0009]
【課題を解決するための手段】上記目的を達成するため
に、本発明のソースファイル変更履歴管理方法は、更新
されたソースファイルを保存し、更新での変更内容を流
通可能に管理するためのソースファイル変更履歴管理方
法であって、与えられた更新後のソースファイルと保存
されていた更新前のソースファイルを比較して変更部分
を検出するステップと、今回の更新による変更であるこ
とを示す変更識別番号、および今回の更新で変更された
各行を識別するための変更内行番号を生成し、更新前の
変更部分に付与されていた変更識別番号、およびその変
更部分の各行に付与されていた変更内行番号を検出する
ステップと、変更部分の更新前および更新後の、ソース
コード、変更識別番号および変更内行番号を互いに対応
付けて差分ソースコード情報として保存するステップ
と、流通させたい変更内容に対応した変更識別番号が与
えられると、その変更識別番号を更新後の変更識別番号
として有する差分ソースコード情報を、別途管理されて
いるソースファイルに流通させるための流通情報として
出力するステップと、流通情報が与えられると、その流
通情報の中の更新前のソースコード、変更識別番号およ
び変更内行番号で、保存されているソースファイル内を
検索してそのソースコードと変更識別番号と変更内行番
号の全てが一致する箇所があるか否か判定し、一致する
箇所が無ければ処理を終了し、一致する箇所があれば流
通情報を保存するステップを有している。In order to achieve the above object, a source file change history management method according to the present invention stores an updated source file and manages the contents of the update in a distributed manner. A source file change history management method for comparing a given updated source file with a stored source file before update to detect a changed portion, and indicating that the change is due to the current update. Generates a change identification number and an in-change line number for identifying each line changed in this update, and the change identification number assigned to the changed part before update and each line of the changed part A step of detecting a line number within a change, and associating a source code, a change identification number, and a line number within a change with each other before and after updating the changed part to obtain a difference source When a change identification number corresponding to the change content to be distributed is given, the difference source code information having the change identification number as an updated change identification number is stored in a separately managed source. Outputting the distribution information as distribution information for distribution to the file, and when the distribution information is given, the source code before the update, the change identification number and the line number within the change in the distribution information are used to save the stored source file. A search is performed to determine whether or not there is a portion where the source code, the change identification number, and all of the in-line numbers match, and if there is no match, the process ends. If there is a match, the distribution information is saved. Has steps.
【0010】したがって、ソースファイル、差分ソース
コード情報および流通情報に、変更された行を正確に特
定するための変更識別番号および変更内行番号が付加さ
れる。Therefore, a change identification number and a change-in-line number for accurately specifying a changed line are added to the source file, the difference source code information, and the distribution information.
【0011】本発明の実施態様によれば、更新前のソー
スファイルに、流通情報の中のソースコード、変更識別
番号および変更内行番号の全てが一致する箇所が無いと
き、流通情報内の更新前のソースコード、そのソースコ
ードに対応する変更識別番号および変更内行番号と、更
新前のソースファイルにおいて変更すべき箇所の候補と
なる部分のソースコード、そのソースコードに対応する
変更識別番号および変更内行番号を対応付けてエラー表
示として出力する。According to the embodiment of the present invention, when there is no place in the source file before update in which all of the source code, the change identification number, and the line number in the change in the distribution information match, the source file before the update in the distribution information is not updated. Source code, a change identification number and a change line number corresponding to the source code, a source code of a candidate portion to be changed in the source file before update, a change identification number and a change line corresponding to the source code The number is correlated and output as an error display.
【0012】これにより、変更識別番号や変更内行番
号、ソースコードの不一致によりエラーとなった流通情
報を修正するための情報を表示することができる。[0012] This makes it possible to display information for correcting distribution information in which an error has occurred due to a mismatch between the change identification number, the line number within the change, and the source code.
【0013】本発明のソースファイル変更履歴管理装置
は、更新されたソースファイルを保存し、更新での変更
内容を流通可能に管理するソースファイル変更履歴管理
装置であって、与えられた更新後のソースファイルと保
存されていた更新前のソースファイルを比較して変更部
分を検出する差分検出手段と、今回の更新による変更で
あることを示す変更識別番号、および今回の更新で変更
された各行を識別するための変更内行番号を生成し、更
新前の変更部分に付与されていた変更識別番号、および
その変更部分の各行に付与されていた変更内行番号を検
出する識別情報生成手段と、変更部分の更新前および更
新後の、ソースコード、変更識別番号および変更内行番
号を互いに対応付けて差分ソースコード情報として保存
する変更履歴管理手段と、流通させたい変更内容に対応
した変更識別番号が与えられると、その変更識別番号を
更新後の変更識別番号として有する差分ソースコード情
報を、別途管理されているソースファイルに流通させる
ための流通情報として出力する流通情報生成手段と、流
通情報が与えられると、その流通情報の中の更新前のソ
ースコード、変更識別番号および変更内行番号で、保存
されているソースファイル内を検索してそのソースコー
ドと変更識別番号と変更内行番号の全てが一致する箇所
があるか否か判定し、一致する箇所が無ければ処理を終
了し、一致する箇所があれば流通情報を保存する流通情
報解析手段を有している。A source file change history management device according to the present invention is a source file change history management device for storing an updated source file and managing the contents of the change in the update so that the contents of the update can be distributed. A difference detection unit that compares the source file with the stored source file before the update to detect a change, a change identification number indicating that the change is due to the current update, and each line changed in the current update. Identification information generating means for generating an in-change line number for identification and detecting a change identification number assigned to a changed portion before update and an in-change line number assigned to each line of the changed portion; Change history management in which the source code, change identification number, and in-change line number before and after the update are associated with each other and saved as difference source code information And, when a change identification number corresponding to the change content to be distributed is given, the difference source code information having the change identification number as the updated change identification number is distributed to a separately managed source file. Given distribution information generating means for outputting as distribution information, and given distribution information, a search is performed in a stored source file with a source code, a change identification number, and an in-change line number before update in the distribution information. A distribution information analysis that determines whether or not there is a portion where the source code, the change identification number, and all the line numbers within the change match, and terminates the process if there is no match, and stores the distribution information if there is a match Means.
【0014】本発明の実施態様によれば、更新前のソー
スファイルに、流通情報の中のソースコード、変更識別
番号および変更内行番号の全てが一致する箇所が無いと
き、流通情報内の更新前のソースコード、そのソースコ
ードに対応する変更識別番号および変更内行番号と、更
新前のソースファイルにおいて変更すべき箇所の候補と
なる部分のソースコード、そのソースコードに対応する
変更識別番号および変更内行番号を対応付けてエラー表
示として出力するエラー情報出力手段を更に有してい
る。According to the embodiment of the present invention, when there is no place in the source file before update where all of the source code, the change identification number and the line number in the change in the distribution information match, the source file before the update in the distribution information is not updated. Source code, a change identification number and a change line number corresponding to the source code, a source code of a candidate portion to be changed in the source file before update, a change identification number and a change line corresponding to the source code There is further provided error information output means for outputting an error display in association with the number.
【0015】本発明の記録媒体は、更新されたソースフ
ァイルを保存し、更新での変更内容を流通可能に管理す
るためのソースファイル変更履歴管理プログラムを記録
した記録媒体であって、与えられた更新後のソースファ
イルと保存されていた更新前のソースファイルを比較し
て変更部分を検出する処理と、今回の更新による変更で
あることを示す変更識別番号、および今回の更新で変更
された各行を識別するための変更内行番号を生成し、更
新前の変更部分に付与されていた変更識別番号、および
変更部分の各行に付与されていた変更内行番号を検出す
る処理と、変更部分の更新前および更新後の、ソースコ
ード、変更識別番号および変更内行番号を互いに対応付
けて差分ソースコード情報として保存する処理と、流通
させたい変更内容に対応した変更識別番号が与えられる
と、その変更識別番号を更新後の変更識別番号として有
する差分ソースコード情報を、別途管理されているソー
スファイルに流通させるための流通情報として出力する
処理と、流通情報が与えられると、その流通情報の中の
更新前のソースコード、変更識別番号および変更内行番
号で、保存されているソースファイル内を検索してその
ソースコードと変更識別番号と変更内行番号の全てが一
致する箇所があるか否か判定し、一致する箇所が無けれ
ば処理を終了し、一致する箇所があれば流通情報を保存
する処理をコンピュータに実行させるためのソースファ
イル変更履歴管理プログラムが記録されている。[0015] The recording medium of the present invention is a recording medium which stores a source file change history management program for storing updated source files and managing the contents of the updates in a distributed manner. A process of comparing the updated source file with the stored source file before the update to detect a change, a change identification number indicating that the change was made by the current update, and each line changed by the current update Generating a change line number to identify the change, detecting the change identification number assigned to the changed portion before the update, and the change line number assigned to each line of the changed portion, and before the update of the changed portion The source code, the change identification number, and the line number within the change after the update, and the process of storing them as difference source code information in association with each other; When a corresponding change identification number is given, a process of outputting difference source code information having the change identification number as an updated change identification number as distribution information for distributing to a separately managed source file, Given the information, the stored source file is searched for the source code, the change identification number, and the change line number using the source code before change, the change identification number, and the change line number in the distribution information. The source file change history management program for causing the computer to execute a process of storing distribution information if there is no matching portion is determined whether there is a matching portion, if there is no matching portion, if there is a matching portion. Has been recorded.
【0016】本発明の実施態様によれば、更新前のソー
スファイルに、流通情報の中のソースコード、変更識別
番号および変更内行番号の全てが一致する箇所が無いと
き、流通情報内の更新前のソースコード、そのソースコ
ードに対応する変更識別番号および変更内行番号と、更
新前のソースファイルにおいて変更すべき箇所の候補と
なる部分のソースコード、そのソースコードに対応する
変更識別番号および変更内行番号を対応付けてエラー表
示として出力する処理を更に有するソースファイル変更
履歴管理プログラムが記録されている。According to the embodiment of the present invention, when the source file before update does not include a portion where the source code, the change identification number, and the line number in the change in the distribution information all match, the source file before the update in the distribution information is not updated. Source code, a change identification number and a change line number corresponding to the source code, a source code of a candidate portion to be changed in the source file before update, a change identification number and a change line corresponding to the source code A source file change history management program having a process of outputting an error display in association with a number is recorded.
【0017】[0017]
【発明の実施の形態】本発明の実施形態について図面を
参照して詳細に説明する。Embodiments of the present invention will be described in detail with reference to the drawings.
【0018】図1を参照すると、本発明の一実施形態の
ソースファイル変更履歴管理装置は入力装置1と処理装
置2と記憶装置3と出力装置4を有している。Referring to FIG. 1, a source file change history management device according to an embodiment of the present invention has an input device 1, a processing device 2, a storage device 3, and an output device 4.
【0019】入力装置1はユーザが操作するキーボード
やマウス等である。The input device 1 is a keyboard or a mouse operated by a user.
【0020】記憶装置3は履歴情報記憶部31を有して
おり、履歴情報記憶部31には個々に行ったソースファ
イルの更新に対応した変更識別番号とその中の行番号を
示す変更内行番号を各行に付与した最新のソースファイ
ル、および個々の変更の履歴情報が記録されている。The storage device 3 has a history information storage unit 31. The history information storage unit 31 has a change identification number corresponding to each update of the source file and a change line number indicating a line number in the change identification number. , The latest source file with each line added, and history information of individual changes.
【0021】出力装置4は処理装置から出力された情報
を表示するディスプレイや印刷装置等である。The output device 4 is a display for displaying information output from the processing device, a printing device, or the like.
【0022】処理装置2は差分検出部21と識別情報生
成部22と変更履歴管理部23と流通情報生成部24と
流通情報解析部25を有している。The processing device 2 has a difference detection unit 21, an identification information generation unit 22, a change history management unit 23, a distribution information generation unit 24, and a distribution information analysis unit 25.
【0023】差分検出部21は、ソースファイルを更新
するときにユーザによって入力装置1から与えられた更
新後のソースファイルと履歴情報記憶部31に記録され
ている最新のソースファイルとを比較して、変更部分の
変更前ソースコードおよび変更後ソースコードを差分ソ
ースコードとして検出する。The difference detecting section 21 compares the updated source file provided by the user from the input device 1 with the latest source file recorded in the history information storage section 31 when updating the source file. The source code before the change and the source code after the change are detected as the difference source code.
【0024】識別情報生成部22は、差分検出部21で
検出された差分ソースコードに関する変更識別情報を生
成する。変更識別情報とは、変更部分の変更前ソースコ
ードの各行に最新のソースファイル上で付与された変更
識別番号および変更内行番号と、変更後ソースコードの
各行に今回の更新による変更を識別するための変更識別
番号および変更内行番号を含む情報である。The identification information generator 22 generates change identification information relating to the difference source code detected by the difference detector 21. The change identification information is used to identify the change identification number and the line number within the change assigned to each line of the source code before the change of the changed part in the latest source file, and the change due to the current update in each line of the source code after the change. This information includes the change identification number and the line number within the change.
【0025】変更履歴管理部23は、差分検出部21で
生成された差分ソースコードと識別情報生成手段22で
生成された変更識別情報を対応付けて差分ソースコード
情報として履歴情報記憶部31に記録する。The change history management unit 23 associates the difference source code generated by the difference detection unit 21 with the change identification information generated by the identification information generation unit 22 and records the same in the history information storage unit 31 as difference source code information. I do.
【0026】他で管理されたソースファイルに自装置で
管理している変更内容を適用(流通)するための流通情
報を生成するときに、ユーザの操作により入力装置1か
ら流通情報生成部24に変更識別番号が与えられる。When generating distribution information for applying (distributing) the change content managed by the own device to a source file managed by another device, the input device 1 transmits the distribution information to the distribution information generating unit 24 by a user operation. A change identification number is provided.
【0027】流通情報生成部24は、与えられた変更識
別番号から履歴情報記憶部31内の差分ソースコード情
報を検索し、得られた差分ソースコード情報を流通情報
として出力装置4に出力する。The distribution information generation unit 24 searches for difference source code information in the history information storage unit 31 from the given change identification number, and outputs the obtained difference source code information to the output device 4 as distribution information.
【0028】他で管理されたソースファイルの変更内容
を自装置で管理しているソースファイルに適用するとき
に、他で生成された差分ソースコード情報、すなわち、
流通情報がユーザの操作によって入力装置1から流通情
報解析部25に与えられる。When applying the changed content of the source file managed by another to the source file managed by the own device, the difference source code information generated by the other, that is,
Distribution information is provided from the input device 1 to the distribution information analysis unit 25 by a user operation.
【0029】流通情報解析部25は、入力装置1より与
えられた流通情報を解析し、履歴情報記憶部31の最新
のソースファイルを検索して差分ソースコードの格納位
置を特定し、その格納位置の変更前ソースコードを変更
後ソースコードに置き換えて最新のソーフファルを更新
する。格納位置が特定できないときには、その流通情報
は採用不可と認識し出力装置4にメッセージを出力す
る。The distribution information analysis unit 25 analyzes the distribution information provided from the input device 1, searches for the latest source file in the history information storage unit 31, specifies the storage position of the difference source code, and specifies the storage position. Replace the source code before change with the source code after change and update the latest software. If the storage position cannot be specified, the distribution information is recognized as unacceptable and a message is output to the output device 4.
【0030】次に、本実施形態のソースファイル変更履
歴管理装置の差分ソースコード情報を生成するときの動
作を図2のフローチャートにより説明する。Next, the operation of the source file change history management apparatus of this embodiment when generating difference source code information will be described with reference to the flowchart of FIG.
【0031】図2を参照すると、ステップA1に、入力
装置1より更新後のソースファイルが与えられた差分検
出部21で、そのソースファイルと履歴情報記憶部31
に記憶された最新のソースファイルを比較する。ステッ
プA2に、2つのソースファイルが一致するか判定し、
一致した場合には変更なしと認識して処理を終了する。
このとき、出力装置4にその旨を表示してもよい。Referring to FIG. 2, in step A 1, the difference detection unit 21 to which the updated source file is given from the input device 1, stores the source file and the history information storage unit 31.
Compare the latest source file stored in. In step A2, it is determined whether the two source files match,
If they match, it recognizes that there is no change and ends the processing.
At this time, the fact may be displayed on the output device 4.
【0032】2つのソースファイルに一致しない部分が
あれば、ステップA3に、履歴情報記憶部31に更新後
のソースファイルを記録するとともに、変更部分の差分
ソースコードを生成して識別情報生成部22に出力す
る。If there is a part that does not match the two source files, the updated source file is recorded in the history information storage unit 31 in step A3, and the difference source code of the changed part is generated to generate the identification information generation unit 22. Output to
【0033】ステップA4に、差分ソースコードが与え
られた識別情報生成部22で、差分ソースコードの変更
前ソースコードの各行に更新前のソースファイル上で付
与されている変更識別番号および変更内行番号を変更識
別情報として検出する。さらに、入力装置1から与えら
れた今回の更新による変更であることを識別するための
変更識別番号および今回の変更の中の行を識別するため
の変更内行番号を変更後ソースコードの各行に与える変
更識別情報として生成する。In step A4, the identification information generating unit 22 to which the difference source code is given is provided with a change identification number and a change-in-line number assigned to each line of the source code before change of the difference source code on the source file before update. Is detected as change identification information. Further, a change identification number for identifying a change by the current update provided from the input device 1 and a line number within the change for identifying a line in the current change are given to each line of the changed source code. Generated as change identification information.
【0034】ステップA5に、差分検出部21で生成さ
れた差分ソースコードと識別情報生成部22で生成され
た変更識別情報を対応付けて差分ソースコード情報とし
て、履歴情報記憶部31に記録する。In step A5, the difference source code generated by the difference detection unit 21 and the change identification information generated by the identification information generation unit 22 are associated with each other and recorded in the history information storage unit 31 as difference source code information.
【0035】次に、本実施形態のソースファイル変更履
歴管理装置の流通情報を生成するときの動作を図3のフ
ローチャートにより説明する。Next, the operation of the source file change history management apparatus of this embodiment when generating distribution information will be described with reference to the flowchart of FIG.
【0036】図3を参照すると、ステップB1に、入力
装置1より変更識別番号が与えられた流通情報生成部2
4で、その変更識別番号を有する差分ソースコード情報
を履歴情報記憶部31から検索する。ステップB2に、
更新後の変更識別番号が与えられた変更識別番号と一致
する差分ソースコード情報が履歴情報記憶部31に存在
するか否か判定し、存在しなかった場合には該当する変
更無しと判断して処理を終了する。このとき、出力装置
4にその旨を表示してもよい。Referring to FIG. 3, in step B 1, the distribution information generating unit 2 to which the input device 1 has been given the change identification number
In step 4, the history information storage unit 31 searches for difference source code information having the change identification number. In step B2,
It is determined whether or not the difference source code information whose updated change identification number matches the given change identification number exists in the history information storage unit 31. If not, it is determined that there is no corresponding change. The process ends. At this time, the fact may be displayed on the output device 4.
【0037】変更識別番号が一致する差分ソースコード
情報が存在した場合、ステップB3に、その差分ソース
コード情報を流通情報として出力装置4に出力する。If there is difference source code information having the same change identification number, the difference source code information is output to the output device 4 as distribution information in step B3.
【0038】次に、本実施形態のソースファイル変更履
歴管理装置で管理するソースファイルに他で生成された
流通情報を適用するときの動作を図4のフローチャート
により説明する。Next, the operation of applying distribution information generated by another source file to the source file managed by the source file change history management device of the present embodiment will be described with reference to the flowchart of FIG.
【0039】図4を参照すると、ステップC1に、ユー
ザの操作によって他で生成された流通情報が入力装置1
から与えられた流通情報解析部25でその流通情報を解
析して、その中の変更識別情報および変更前ソースコー
ドにより履歴情報記憶部31に記録されている最新のソ
ースファイルを検索する。ステップC2に、最新のソー
スファイル内に、変更識別情報および変更前ソースコー
ドと一致する箇所があるか否か判定し、一致する箇所が
無ければその流通情報を採用することができないと認識
して処理を終了する。このとき、その旨を出力装置4に
表示してもよい。Referring to FIG. 4, in step C1, distribution information generated by another operation by the user is input to the input device 1.
The distribution information analyzer 25 analyzes the distribution information, and searches for the latest source file recorded in the history information storage unit 31 based on the change identification information and the source code before change. In step C2, it is determined whether or not there is a portion in the latest source file that matches the change identification information and the pre-change source code, and it is recognized that the distribution information cannot be adopted unless there is a match. The process ends. At this time, the fact may be displayed on the output device 4.
【0040】一致する箇所があれば、ステップC3に、
流通情報を採用可として履歴情報記憶部31に記録する
とともに、最新のソースファイルの該当部分を差分ソー
スコード情報の変更後ソースコードに更新する。If there is a match, the process proceeds to step C3.
The distribution information is recorded in the history information storage unit 31 as adoptable, and the corresponding portion of the latest source file is updated to the source code after the change of the difference source code information.
【0041】次に、本実施形態のソースファイル変更履
歴管理装置における具体的なファイル更新の様子を図5
〜7により説明する。Next, a specific file update in the source file change history management device of this embodiment is shown in FIG.
7 will be described.
【0042】図5を参照すると、差分ソースコード情報
の生成においてソースファイル変更履歴管理装置は、与
えられたソースファイルと履歴情報記憶部31に記録さ
れた最新のソースファイルを比較し変更ありと認識す
る。また、変更前ソースコード“i=i+1;”が変更
後ソースコード“i=i+2;”および“a(i);”
に変更されていることを検出して差分ソースコードを生
成する。Referring to FIG. 5, in generating the difference source code information, the source file change history management device compares a given source file with the latest source file recorded in the history information storage unit 31 and recognizes that there is a change. I do. The source code “i = i + 1;” before the change is replaced with the source code “i = i + 2;” and “a (i);” after the change.
, And generates a difference source code.
【0043】次に、差分ソースコードの変更後ソースコ
ードに変更識別番号“002”を付与し、各行に変更内
行番号を付与して差分ソースコード情報を生成する。そ
の生成された差分ソースコード情報を履歴情報記憶部3
1に記録する。Next, a change identification number "002" is assigned to the changed source code after the change of the difference source code, and a change source line number is assigned to each line to generate difference source code information. The generated difference source code information is stored in the history information storage unit 3
Record in 1.
【0044】なお、与えられたソースファイルにも変更
識別番号および変更内行番号を付与して履歴情報記憶部
31に記録する。The given source file is also given a change identification number and a change-in-line number and recorded in the history information storage unit 31.
【0045】図6を参照すると、流通情報の生成におい
てソースファイル変更履歴管理装置は、与えられた流通
情報内の変更識別番号“002”を変更後ソースコード
の変更識別番号として有する差分ソースコード情報を履
歴情報記憶部31内から検出する。その後、検出された
差分ソースコード情報を流通情報として出力装置4に出
力する。Referring to FIG. 6, in generating the distribution information, the source file change history management device uses the difference source code information having the change identification number “002” in the given distribution information as the change identification number of the changed source code. From the history information storage unit 31. Thereafter, the detected difference source code information is output to the output device 4 as distribution information.
【0046】図7を参照すると、他で生成された流通情
報をソースファイルに適用するときソースファイル変更
履歴管理装置は、流通情報の変更識別情報“00100
2”および変更前ソースコード“i=i+1;”により
履歴情報記憶部31の最新のソースファイルを検索す
る。変更識別情報が“001002”で変更後ソースコ
ードが“i=i+1”の部分が検出されると流通情報を
採用可として変更後ソースコードをソースファイルに適
用し、ソースファイルを更新して履歴情報記憶部31に
記憶する。Referring to FIG. 7, when the distribution information generated by another source is applied to the source file, the source file change history management device uses the change identification information “00100” of the distribution information.
The latest source file in the history information storage unit 31 is searched by using “2” and the source code “i = i + 1;” before the change. A part where the change identification information is “001002” and the source code after the change is “i = i + 1” is detected. Then, the distribution information is adopted and the changed source code is applied to the source file, and the source file is updated and stored in the history information storage unit 31.
【0047】本実施形態のソースファイル変更履歴管理
装置は、ソースファイル、差分ソースコード情報、およ
び流通情報に各行を正確に特定することができる変更識
別情報を付加して管理するので、他で生成された流通情
報を適用する場合に変更識別情報によって変更すべき行
を正確に特定でき適用が容易である。The source file change history management apparatus of the present embodiment manages the source file, the difference source code information, and the distribution information by adding change identification information capable of accurately specifying each line to the source file, the difference source code information, and the distribution information. When the distribution information is applied, the line to be changed can be accurately specified by the change identification information, and application is easy.
【0048】それにより、他で管理された変更をソース
ファイルに適用するときの人手による作業を削減し、ま
た、人手作業によるミスや漏れを防止することができ
る。As a result, it is possible to reduce manual work when applying a change managed by another to a source file, and to prevent mistakes and omissions due to manual work.
【0049】次に、本発明の他の実施形態について図面
を参照して詳細に説明する。Next, another embodiment of the present invention will be described in detail with reference to the drawings.
【0050】図8を参照すると、本発明の他の実施形態
のソースファイル変更履歴管理装置は入力装置1と処理
装置5と記憶装置3と出力装置4を有している。Referring to FIG. 8, a source file change history management device according to another embodiment of the present invention has an input device 1, a processing device 5, a storage device 3, and an output device 4.
【0051】入力装置1、記憶装置3、および出力装置
4は図1と同じものである。The input device 1, the storage device 3, and the output device 4 are the same as those in FIG.
【0052】処理装置5は差分検出部21と識別情報生
成部22と変更履歴管理部23と流通情報生成部24と
流通情報解析部25とエラー情報出力部26を有してい
る。The processing device 5 has a difference detection unit 21, an identification information generation unit 22, a change history management unit 23, a distribution information generation unit 24, a distribution information analysis unit 25, and an error information output unit 26.
【0053】差分検出部21、識別情報生成部22、変
更履歴管理部23、流通情報生成部24、および流通情
報解析部25は図1と同じものである。The difference detector 21, the identification information generator 22, the change history manager 23, the distribution information generator 24, and the distribution information analyzer 25 are the same as those in FIG.
【0054】エラー情報出力部26は、流通情報解析部
25で流通情報が採用不可となった場合にその流通情報
を出力装置4に出力する。The error information output section 26 outputs the distribution information to the output device 4 when the distribution information cannot be adopted by the distribution information analysis section 25.
【0055】図8のソースファイル変更履歴管理装置の
差分ソースコード情報を生成するときの動作を示す図9
のフローチャートのステップD1〜ステップD5の処理
は、図2のフローチャートのステップA1〜A5の処理
と同じである。FIG. 9 shows the operation of the source file change history management device of FIG. 8 when generating difference source code information.
The processing of steps D1 to D5 in the flowchart of FIG. 4 is the same as the processing of steps A1 to A5 in the flowchart of FIG.
【0056】また、図8のソースファイル変更履歴管理
装置の流通情報を生成するときの動作を示す図10のフ
ローチャートのステップE1〜ステップE3の処理は図
3のフローチャートのステップB1〜ステップB3の処
理と同じである。The processing of steps E1 to E3 in the flowchart of FIG. 10 showing the operation of the source file change history management device of FIG. 8 when generating distribution information is the processing of steps B1 to B3 in the flowchart of FIG. Is the same as
【0057】図11を参照すると、図8のソースファイ
ル変更履歴管理装置で管理するソースファイルに他で生
成された流通情報を適用するとき、ユーザの操作によっ
て他で生成された流通情報が入力装置1から与えられた
流通情報解析部25で、ステップF1に、与えられた流
通情報を解析して、その中の変更識別情報および変更前
ソースコードにより履歴情報記憶部31に記録されてい
る最新のソースファイルを検索する。ステップF2に、
最新のソースファイル内に、変更識別情報および変更前
ソースコードと一致する箇所があるか否か判定する。Referring to FIG. 11, when the distribution information generated by another user is applied to the source file managed by the source file change history management device of FIG. 8, the distribution information generated by the user is input to the input device. In step F1, the distribution information analysis unit 25 provided from step 1 analyzes the supplied distribution information and updates the latest distribution information stored in the history information storage unit 31 with the change identification information and the source code before change. Search for source files. In step F2,
It is determined whether or not there is a portion in the latest source file that matches the change identification information and the source code before change.
【0058】一致する箇所が無ければエラー情報出力部
51で、ステップF4に、その流通情報の変更前ソース
コードおよび対応する変更識別情報と、履歴情報記憶部
31の最新ソースファイルにおいて変更箇所の候補とな
る部分のソースコードおよび対応する変更識別情報を出
力装置4に出力する。変更箇所の候補は、変更識別情報
およびソースコードに基づいて決定される。例えば、変
更識別情報のみが一致する行、ソースコードのみが一致
する行、どちらも一致しないが前後の行の変更識別情報
から変更箇所と予測される行などである。If there is no matching part, the error information output unit 51 determines in step F4 that the source code before the change of the distribution information and the corresponding change identification information and the candidate of the change part in the latest source file of the history information storage unit 31. Then, the source code of the portion to be changed and the corresponding change identification information are output to the output device 4. Candidates for the change location are determined based on the change identification information and the source code. For example, a line in which only the change identification information matches, a line in which only the source code matches, or a line in which neither matches but which is predicted as a change portion from the change identification information of the preceding and following lines.
【0059】最新のソースファイル内に、変更識別情報
および変更前ソースコードと一致する箇所があれば、流
通情報を採用可として流通情報の差分ソースコードを履
歴情報記憶部31に記録するとともに、最新のソースフ
ァイルの該当部分を差分ソースコード情報の変更後ソー
スコードに更新する。If there is a portion in the latest source file that matches the change identification information and the source code before the change, the distribution information can be adopted and the difference source code of the distribution information is recorded in the history information storage unit 31. Is updated to the source code after the difference source code information is changed.
【0060】次に、図8のソースファイル変更履歴管理
装置における、他で生成された流通情報をソースファイ
ルに適用するときの具体的な処理の様子を図12により
説明する。Next, a specific process of applying the distribution information generated elsewhere to the source file in the source file change history management device of FIG. 8 will be described with reference to FIG.
【0061】図12を参照すると、他で生成された流通
情報をソースファイルに適用するときソースファイル変
更履歴管理装置は、流通情報の変更識別情報“0010
02”および変更前ソースコード“i=i+1;”によ
り履歴情報記憶部31の最新のソースファイルを検索す
る。変更識別情報が“001002”でソースコードが
“i=i+1”の部分が検出されない場合、変更識別情
報“001002”および変更前ソースコード“i=i
+1;”と変更箇所の候補を出力装置4に表示する。こ
こでは、前後の行の変更識別情報から変更識別情報“0
10001”でソースコード“i=i++;”の部分が
候補として示されている。Referring to FIG. 12, when the distribution information generated by another source is applied to a source file, the source file change history management apparatus uses the change identification information “0010” of the distribution information.
02 and the source code before change "i = i + 1;" are searched for the latest source file in the history information storage unit 31. When the change identification information is "001002" and the part where the source code is "i = i + 1" is not detected , The change identification information “001002” and the source code before change “i = i
+1; "is displayed on the output device 4. Here, the change identification information" 0 "is obtained from the change identification information of the preceding and succeeding rows.
10001 ", the source code" i = i ++; "is shown as a candidate.
【0062】ユーザが出力装置4の表示を見て流通情報
を修正し、再度、入力装置1から入力する。今度は、流
通情報と一致する箇所が検出されるので、変更後ソース
コードをソースファイルに適用し、ソースファイルを更
新して履歴情報記憶部31に記憶する。The user corrects the distribution information by looking at the display on the output device 4 and inputs the distribution information again from the input device 1. This time, since a location that matches the distribution information is detected, the changed source code is applied to the source file, and the source file is updated and stored in the history information storage unit 31.
【0063】これにより、変更識別情報やソースコード
の不一致により採用不可となった流通情報を修正するた
めの情報を出力装置4に表示することができるので、出
力装置4の表示を手がかりに採用不可となった流通情報
を修正して適用することができる。As a result, the information for correcting the distribution information which has become unacceptable due to the mismatch of the change identification information or the source code can be displayed on the output device 4, so that the display of the output device 4 cannot be adopted as a clue. Can be modified and applied.
【0064】図13を参照すると、本発明のさらに他の
ソースファイル変更履歴管理装置は、入力装置1と記録
装置3と出力装置4とコンピュータ80と記録媒体90
を有している。入力装置1と記録装置3と出力装置4は
図1に示した者と同じである。Referring to FIG. 13, still another source file change history management device of the present invention includes an input device 1, a recording device 3, an output device 4, a computer 80, and a recording medium 90.
have. The input device 1, the recording device 3, and the output device 4 are the same as those shown in FIG.
【0065】記録媒体90は、フロッピー(登録商標)
ディスク、CD−ROM、光磁気ディスク等の記録媒体
であり、図2〜図4、または図9〜図11に示した処理
からなるソースファイル変更履歴管理プログラムが記録
されている。コンピュータ80はCPUを有しており、
記録媒体90からソースファイル変更履歴管理プログラ
ムを読み取り、記憶装置3に格納した後、これを実行す
る。The recording medium 90 is a floppy (registered trademark).
It is a recording medium such as a disk, a CD-ROM, a magneto-optical disk, and the like, in which a source file change history management program including the processing shown in FIGS. 2 to 4 or 9 to 11 is recorded. The computer 80 has a CPU,
The source file change history management program is read from the recording medium 90, stored in the storage device 3, and executed.
【0066】[0066]
【発明の効果】以上説明したように、本発明によれば、
ソースファイル、差分ソースコード情報、および流通情
報に、変更された行を正確に特定するための変更識別番
号および変更内行番号を付加して管理するので、他で生
成された流通情報を適用する場合に変更識別情報によっ
て変更すべき行を正確に特定でき流通が容易である。As described above, according to the present invention,
When managing the source file, difference source code information, and distribution information by adding the change identification number and line number within the change for accurately identifying the changed line, when applying distribution information generated by other The line to be changed can be accurately specified by the change identification information, and distribution is easy.
【0067】それにより、他で管理された変更をソース
ファイルに流通させるときの人手による作業を削減し、
また、人手作業によるミスや漏れを防止することができ
る。As a result, it is possible to reduce manual work when distributing a change managed by another in a source file,
In addition, mistakes and leaks due to manual work can be prevented.
【0068】また、変更識別番号や変更内行番号、ソー
スコードの不一致によりエラーとなった流通情報を修正
するための情報を表示することができるので、表示を手
がかりにエラーとなった流通情報を修正して適用するこ
とができる。Further, since the information for correcting the distribution information having an error due to the mismatch of the change identification number, the line number within the change, and the source code can be displayed, the distribution information having the error can be corrected based on the display. And can be applied.
【図1】本発明の一実施形態のソースファイル変更履歴
管理装置のブロック図である。FIG. 1 is a block diagram of a source file change history management device according to an embodiment of the present invention.
【図2】本実施形態のソースファイル変更履歴管理装置
の差分ソースコード情報を生成するときの動作示すフロ
ーチャートである。FIG. 2 is a flowchart showing an operation of the source file change history management device of the embodiment when generating difference source code information.
【図3】本実施形態のソースファイル変更履歴管理装置
の流通情報を生成するときの動作を示すフローチャート
である。FIG. 3 is a flowchart illustrating an operation of the source file change history management device of the present embodiment when generating distribution information.
【図4】本実施形態のソースファイル変更履歴管理装置
で管理するソースファイルに他で生成された流通情報を
適用するときの動作を示すフローチャートである。FIG. 4 is a flowchart showing an operation when applying distribution information generated elsewhere to a source file managed by the source file change history management device of the embodiment.
【図5】本実施形態のソースファイル変更履歴管理装置
の差分ソースコード情報の生成の具体的な様子を説明す
るための説明図である。FIG. 5 is an explanatory diagram for explaining a specific state of generation of differential source code information of the source file change history management device of the embodiment.
【図6】本実施形態のソースファイル変更履歴管理装置
の流通情報の生成の具体的な様子を説明するための説明
図である。FIG. 6 is an explanatory diagram for explaining a specific state of generation of distribution information of the source file change history management device of the embodiment.
【図7】本実施形態のソースファイル変更履歴管理装置
の、他で生成された流通情報をソースファイルに適用す
るときの具体的な様子を説明するための説明図である。FIG. 7 is an explanatory diagram illustrating a specific state of the source file change history management device of the present embodiment when applying distribution information generated by another to a source file.
【図8】本発明の他の実施形態のソースファイル変更履
歴管理装置をブロック図である。FIG. 8 is a block diagram showing a source file change history management device according to another embodiment of the present invention.
【図9】本発明の他の実施形態のソースファイル変更履
歴管理装置の差分ソースコード情報を生成するときの動
作を示すフローチャートである。FIG. 9 is a flowchart illustrating an operation of the source file change history management device according to another embodiment of the present invention when generating difference source code information.
【図10】本発明の他の実施形態のソースファイル変更
履歴管理装置の流通情報を生成するときの動作を示すフ
ローチャートである。FIG. 10 is a flowchart showing an operation when generating distribution information of a source file change history management device according to another embodiment of the present invention.
【図11】本発明の他の実施形態のソースファイル変更
履歴管理装置で管理するソースファイルに他で生成され
た流通情報を適用するときの動作を示すフローチャート
である。FIG. 11 is a flowchart showing an operation when applying distribution information generated elsewhere to a source file managed by a source file change history management device according to another embodiment of the present invention.
【図12】本発明の他の実施形態のソースファイル変更
履歴管理装置における、他で生成された流通情報をソー
スファイルに適用するときの具体的な処理の様子を説明
するための説明図である。FIG. 12 is an explanatory diagram for explaining a specific process when the distribution information generated by another source is applied to a source file in the source file change history management device according to another embodiment of the present invention; .
【図13】本発明のさらに他のソースファイル変更履歴
管理装置のブロック図である。FIG. 13 is a block diagram of still another source file change history management device of the present invention.
1 入力装置 2 処理装置 21 差分検出部 22 識別情報生成部 23 変更履歴管理部 24 流通情報生成部 25 流通情報解析部 3 記憶装置 31 履歴情報記憶部 4 出力装置 5 処理装置 51 エラー情報出力部 80 コンピュータ 90 記録媒体 A1〜A5,B1〜B3,C1〜C3,D1〜D5,E
1〜E3,F1〜F4ステップREFERENCE SIGNS LIST 1 input device 2 processing device 21 difference detection unit 22 identification information generation unit 23 change history management unit 24 distribution information generation unit 25 distribution information analysis unit 3 storage device 31 history information storage unit 4 output device 5 processing device 51 error information output unit 80 Computer 90 Recording medium A1 to A5, B1 to B3, C1 to C3, D1 to D5, E
1 to E3, F1 to F4 steps
───────────────────────────────────────────────────── フロントページの続き (72)発明者 中泉 雅行 東京都港区三田一丁目4番28号 日本電気 通信システム株式会社内 Fターム(参考) 5B076 AB10 AC01 AC04 ────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Masayuki Nakaizumi 4-4-2 Mita, Minato-ku, Tokyo NEC Communication Systems Co., Ltd. F-term (reference) 5B076 AB10 AC01 AC04
Claims (6)
記更新での変更内容を流通可能に管理するためのソース
ファイル変更履歴管理方法であって、与えられた更新後
の前記ソースファイルと保存されていた更新前の前記ソ
ースファイルを比較して変更部分を検出するステップ
と、今回の更新による変更であることを示す変更識別番
号、および前記今回の更新で変更された各行を識別する
ための変更内行番号を生成し、更新前の前記変更部分に
付与されていた前記変更識別番号、および該変更部分の
各行に付与されていた前記変更内行番号を検出するステ
ップと、前記変更部分の更新前および更新後の、前記ソ
ースコード、前記変更識別番号および前記変更内行番号
を互いに対応付けて差分ソースコード情報として保存す
るステップと、流通させたい前記変更内容に対応した前
記変更識別番号が与えられると、該変更識別番号を更新
後の前記変更識別番号として有する前記差分ソースコー
ド情報を、別途管理されている前記ソースファイルに流
通させるための流通情報として出力するステップと、前
記流通情報が与えられると、該流通情報の中の更新前の
前記ソースコード、前記変更識別番号および前記変更内
行番号で、保存されている前記ソースファイル内を検索
して該ソースコードと該変更識別番号と該変更内行番号
の全てが一致する箇所があるか否か判定し、一致する箇
所が無ければ処理を終了し、一致する箇所があれば前記
流通情報を保存するステップを有するソースファイル変
更履歴管理方法。1. A source file change history management method for storing an updated source file and managing the contents of the update in a distributable manner, wherein the source file change history management method stores the source file after a given update. Detecting the changed portion by comparing the source file before the update, a change identification number indicating the change by the current update, and a change for identifying each line changed in the current update Generating an internal line number, detecting the change identification number given to the changed part before updating, and the changed internal line number given to each row of the changed part, and updating the changed part before and Storing the updated source code, the change identification number, and the in-change line number in association with each other as differential source code information; When the change identification number corresponding to the change content to be provided is given, the difference source code information having the change identification number as the updated change identification number is distributed to the separately managed source file. And outputting the distribution information, when the distribution information is given, the source code before the update in the distribution information, the change identification number and the line number within the change, the source file stored in the A search is performed to determine whether there is a portion where the source code, the change identification number, and all of the line numbers in the change match. If there is no match, the process ends. Source file change history management method, comprising the step of saving a file.
通情報の中の前記ソースコード、前記変更識別番号およ
び前記変更内行番号の全てが一致する箇所が無いとき、
前記流通情報内の更新前の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号と、更新前の前記ソースファイルにおいて変更すべ
き箇所の候補となる部分の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号を対応付けてエラー表示として出力する、請求項1
記載のソースファイル変更履歴管理方法。2. When there is no place in the source file before update in which all of the source code, the change identification number and the change line number in the distribution information match,
The source code before the update in the distribution information, the change identification number and the line number in the change corresponding to the source code, and the source code of a candidate portion of a portion to be changed in the source file before the update, 2. The error display according to claim 1, wherein the change identification number and the line number within the change corresponding to the source code are output in association with each other.
Source file change history management method described.
記更新での変更内容を流通可能に管理するソースファイ
ル変更履歴管理装置であって、与えられた更新後の前記
ソースファイルと保存されていた更新前の前記ソースフ
ァイルを比較して変更部分を検出する差分検出手段と、
今回の更新による変更であることを示す変更識別番号、
および前記今回の更新で変更された各行を識別するため
の変更内行番号を生成し、更新前の前記変更部分に付与
されていた前記変更識別番号、および該変更部分の各行
に付与されていた前記変更内行番号を検出する識別情報
生成手段と、前記変更部分の更新前および更新後の、前
記ソースコード、前記変更識別番号および前記変更内行
番号を互いに対応付けて差分ソースコード情報として保
存する変更履歴管理手段と、流通させたい前記変更内容
に対応した前記変更識別番号が与えられると、該変更識
別番号を更新後の前記変更識別番号として有する前記差
分ソースコード情報を、別途管理されている前記ソース
ファイルに流通させるための流通情報として出力する流
通情報生成手段と、前記流通情報が与えられると、該流
通情報の中の更新前の前記ソースコード、前記変更識別
番号および前記変更内行番号で、保存されている前記ソ
ースファイル内を検索して該ソースコードと該変更識別
番号と該変更内行番号の全てが一致する箇所があるか否
か判定し、一致する箇所が無ければ処理を終了し、一致
する箇所があれば前記流通情報を保存する流通情報解析
手段を有するソースファイル変更履歴管理装置。3. A source file change history management device for storing an updated source file and managing the contents of the update in a distributable manner, wherein the source file change history management device stores the source file after a given update. Difference detecting means for comparing the source file before update and detecting a changed portion,
A change identification number to indicate that this is a change due to this update,
And generating an in-change line number to identify each line changed in the current update, the change identification number assigned to the changed portion before update, and the change identification number assigned to each line of the changed portion. Identification information generating means for detecting an in-change line number, and a change history for storing the source code, the change identification number and the in-change line number before and after updating the changed portion as differential source code information in association with each other Management means, and given the change identification number corresponding to the change content to be distributed, the difference source code information having the change identification number as the updated change identification number after updating, the source separately managed Distribution information generating means for outputting as distribution information for distribution to a file, and when the distribution information is given, updating of the distribution information Searching the stored source file with the source code, the change identification number, and the line number within the change, and confirming whether there is a portion where the source code, the change identification number, and the line number within the change all match. A source file change history management device having distribution information analysis means for judging whether or not there is no matching part and terminating the processing if there is no matching part, and if there is a matching part, storing the distribution information.
通情報の中の前記ソースコード、前記変更識別番号およ
び前記変更内行番号の全てが一致する箇所が無いとき、
前記流通情報内の更新前の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号と、更新前の前記ソースファイルにおいて変更すべ
き箇所の候補となる部分の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号を対応付けてエラー表示として出力するエラー情報
出力手段を更に有する、請求項3記載のソースファイル
変更履歴管理装置。4. When there is no place in the source file before update in which all of the source code, the change identification number, and the line number in the change in the distribution information match,
The source code before the update in the distribution information, the change identification number and the line number in the change corresponding to the source code, and the source code of a candidate portion of a portion to be changed in the source file before the update, 4. The source file change history management device according to claim 3, further comprising an error information output unit that outputs the change identification number and the line number within the change corresponding to the source code as an error display.
記更新での変更内容を流通可能に管理するためのソース
ファイル変更履歴管理プログラムを記録した記憶媒体で
あって、与えられた更新後の前記ソースファイルと保存
されていた更新前の前記ソースファイルを比較して変更
部分を検出する処理と、今回の更新による変更であるこ
とを示す変更識別番号、および前記今回の更新で変更さ
れた各行を識別するための変更内行番号を生成し、更新
前の前記変更部分に付与されていた前記変更識別番号、
および該変更部分の各行に付与されていた前記変更内行
番号を検出する処理と、前記変更部分の更新前および更
新後の、前記ソースコード、前記変更識別番号および前
記変更内行番号を互いに対応付けて差分ソースコード情
報として保存する処理と、流通させたい前記変更内容に
対応した前記変更識別番号が与えられると、該変更識別
番号を更新後の前記変更識別番号として有する前記差分
ソースコード情報を、別途管理されている前記ソースフ
ァイルに流通させるための流通情報として出力する処理
と、前記流通情報が与えられると、該流通情報の中の更
新前の前記ソースコード、前記変更識別番号および前記
変更内行番号で、保存されている前記ソースファイル内
を検索して該ソースコードと該変更識別番号と該変更内
行番号の全てが一致する箇所があるか否か判定し、一致
する箇所が無ければ処理を終了し、一致する箇所があれ
ば前記流通情報を保存する処理をコンピュータに実行さ
せるためのソースファイル変更履歴管理プログラムを記
録した記録媒体。5. A storage medium for storing an updated source file and recording a source file change history management program for managing the contents of the update in a distributable manner, wherein the source file change history management program is provided. The process of comparing the source file and the stored source file before the update to detect a changed portion, a change identification number indicating that the change is due to the current update, and each line changed in the current update Generate a change in-line number for identification, the change identification number given to the changed part before update,
And processing for detecting the line number within the change that has been given to each line of the changed portion, and before and after updating the changed portion, the source code, the change identification number and the line number within the change in association with each other When the change identification number corresponding to the change content to be distributed is given, the difference source code information having the change identification number as the updated change identification number is separately stored. A process of outputting as distribution information for distribution to the managed source file, and when the distribution information is given, the source code, the change identification number, and the change internal line number before update in the distribution information In the stored source file, the source code, the change identification number and the change line number are all matched. It is determined whether there is a place to be executed, and if there is no matched place, the process is terminated. If there is a matched place, a source file change history management program for causing a computer to execute a process of storing the distribution information is recorded. recoding media.
通情報の中の前記ソースコード、前記変更識別番号およ
び前記変更内行番号の全てが一致する箇所が無いとき、
前記流通情報内の更新前の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号と、更新前の前記ソースファイルにおいて変更すべ
き箇所の候補となる部分の前記ソースコード、該ソース
コードに対応する前記変更識別番号および前記変更内行
番号を対応付けてエラー表示として出力する処理を更に
有するソースファイル変更履歴管理プログラムを記録し
た、請求項5記載の記録媒体。6. When there is no place in the source file before update where all of the source code, the change identification number, and the line number in the change in the distribution information match,
The source code before the update in the distribution information, the change identification number and the line number in the change corresponding to the source code, and the source code of a candidate portion of a portion to be changed in the source file before the update, 6. The recording medium according to claim 5, further comprising a source file change history management program further having a process of outputting the error identification display in association with the change identification number and the line number within the change corresponding to the source code.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000191356A JP2002007121A (en) | 2000-06-26 | 2000-06-26 | Source file change history management method, apparatus, and recording medium recording program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000191356A JP2002007121A (en) | 2000-06-26 | 2000-06-26 | Source file change history management method, apparatus, and recording medium recording program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2002007121A true JP2002007121A (en) | 2002-01-11 |
Family
ID=18690666
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000191356A Pending JP2002007121A (en) | 2000-06-26 | 2000-06-26 | Source file change history management method, apparatus, and recording medium recording program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2002007121A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007323205A (en) * | 2006-05-30 | 2007-12-13 | Hitachi Software Eng Co Ltd | Program management system |
| WO2010044150A1 (en) * | 2008-10-15 | 2010-04-22 | 富士通株式会社 | Program change management device, program change management program, and program change management method |
| JP2013114575A (en) * | 2011-11-30 | 2013-06-10 | Nec Corp | Information processing apparatus, information processing method and information processing program |
| JP2017520842A (en) * | 2014-06-13 | 2017-07-27 | ザ・チャールズ・スターク・ドレイパー・ラボラトリー・インコーポレイテッド | System and method for software analysis |
-
2000
- 2000-06-26 JP JP2000191356A patent/JP2002007121A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007323205A (en) * | 2006-05-30 | 2007-12-13 | Hitachi Software Eng Co Ltd | Program management system |
| WO2010044150A1 (en) * | 2008-10-15 | 2010-04-22 | 富士通株式会社 | Program change management device, program change management program, and program change management method |
| JPWO2010044150A1 (en) * | 2008-10-15 | 2012-03-08 | 富士通株式会社 | Program change management apparatus, program change management program, and program change management method |
| JP2013114575A (en) * | 2011-11-30 | 2013-06-10 | Nec Corp | Information processing apparatus, information processing method and information processing program |
| JP2017520842A (en) * | 2014-06-13 | 2017-07-27 | ザ・チャールズ・スターク・ドレイパー・ラボラトリー・インコーポレイテッド | System and method for software analysis |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9207933B2 (en) | Identifying authors of changes between multiple versions of a file | |
| US7689578B2 (en) | Dealing with annotation versioning through multiple versioning policies and management thereof | |
| US8423616B2 (en) | Identifying and correlating electronic mail messages | |
| JP2019113987A (en) | File management device, file management method, and program | |
| CN109616101B (en) | Acoustic model training method and device, computer equipment and readable storage medium | |
| KR20080049599A (en) | A document processing apparatus, a computer readable recording medium, and a document processing method | |
| US7324987B2 (en) | System and method for improving resolution of channel data | |
| CN114357961B (en) | A method, device, equipment and storage medium for generating a project feasibility study report | |
| US10095781B2 (en) | Reuse of documentation components when migrating into a content management system | |
| JP2002007121A (en) | Source file change history management method, apparatus, and recording medium recording program | |
| JP2013058168A (en) | Information processor and information processing program | |
| JP2021018577A (en) | Information processing device, information processing method, and program | |
| CN110196952B (en) | Program code search processing method, device, equipment and storage medium | |
| JP2000003403A (en) | Form input support method | |
| JP7456289B2 (en) | Judgment program, judgment method, and information processing device | |
| US11948055B1 (en) | Methods and computer program products for clustering records using imperfect rules | |
| JP3284539B2 (en) | Program library management system | |
| JP2932667B2 (en) | Information retrieval method and information storage device | |
| CN120354389B (en) | Fragile watermark generation, embedding and verification method for HD maps based on geometric features | |
| US20260037255A1 (en) | Artifact source code identification | |
| JPH06332957A (en) | Data processing method | |
| JP2025117494A (en) | Document Image Processing System | |
| JPWO2015145991A1 (en) | Consistency Check Location Estimation Device, Consistency Check System, Consistency Check Location Estimation Method, and Consistency Check Location Estimation Program | |
| JP2000112800A (en) | File history management system | |
| JP5163230B2 (en) | Verification program, recording medium recording the program, verification apparatus, and verification method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041215 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050209 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20050209 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20050209 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050601 |