File: issue2608-clone-http-packed-outdated.sh

package info (click to toggle)
darcs 2.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,008 kB
  • sloc: haskell: 47,748; sh: 13,466; ansic: 447; perl: 134; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# test that cloning a repo with not up-to-date packs still gets us all the patches

. lib
. httplib

rm -rf R
darcs init R
cd R
echo foo > foo
darcs record -lam foo
darcs tag foo
echo bar > bar
darcs record -lam bar
darcs optimize http
darcs tag "not packed"
echo qux > qux
darcs record -lam qux
cd ..

serve_http # sets baseurl

rm -rf S
darcs clone $baseurl/R S

cd S
darcs log | grep "not packed"
darcs log | grep "qux"
cd ..