Mercurial question: updating files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mercurial question: updating files
# 1  
Old 10-06-2009
Mercurial question: updating files

I have two files: file01.txt and file02.txt. File02.txt is the upgraded version of file01.txt and I want to add both files to a mercurial repository, but such that file02.txt is seen as the extended version of file01.txt. So in essence both the file name and the file contents have changed.

I could do it the manual way, by adding file01.txt, copying it, add the contents of file02.txt to file01.txt, pull, merge and commit, but that becomes tiresome for the amount of files I have. Any quicker way?
# 2  
Old 10-06-2009
HI Fiagro,
could you please show us how you need the content of file need to be change so we will better proceed.

regards,
Sanjay
# 3  
Old 10-06-2009
You can think of it as files being pre-prepared, so there is a version 1, which contains file01.txt, say a list of airport codes. The next version is version 2, having file02.txt of next years airport codes. From the context I know that file02.txt is the successor (or rather: new version) of file01.txt and both files exist already. I am looking for a way to handle this in Mercurial efficiently.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Updating Directories and Files

Hi guys. So brand new Unix user and first time poster. I have a set of directories and files on my local computer. I also have a set of them on another system. I have updated the files locally and need to now pass this on to the ones on the system I ssh into. What is the quicker way to do... (1 Reply)
Discussion started by: sgolemme
1 Replies

2. Shell Programming and Scripting

Updating the files at specific location

Hi All, I have a requirement wherein I need to test if a line in file succeeding "IF" statement has "{" .If the line succeeding "IF" statement does not have "{" , then I need to insert the "{". Similarly , I need to check if a line in file preceding "ENDIF" statement has "}" .If not , then I... (2 Replies)
Discussion started by: swapnil.nawale
2 Replies

3. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies

4. UNIX for Dummies Questions & Answers

Korn shell awk use for updating two files

Hi, I have two text files containing records in following format: file1 format is: name1 age1 nickname1 path1 name2 age2 nickname2 path2 file 1 example is: abcd 13 abcd.13 /home/temp/abcd.13 efgh 15 efgh.15 /home/temp/new/efgh.15 (4 Replies)
Discussion started by: alrinno
4 Replies
Login or Register to Ask a Question