253
|
1 \begin{frame}[fragile]{Importing a Code Drop} |
|
2 Mercurial can help you: |
|
3 \begin{lstlisting} |
|
4 $ rm -r lib/libfoo |
|
5 $ unzip libfoo-2.0.zip -d lib/libfoo |
|
6 $ hg status |
|
7 M lib/libfoo/modified.txt |
|
8 ! lib/libfoo/deleted.txt |
|
9 ? lib/libfoo/new.txt |
|
10 \end{lstlisting} |
|
11 |
|
12 \pause |
|
13 |
|
14 Question: has \ext{deleted.txt} been renamed to \ext{new.txt}? |
|
15 \begin{lstlisting} |
|
16 $ hg addremove --similarity 90 |
|
17 removing deleted.txt |
|
18 adding new.txt |
|
19 recording removal of deleted.txt as rename to new.txt (94% similar) |
|
20 \end{lstlisting} |
|
21 \end{frame} |