Mercurial > hg-stable
view TODO @ 523:003df62ae39f
[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-----
author | mpm@selenic.com |
---|---|
date | Wed, 29 Jun 2005 14:04:56 -0800 |
parents | 12b4b5612fe4 |
children | c5b8ed036433 eda4c32c167a |
line wrap: on
line source
General: - Better documentation - More regression tests - More specific try/except. - less code duplication, more code in the right places - python 2.2 support - better import support - export to git - Add standard files: ChangeLog? What else? - Code cleanup: apply http://python.org/peps/pep-0008.html Core: - difflib creating/removing files (fixed except dates: should be epoch) - directory foo.d or foo.i with existing file foo (use some quoting?) - get various options from hgrc (e.g. history always -v, tip always -q) - better push support (hack exists) - hg over ssh:// and https:// - commit mailinglist/trigger/hooks - make showing removed files (in history etc.) faster. Commands: - hg diff Makefile should avoid walking the tree - hg add <directory> should work - hg status <filename>: file rev, changeset rev, changed, added, deleted, sha-1 - select to pull a subset of the heads - commands.py: number of args too much magic (e.g. in patch()) - automatic pull fallback to old-http:// - hg init|pull http://example.com doesn't say that no repo was found - hg annotate -u and hgweb annotate with long $EMAIL - hg pull default in a subdir doesn't work, if it is a relative path - optionally only show merges (two parents or parent != changeset-1, etc.) Web: - show tags in hgweb - show parent changeset number in hgweb - optionally only show merges (two parents or parent != changeset-1, etc.) - one hgweb with many repos (another script) - hgweb tip link too verbose - hgweb: deliver static files (e.g. favicon, stylesheets) - hgweb personalization: timezone (display/change), display of features - hg export 240 shows -tkmerge (good), hgweb does not (bad). - some web servers think hgweb.cgi.[di] is a CGI script with old-http:// (use quoting (see foo.d in Core) or document server configurations?) - link children in hgweb - search field searching in descriptions, file names, what else?