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

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe