Perforce Tip: how to apply my default change to the release branch
来源:互联网 发布:淘宝和访客交流 编辑:程序博客网 时间:2024/05/18 02:19
Create the patch,
p4 diff -du -db main-branch/... > ~/mywork.patch
Go to the work directory of release branch.
cd dir-release-branch/
`p4 edit' the files I want to patch under release branch. Please note,
- `lsdiff' is from the package `patchutils'.
- `nosl' will strip the slashes. It's written by me.
cat ~/mywork.patch|lsdiff|nosl 5|p4 -x - edit
Patch the files and DONE!
patch -p5 < ~/mywork.patch
Here is the source code of nosl. I put it in my .bashrc
function nosl(){ if [ -z "$1" ]; then echo "Usage: echo /hello/world|nosl num" echo "strip num leading slashes" else perl -pe "/$n=$1;while(/$n>0){ /$_=~ s/[^//]*//+//;/$n--; }" fi}
BTW, you could save all the trouble of Perforce by switching to Git.
- Perforce Tip: how to apply my default change to the release branch
- How to Change the Default System Fonts
- How to change the SQL Server 2008 default install path
- How to change the SQL Server 2008 default install path
- how to change the default mode of a linux device
- How to change the default browser in Visual Studio
- how to change the implicit default settings in django 1.6
- How to change the default stack size on different platforms
- How to Change Default Audio Device
- how to change kvm default storage position.
- How to change the dbo
- How to change the default browser to debug with in Visual Studio 2008?
- How to change the default location of the Office 2010 Document Cache
- How to Change the Default Boot Device by Using the Boot PROM
- How to apply Android 2.3 to my HTC
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- How to programmatically change the default view of an InfoPath form
- pyqt - How to change the color of a word from my textedit
- 如何使用SignalTap II觀察reg與wire值? (SOC) (Verilog) (Quartus II) (SignalTap II)
- Java线程:新特征-有返回值的线程
- C# 线程同步与线程池 浅析
- 线程模型,内核线程,用户线程
- UVA 10060 A hole to catch a man
- Perforce Tip: how to apply my default change to the release branch
- 在32位Ubuntu10.04上编译Android2.3
- 程序员的一天
- java简单文件锁
- XCode 4 使用 libxml2
- 机会与风险并存
- 利用双向循环链表进行显示更新
- XML文件的解析--libxml库函数解释
- 基于udp的监视系统示例