mywiki:versiontool:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mywiki:versiontool:start [2014/08/06 19:11] – [svn ( Subversion )] shaoguoh | mywiki:versiontool:start [2019/09/15 18:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| + | |||
| + | |||
| + | | [[http:// | ||
| + | |||
| + | ===== Remove outgoing changeset ===== | ||
| + | The method to remove the outgoing changeset, ie, already committed but not pushed yet. | ||
| + | |||
| + | hg **strip** REV | ||
| + | |||
| + | ===== QUEUE ===== | ||
| - | QUEUE: | ||
| hg qnew " | hg qnew " | ||
| + | |||
| + | **undo hg qnew:** | ||
| + | * hg strip -k . | ||
| + | * hg qdelete patch-name | ||
| + | |||
| + | The --keep flag makes strip ignore the working copy while working, that is, it deletes the commit (like hg qpop would do) but it doesn' | ||
| hg qpop // 把最上面的的patch移出队列 | hg qpop // 把最上面的的patch移出队列 | ||
| + | |||
| hg qpush // 应用一个patch | hg qpush // 应用一个patch | ||
| + | |||
| hg qremove patch_name // | hg qremove patch_name // | ||
| + | |||
| hg qser // 查看所有已有的patch | hg qser // 查看所有已有的patch | ||
| + | |||
| hg qapp // 查看所有被应用的patch | hg qapp // 查看所有被应用的patch | ||
| + | |||
| hg qfinish -a // finish 之后的patch才能被提交 | hg qfinish -a // finish 之后的patch才能被提交 | ||
| + | |||
| hg qimport " | hg qimport " | ||
| + | |||
| hg qimport -r 12345 // 把已经finish的changeset再变回queue,-r后的参数为changeset的版本号 | hg qimport -r 12345 // 把已经finish的changeset再变回queue,-r后的参数为changeset的版本号 | ||
| + | |||
| OTHER: | OTHER: | ||
| + | |||
| hg purge // 删除所有新增的文件 | hg purge // 删除所有新增的文件 | ||
| + | |||
| hg pull --rebase // 本地有q的时候使用,从center repository上得到最新更新,并在更新的代码上应用本地的queues | hg pull --rebase // 本地有q的时候使用,从center repository上得到最新更新,并在更新的代码上应用本地的queues | ||
| Line 52: | Line 77: | ||
| Otherwise, it will report trick errors, like: access Pre-revision-change fail or non-exist, access write-lock fail and so on. | Otherwise, it will report trick errors, like: access Pre-revision-change fail or non-exist, access write-lock fail and so on. | ||
| + | |||
| + | ===== SVN Server Daemon ===== | ||
| + | |||
| + | svnserve -d -r / | ||
| + | |||
| + | -r: svn repo directory | ||
| + | --config-file: | ||
| + | |||
| + | The directory tree under configuration folder is: | ||
| + | conf | ||
| + | hooks | ||
| + | |||
| + | ====== Git ====== | ||
| + | ^ Reference | [[https:// | ||
| + | |||
mywiki/versiontool/start.1407323466.txt.gz · Last modified: (external edit)
