File: log.sh

package info (click to toggle)
darcs 2.18.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,960 kB
  • sloc: haskell: 47,748; sh: 13,466; ansic: 447; perl: 134; makefile: 8
file content (27 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
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
#!/usr/bin/env bash

. lib
. httplib

check_remote_http https://hub.darcs.net/darcs/darcs-screened

# Demonstrates issue385 and others
darcs log --repo=https://hub.darcs.net/darcs/darcs-screened GNUmakefile --last 30

# Test things mentioned in issue2461:

# no _darcs should remain
test ! -d _darcs

# go to a directory where we have no write access
trap "chmod u+w $PWD/ro" EXIT
mkdir ro
chmod a-w ro
cd ro
# and try again (with less patches to fetch)
darcs log --repo=https://hub.darcs.net/darcs/darcs-screened GNUmakefile --last 3
# an absolute path should give an error
not darcs log --repo=https://hub.darcs.net/darcs/darcs-screened /GNUmakefile --last 3
# also test that it works without any filename arguments
darcs log --repo=https://hub.darcs.net/darcs/darcs-screened --last 1
cd ..