~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/reject

  • Committer: Robert Collins
  • Date: 2005-09-13 12:39:26 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050913123926-b72242bdacc1ae52
create the output directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
## Copyright (C) 2004 Aaron Bentley
 
3
##
 
4
## See the file "COPYING" for further information about
 
5
## the copyright and warranty status of this work.
 
6
 
 
7
. "$abadir/aba-lib"
 
8
 
 
9
# executes the command ("$@" are the arguments after the command name)
 
10
cmd_exec()
 
11
{
 
12
  revision=$(aba_full_revision $1)
 
13
  aba_try tla replay --reverse $revision
 
14
  aba_try tla sync-tree $revision
 
15
}
 
16
 
 
17
# one-liner description for aba help
 
18
cmd_desc()
 
19
{
 
20
    aba_desc $(basename $0) "remove a patch, keeping its log"
 
21
}
 
22
 
 
23
# short help for aba command -h, --help
 
24
cmd_help()
 
25
{
 
26
    cat <<EOH
 
27
remove a patch, keeping its log
 
28
usage: $abaname $(basename $0) revision
 
29
 
 
30
When a patch is removed with replay --reverse, its patchlog is removed, which
 
31
means that the patch is considered "missing", not deliberately reoved.  This
 
32
command restores the patchlog after reversing.
 
33
 
 
34
EOH
 
35
}
 
36
 
 
37
# extended help for aba command -H or aba help command
 
38
cmd_ext_help()
 
39
{
 
40
    cat <<EOH
 
41
If you later decide to accept a previously-rejected patch, you can simply reject
 
42
the patch you created when you originally rejected it.
 
43
 
 
44
EOH
 
45
}       
 
46
 
 
47
aba_run "$@"
 
48
# arch-tag: reject by Aaron Bentley  (01:09 Apr 11 2004)