~ubuntu-branches/ubuntu/precise/mercurial/precise-updates

« back to all changes in this revision

Viewing changes to tests/test-rebase-rename

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Danjean, Javi Merino, Vincent Danjean
  • Date: 2010-07-04 09:55:28 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100704095528-bzag1mhfylss9zth
Tags: 1.6-1
[ Javi Merino ]
* New upstream release (1.6). Many bug fixes and improvements. Among
    them:
  - push: break infinite http recursion bug with Python 2.6.5
       (issue2179 and issue2255) (Closes: #586907)
  - zeroconf: Don't use string exceptions (Closes: #585250)
* Removed patch for_upstream__bashism_in_examples.patch since a fix for
    #581122 is included upstream.
* Updated Standards-Version to 3.9 (no change needed)

[ Vincent Danjean ]
* debian/control:
  + Use Breaks instead of Conflicts
  + Use a fixed version in Replaces
    I put 1.4 but it has been a long time since nothing has been moved
    from mercurial to mercurial-common

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
 
3
. $TESTDIR/helpers.sh
 
4
 
3
5
echo "[extensions]" >> $HGRCPATH
4
6
echo "rebase=" >> $HGRCPATH
5
7
echo "[diff]" >> $HGRCPATH
7
9
 
8
10
BASE=`pwd`
9
11
 
10
 
cleanoutput () {
11
 
    sed -e 's/\(Rebase status stored to\).*/\1/'  \
12
 
        -e 's/\(Rebase status restored from\).*/\1/' \
13
 
        -e 's/\(saving bundle to \).*/\1/'
14
 
}
15
 
 
16
12
hg init repo1
17
13
cd repo1
18
14
echo "a">a
28
24
hg log -p -r tip --template '{rev}:{desc}\n'
29
25
 
30
26
echo '% Rebase the revision containing the rename'
31
 
hg rebase -s 2 -d 1 --quiet 2>&1 | cleanoutput
 
27
hg rebase -s 2 -d 1 --quiet | cleanrebase
32
28
 
33
29
echo
34
30
echo '% Rename is not lost'
51
47
hg log -p -r tip --template '{rev}:{desc}\n'
52
48
 
53
49
echo '% Rebase the revision containing the copy'
54
 
hg rebase -s 2 -d 1 --quiet 2>&1 | cleanoutput
 
50
hg rebase -s 2 -d 1 --quiet | cleanrebase
55
51
 
56
52
echo
57
53
echo '% Copy is not lost'