view tests/test-cat.t @ 12135:b6cc68ef2702

test-serve: ensure KILLQUIETLY is only used once 49463314c24f introduced a feature to the hgserve() function that suppresses errors from kill(1). It wrongly assumed that setting an environment variable when calling a function would make it local to the function. It ended up suppressing kill errors for every call thereafter. This patch sets KILLQUIETLY=N after use.
author Brodie Rao <brodie@bitheap.org>
date Mon, 30 Aug 2010 11:16:21 -0400
parents fddacca3202e
children 4c94b6d0fb1c
line wrap: on
line source

  $ mkdir t
  $ cd t
  $ hg init
  $ echo 0 > a
  $ echo 0 > b
  $ hg ci -A -m m -d "1000000 0"
  adding a
  adding b
  $ hg rm a
  $ hg cat a
  0
  $ hg cat --decode a # more tests in test-encode
  0
  $ echo 1 > b
  $ hg ci -m m -d "1000000 0"
  $ echo 2 > b
  $ hg cat -r 0 a
  0
  $ hg cat -r 0 b
  0
  $ hg cat -r 1 a
  a: no such file in rev 03f6b0774996
  $ hg cat -r 1 b
  1