All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
its calling convention. If you used the old version, you'll get errors
from the new old.
* Add to the example mrconfig a "tags" command that lists tags.
(Currently only for svn and git.)
* Add to the example mrconfig a "tags" command that lists tags.
(Currently only for svn and git.)
+ * hours_since was broken by design, and fixing it involved changing
+ its calling convention. If you used the old version, you'll get errors
+ from the new old.
- -- Joey Hess <joeyh@debian.org> Sun, 21 Oct 2007 01:49:03 -0400
+ -- Joey Hess <joeyh@debian.org> Sun, 21 Oct 2007 13:58:30 -0400
mr (0.5) unstable; urgency=low
mr (0.5) unstable; urgency=low
been at least 12 hours since the last update.
skip = test $(whoami) != joey
been at least 12 hours since the last update.
skip = test $(whoami) != joey
- skip = [ "$1" = update ] && [ $(hours_since "$1") -lt 12 ]
+ skip = [ "$1" = update ] && ! hours_since "$1" 12
+ if [ -z "$1" ] || [ -z "$2" ]; then
+ error "mr: usage: hours_since action num"
+ fi
for dir in .git .svn .bzr CVS .hg; do
if [ -e "$MR_REPO/$dir" ]; then
flagfile="$MR_REPO/$dir/.mr_last$1"
for dir in .git .svn .bzr CVS .hg; do
if [ -e "$MR_REPO/$dir" ]; then
flagfile="$MR_REPO/$dir/.mr_last$1"
if [ -z "$flagfile" ]; then
error "cannot determine flag filename"
fi
if [ -z "$flagfile" ]; then
error "cannot determine flag filename"
fi
- perl -wle 'print -f shift() ? int((-M _) * 24) : 9999' "$flagfile"
- touch "$flagfile"
+ delta=$(perl -wle 'print -f shift() ? int((-M _) * 24) : 9999' "$flagfile")
+ if [ "$delta" -lt "$2" ]; then
+ exit 0
+ else
+ touch "$flagfile"
+ exit 1
+ fi
[src/linux-2.6]
checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
skip = ! mylaptop || ! wantsrc ||
[src/linux-2.6]
checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
skip = ! mylaptop || ! wantsrc ||
- ([ "$1" = update ] && [ $(hours_since "$1") -lt 12 ])
+ ([ "$1" = update ] && ! hours_since "$1" 12)
[src/dpkg]
# A merge of the upstream dpkg git repo and my own personal branch.
[src/dpkg]
# A merge of the upstream dpkg git repo and my own personal branch.