comparison tests/test-shelve.t @ 24477:325f03de849d

shelve: add interactive mode command line option
author Laurent Charignon <lcharignon@fb.com>
date Wed, 25 Mar 2015 15:52:28 -0700
parents b6bcfd160e14
children 95cbc77c0cad
comparison
equal deleted inserted replaced
24476:1378f20c8564 24477:325f03de849d
14 $ echo b > b/b 14 $ echo b > b/b
15 $ echo c > c 15 $ echo c > c
16 $ echo d > d 16 $ echo d > d
17 $ echo x > x 17 $ echo x > x
18 $ hg addremove -q 18 $ hg addremove -q
19
20 shelve has a help message
21 $ hg shelve -h
22 hg shelve [OPTION]... [FILE]...
23
24 save and set aside changes from the working directory
25
26 Shelving takes files that "hg status" reports as not clean, saves the
27 modifications to a bundle (a shelved change), and reverts the files so
28 that their state in the working directory becomes clean.
29
30 To restore these changes to the working directory, using "hg unshelve";
31 this will work even if you switch to a different commit.
32
33 When no files are specified, "hg shelve" saves all not-clean files. If
34 specific files or directories are named, only changes to those files are
35 shelved.
36
37 Each shelved change has a name that makes it easier to find later. The
38 name of a shelved change defaults to being based on the active bookmark,
39 or if there is no active bookmark, the current named branch. To specify a
40 different name, use "--name".
41
42 To see a list of existing shelved changes, use the "--list" option. For
43 each shelved change, this will print its name, age, and description; use "
44 --patch" or "--stat" for more details.
45
46 To delete specific shelved changes, use "--delete". To delete all shelved
47 changes, use "--cleanup".
48
49 (use "hg help -e shelve" to show help for the shelve extension)
50
51 options ([+] can be repeated):
52
53 -A --addremove mark new/missing files as added/removed before
54 shelving
55 --cleanup delete all shelved changes
56 --date DATE shelve with the specified commit date
57 -d --delete delete the named shelved change(s)
58 -e --edit invoke editor on commit messages
59 -l --list list current shelves
60 -m --message TEXT use text as shelve message
61 -n --name NAME use the given name for the shelved commit
62 -p --patch show patch
63 -i --interactive interactive mode, only works while creating a shelve
64 --stat output diffstat-style summary of changes
65 -I --include PATTERN [+] include names matching the given patterns
66 -X --exclude PATTERN [+] exclude names matching the given patterns
67 --mq operate on patch repository
68
69 (some details hidden, use --verbose to show complete help)
19 70
20 shelving in an empty repo should be possible 71 shelving in an empty repo should be possible
21 (this tests also that editor is not invoked, if '--edit' is not 72 (this tests also that editor is not invoked, if '--edit' is not
22 specified) 73 specified)
23 74