2008年9月1日 星期一

Linux Command - cvs, get specified date source from cvs server

we can use the following date format to retrieve the specified source date version
# cvs -q up -D 2008-08-13 00:00
# cvs st -v ./Makefile
===================================================================
File: Makefile Status: Up-to-date

Working revision: 1.18
Repository revision: 1.18 [omit]/Makefile,v
Sticky Tag: (none)
Sticky Date: 2008.08.12.16.00.00
Sticky Options: (none)


# cvs -q up -D "2010-01-18 18:00:00 +0800" //Because the Taipei time minutes was +08:00
or
# cvs -q up -D "2010-01-18 10:00:00 UTC"
# cvs st -v ./File.c
File: BufferManager.c Status: Up-to-date

Working revision: 1.2
Repository revision: 1.2 [omit]/File.c,v
Sticky Tag: (none)
Sticky Date: 2010.01.18.10.00.00
Sticky Options: (none)



# checkout a specified date/time version of project code in the UTC (Coordinated Universal Time). This command was worked for me.
# cvs checkout -D "2009-05-04 14:48:00 UTC" modulename

# The following format is not yet correct executed in my environment yet, but it was suggested by the net
cvs checkout -D "2009-05-04 14:48:00 +0800" modulename >> "+0800" means that the CVS UTC time will minus the "0800" and the real checkout time (UTC/GMT time) will be "2009-05-04 06:48:00"
or cvs update -D "2009-05-04 14:48:00 +0800" modulename

Note:
Greenwich Mean Time (GMT) can be considered equivalent to UTC time

// cvs command format
cvs [Global options] cvs_command [Common options] [cvs_command_individual_options]

//
# cvs -q up -r TSA_V1272_PS -D "2010-01-17 04:00:00 -0800"

File: Tunnel_TCP.c Status: Needs Patch

Working revision: 1.182.2.1.2.3
Repository revision: 1.182.2.1.2.4 /home/cvs/tunnelcode/TunnelSystem/TunnelSystem/Tunnel_TCP.c,v
Sticky Tag: TSA_V1272_PS (branch: 1.182.2.1.2)
Sticky Date: (none)
Sticky Options: (none)

沒有留言: