Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- @REM Create a 3-revision database
- hg init current
- cd current
- echo >file1
- hg add
- hg ci -m file1
- echo >file2
- hg add
- hg ci -m file2
- echo >file3
- hg add
- hg ci -m file3
- @REM Add the first revision to the splice map
- hg log -r 0 --template "{node} " > ..map
- @REM Display the result
- hg log
- cd ..
- @REM Create a 1-revision database
- hg init ignore
- cd ignore
- echo glob:*.txt>.hgignore
- hg add
- hg ci -m ignore
- @REM Specify this node as the parent of the other
- @REM database's first revision in the splice map
- hg log -r 0 --template "{node}n" >> ..map
- hg log
- cd ..
- @REM Here's the resulting splice map
- type map
- @REM Make a copy to store the result
- hg clone ignore result
- @REM Add revisions from "current" to "result" honoring
- @REM the splice map
- hg convert current result --splicemap map
- @REM Display the result
- cd result
- hg log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement