Skip to content

Instantly share code, notes, and snippets.

@cointoss1973
Created June 18, 2012 12:36
Show Gist options
  • Save cointoss1973/2948176 to your computer and use it in GitHub Desktop.
Save cointoss1973/2948176 to your computer and use it in GitHub Desktop.
reproduce of mq and subrepo qrefresh problem
REM subrepo test script
hg version
rmdir /s /q tmp
mkdir tmp\main
cd tmp\main
REM ----- initial repositories
hg init
hg init sub
REM ----- subrepo commit
echo 0 > sub/0
hg commit -R sub -Am "add file 0"
echo 1 > sub/1
hg commit -R sub -Am "add file 1"
echo 2 > sub/2
hg commit -R sub -Am "add file 2"
echo 3 > sub/3
hg commit -R sub -Am "add file 3"
REM ----- Added subrepo
echo sub = sub > .hgsub
hg add .hgsub
hg commit -m "add sub as subrepo"
REM ----- main repo and subrepo sync
echo 1 > 1
hg add
hg update -R sub 0
hg status
hg commit -m "add 1(main) subrepo 0"
echo a >a
hg commit -Am "add file a(main)"
echo b >b
hg commit -Am "add file b(main)"
echo c >c
hg commit -Am "add file c(main)"
REM ----- qnew for subrepo update
hg qnew upsub
hg update -R sub 3
thg
REM TortoiseHg 再現手順
REM "ファイルリスト"を押下
REM "パッチ更新"押下
REM "パッチ更新"押下
@cointoss1973
Copy link
Author

TortoiseHg 2.4.1 NG
TortoiseHg 2.4 NG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment