##// END OF EJS Templates
[PATCH] Force "hg clone" to always create a new directory...
[PATCH] Force "hg clone" to always create a new directory -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Force "hg clone" to always create a new directory From: Bryan O'Sullivan <bos@serpentine.com> I just screwed myself by typing "hg clone foo" without specifying a destination directory, and after I was done mopping up the mess, concluded that this is a dangerous mode of operation that has no practical value. I've thus modified the clone command so that it always creates a destination directory. If none is specified, the destination is taken as the basename of the source. hg clone foo -> error, because foo already exists hg clone http://www.selenic.com/hg -> new repo, named hg hg clone ../bar -> new repo, named bar manifest hash: f21ed8f805a60c1326d99220772e1574b0870d6c -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwxsIywK+sNU5EO8RAgooAKC3IL6vKyADb9s2qqqi4GMw2Z7asACbBtE/ TvPgwGtIiB2GC+N+V7r1VpI= =uTcK -----END PGP SIGNATURE-----

File last commit:

r509:98a2935c default
r523:003df62a default
Show More
test-help.out
88 lines | 3.9 KiB | text/plain | TextLexer
+ hg -q help
hg commands:
add add the specified files on the next commit
addremove add all new files, delete all missing files
annotate show changeset information per file line
cat output the latest or given revision of a file
clone make a copy of an existing repository
commit commit the specified files or all outstanding changes
copy mark a file as copied or renamed for the next commit
diff diff working directory (or selected files)
export dump the changeset header and diffs for a revision
forget don't add the specified files on the next commit
heads show current repository heads
help show help for a given command or all commands
identify print information about the working copy
import import an ordered set of patches
init create a new repository in the current directory
log show the revision history of the repository or a single file
manifest output the latest or given revision of the project manifest
parents show the parents of the current working dir
pull pull changes from the specified source
push push changes to the specified destination
rawcommit raw commit interface
recover roll back an interrupted transaction
remove remove the specified files on the next commit
root print the root (top) of the current working dir
serve export the repository via HTTP
status show changed files in the working directory
tag add a tag for the current tip or a given revision
tags list repository tags
tip show the tip revision
undo undo the last transaction
update update or merge working directory
verify verify the integrity of the repository
version output version and copyright information
+ hg add -h
hg add: option -h not recognized
hg add [files]
add the specified files on the next commit
+ hg help diff
hg diff [-r A] [-r B] [files]
-r --rev
revision
diff working directory (or selected files)
+ hg help foo
hg: unknown command foo
+ hg -q commands
hg: unknown command 'commands'
hg commands:
add add the specified files on the next commit
addremove add all new files, delete all missing files
annotate show changeset information per file line
cat output the latest or given revision of a file
clone make a copy of an existing repository
commit commit the specified files or all outstanding changes
copy mark a file as copied or renamed for the next commit
diff diff working directory (or selected files)
export dump the changeset header and diffs for a revision
forget don't add the specified files on the next commit
heads show current repository heads
help show help for a given command or all commands
identify print information about the working copy
import import an ordered set of patches
init create a new repository in the current directory
log show the revision history of the repository or a single file
manifest output the latest or given revision of the project manifest
parents show the parents of the current working dir
pull pull changes from the specified source
push push changes to the specified destination
rawcommit raw commit interface
recover roll back an interrupted transaction
remove remove the specified files on the next commit
root print the root (top) of the current working dir
serve export the repository via HTTP
status show changed files in the working directory
tag add a tag for the current tip or a given revision
tags list repository tags
tip show the tip revision
undo undo the last transaction
update update or merge working directory
verify verify the integrity of the repository
version output version and copyright information
+ exit 0