File: test-addbranchrevs.t

package info (click to toggle)
hg-git 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,244 kB
  • sloc: python: 8,702; sh: 185; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Load commonly used test logic
  $ . "$TESTDIR/testutil"

This test doesn’t test any git-related functionality. It checks that a previous
bug is not present where mercurial.hg.addbranchrevs() was erroneously
monkey-patched such that the 'checkout' return value was always None. This
caused the pull to not update to the passed revision.

  $ hg init orig
  $ cd orig
  $ echo a > a; hg add a; hg ci -m a
  $ hg branch foo -q
  $ echo b > b; hg add b; hg ci -m b

  $ cd ..
  $ hg clone orig clone -r 0 -q
  $ cd clone
  $ hg pull -u -r 1 -q
  $ hg id -n
  1