svn basic commands

svn add target

svn up [target]

svn revert [target]

svn info [target]

svn cleanup

svn unlock

svn ignore

svn ci -m ‘comment here’ [target]

svn rm target

svn diff [target]

compare changes: server version VS working copy as console previewable text (like ‘cat filename’)

>>>special pake telor

svn blame target

eg. svn blame edit.html.erb

101009 aris@arison.com<div>

101009 aris@arison.com<%- @post.attributes.each_with_index do |a,i| -%>

101009 aris@arison.com<%= @post.send(a) %><%= “<hr />” if i == @post.attributes.size -1 %>

101009 aris@arison.com<%- end -%>

101009 aris@arison.com</div>

101008 sontoloyo@arison.com<div>

101008 sontoloyo@arison.com<%= debug @post.inspect %>

101008 sontoloyo@arison.com<%- @post.attributes.each_with_index do |a,i| -%>

101008 sontoloyo@arison.com<%= @post.send(a) %><%= “<hr />” if i == @post.attributes.size -1 %>

101008 sontoloyo@arison.com<%- end -%>

101008 sontoloyo@arison.com</div>

>>>>

it’s just like ‘whole diff’ of a targetted file with special who has commited changes on a revision number’

>>>>>>>>>>>mime.128940

conflict state?

my steps are:

1. copy and paste whole code to temp file

2.. remove all filenamecode.*

3.svn up

4.svn diff, ensure what was changed?

5.paste as needed.

6.do ‘ci’

##########

*target can be file or dir

*all action must ended by svn ci to effect the changes

more is svn –help 😀

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: