distributions/src/archive.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 25 Jul 2020 17:25:19 +0200
branchv_0
changeset 252 a9d4a8d5c57f
parent 153 5bb73142671d
permissions -rwxr-xr-x
improve multiple results support

The specification talks exactly about -1:
> Returns: the current result as an update count;
> -1 if the current result is a ResultSet object or there are no more results

Other negative numbers can theoretically mean something different than „no more results“
e.g. unknown number of updates (?).
franta-hg@153
     1
#!/bin/bash
franta-hg@153
     2
franta-hg@153
     3
hg archive -r ${1} sql-dk_${1}_src.tar.gz