Skip to main content

SVN work flow complex source code version

http://stackoverflow.com/questions/3816626/deleting-an-svn-branch
http://svnbook.red-bean.com/en/1.5/svn.tour.importing.html#svn.tour.importing.layout


svn cat -r 27343 js/controllers/Money/BurnMoneyCtrl.js
svn cat -r rev_number file_path

Mấy lệnh check out version cũ cho 1 file trong SVN như shit éo hiêu sao ko chạy.

svn log -v to show all path change in commit (all file change/added ...)

WTF
http://stackoverflow.com/questions/16787065/svn-log-not-showing-all-recent-commits

The problem had to do with my poor understanding of what svn log was showing. With no other arguments supplied, it outputs log messages from the working copy of the log, not from the actual repository. Thus, issuing svn update will bring the working copy up-to-date with the repository, and then svn log will reflect all recent commits. Duh! ;-)

Run svn log on command line (GitBash) do not show all recent commits. So I very worry about a big problem has been happened. Fortunately, svn show ok on GUI.


 svn up --no-auth-cache --username 'angeleye' --password 'archangel'

Tại sao no-auth-cache ? Khi nhiều acc svn muốn dùng chung server (vd XAMPP trên Windows server).
Y/C: ko rõ có cần update config trong ~/.subversion/config dòng
store-passwords=yes
store-auth-creds=yes

- Cờ này ko lưu lại credential khi nhập acc trong command line.
+ Nếu lưu thì lúc ông khác dùng thì lại phải vô tortoiseSVN clear acc này đi.
+ Nếu dùng command line mà muốn dụng account SVN khác cũng phải clear cache đi. rm thằng auth thường ở ~/.subversion/auth gì đó.
+ Hay gặp ở server Windows dùng remote desktop nhiều dự án/acc dùng chung. Trên linux thì thường mỗi 1 proj có acc/env (OS) riêng. Thường là 1 VPS hay máy ảo linux. Trên linux thì tươi hơn rất nhiều và ít khi gặp tình huống này.

+ Bt trên 1 máy cá nhân thì ok fine lưu tất acc svn git lại cache. Trường hợp 1 máy nhưng dùng nhiều acc thì là chuyện khác.
+ Git thì có nhiều cách config vd như theo domain nào thì acc nào ... tươi hơn nhiều.
+
### The rest of the [auth] section in this file has been deprecated.
### Both 'store-passwords' and 'store-auth-creds' can now be
### specified in the 'servers' file in your config directory
### and are documented there. Anything specified in this section
### is overridden by settings specified in the 'servers' file.
=> Hình như svn cũng có config authen cho từng server ?
Nếu server SVN cũng chung nốt thì sao ? quỳ :0

TODO: figure out how to store multiple account SVN on 1 server windows. Config .subversion/servers [global] and/or [specific-project-svn-url] like git config domain.

Long problem but do not research deeply. :(
Windows is suck. But there is always a way. :)

SVN soi file đã sửa trong khoảng 2 revision (commit):

svn log -v -rX:Y .

svn diff -r 17882:HEAD --summarize

Git dĩ nhiên là có (update here).

Comments

Popular posts from this blog

AWS Elasticache Memcached connection

https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/accessing-elasticache.html#access-from-outside-aws http://hourlyapps.blogspot.com/2010/06/examples-of-memcached-commands.html Access memcached https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/GettingStarted.AuthorizeAccess.html Zip include hidden file https://stackoverflow.com/questions/12493206/zip-including-hidden-files phpmemcachedadmin ~ phpMyAdmin or phpPgAdmin ... telnet mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com 11211 stats items stats cachedump 27 100 https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/VPCs.EC.html https://lzone.de/cheat-sheet/memcached VPC ID Security Group ID (sg-...) Cluster: The identifier for the cluster memcached1 Creation Time: The time (UTC) when the cluster was created January 9, 2019 at 11:47:16 AM UTC+7 Configuration Endpoint: The configuration endpoint of the cluster memcached1.ahgofe.cfg.usw1.cache.amazonaws.com:11211 St...

Notes Windows 10 Virtualbox config, PHP Storm Japanese, custom PHP, Apache build, Postgresql

 cmd => Ctrl + Shift + Enter mklink "C:\Users\HauNT\Videos\host3" "C:\Windows\System32\drivers\etc\hosts" https://www.quora.com/How-to-create-a-router-in-php https://serverfault.com/questions/225155/virtualbox-how-to-set-up-networking-so-both-host-and-guest-can-access-internet 1 NAT + 1 host only config https://unix.stackexchange.com/questions/115464/how-to-properly-set-up-2-network-interfaces-in-centos-running-in-virtualbox DEVICE=eth0 TYPE=Ethernet #BOOTPROTO=dhcp BOOTPROTO=none #IPADDR=10.9.11.246 #PREFIX=24 #GATEWAY=10.9.11.1 #IPV4_FAILURE_FATAL=yes #HWADDR=08:00:27:CC:AC:AC ONBOOT=yes NAME="System eth0" [root@localhost www]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 IPADDR=192.168.56.28 <= no eff => auto like DHCP #GATEWAY=192.168.56.1 #BOOTPROTO=dhcp BOOTPROTO=static <= no eff ONBOOT=yes HWADDR=08:00:27:b4:20:10 [root@localhost www]# ...

Rocket.Chat DB schema

_raix_push_notifications avatars.chunks avatars.files instances meteor_accounts_loginServiceConfiguration meteor_oauth_pendingCredentials meteor_oauth_pendingRequestTokens migrations rocketchat__trash rocketchat_cron_history rocketchat_custom_emoji rocketchat_custom_sounds rocketchat_import rocketchat_integration_history rocketchat_integrations rocketchat_livechat_custom_field rocketchat_livechat_department rocketchat_livechat_department_agents rocketchat_livechat_external_message rocketchat_livechat_inquiry rocketchat_livechat_office_hour rocketchat_livechat_page_visited rocketchat_livechat_trigger rocketchat_message rocketchat_oauth_apps rocketchat_oembed_cache rocketchat_permissions rocketchat_raw_imports rocketchat_reports rocketchat_roles rocketchat_room rocketchat_settings rocketchat_smarsh_history rocketchat_statistics rocketchat_subscription rocketchat_uploads system.indexes users usersSessions https://rocket.chat/docs/developer-guides/sc...