##// END OF EJS Templates
[PATCH] replace history with log...
mpm@selenic.com -
r509:98a2935c default
parent child Browse files
Show More
@@ -146,16 +146,6 b' heads::'
146 146 changesets. They are where development generally takes place and
147 147 are the usual targets for update and merge operations.
148 148
149 history::
150 Print a log of the revision history of the repository.
151
152 By default this command outputs: changeset id and hash, tags,
153 parents, user, date and time, and a summary for each commit. The
154 -v switch adds some more detail, such as changed files, manifest
155 hashes or message signatures.
156
157 To display the history of a given file, see the log command.
158
159 149 identify::
160 150 Print a short summary of the current state of the repo.
161 151
@@ -178,11 +168,15 b' import [-p <n> -b <base> -q] <patches>::'
178 168 init::
179 169 Initialize a new repository in the current directory.
180 170
181 log <file>::
182 Print the revision history of the specified file.
171 log [file]::
172 Print the revision history of the specified file or the entire project.
183 173
184 To display the revision history for the whole repository, use the history
185 command.
174 By default this command outputs: changeset id and hash, tags,
175 parents, user, date and time, and a summary for each commit. The
176 -v switch adds some more detail, such as changed files, manifest
177 hashes or message signatures.
178
179 aliases: history
186 180
187 181 manifest [revision]::
188 182 Print a list of version controlled files for the given revision.
@@ -434,11 +434,6 b' def heads(ui, repo):'
434 434 for n in repo.changelog.heads():
435 435 show_changeset(ui, repo, changenode=n)
436 436
437 def history(ui, repo):
438 """show the changelog history"""
439 for i in range(repo.changelog.count() - 1, -1, -1):
440 show_changeset(ui, repo, rev=i)
441
442 437 def identify(ui, repo):
443 438 """print information about the working copy"""
444 439 parents = [p for p in repo.dirstate.parents() if p != hg.nullid]
@@ -511,13 +506,16 b' def init(ui, source=None):'
511 506 sys.exit(1)
512 507 repo = hg.repository(ui, ".", create=1)
513 508
514 def log(ui, repo, f):
515 """show the revision history of a single file"""
516 f = relpath(repo, [f])[0]
517
518 r = repo.file(f)
519 for i in range(r.count() - 1, -1, -1):
520 show_changeset(ui, repo, filelog=r, rev=i)
509 def log(ui, repo, f = None):
510 """show the revision history of the repository or a single file"""
511 if f:
512 f = relpath(repo, [f])[0]
513 r = repo.file(f)
514 for i in range(r.count() - 1, -1, -1):
515 show_changeset(ui, repo, filelog=r, rev=i)
516 else:
517 for i in range(repo.changelog.count() - 1, -1, -1):
518 show_changeset(ui, repo, rev=i)
521 519
522 520 def manifest(ui, repo, rev = []):
523 521 """output the latest or given revision of the project manifest"""
@@ -745,7 +743,6 b' table = {'
745 743 "export": (export, [], "hg export <changeset>"),
746 744 "forget": (forget, [], "hg forget [files]"),
747 745 "heads": (heads, [], 'hg heads'),
748 "history": (history, [], 'hg history'),
749 746 "help": (help, [], 'hg help [command]'),
750 747 "identify|id": (identify, [], 'hg identify'),
751 748 "import|patch": (import_,
@@ -753,7 +750,7 b' table = {'
753 750 ('b', 'base', "", 'base path')],
754 751 "hg import [options] <patches>"),
755 752 "init": (init, [], 'hg init'),
756 "log": (log, [], 'hg log <file>'),
753 "log|history": (log, [], 'hg log [file]'),
757 754 "manifest": (manifest, [], 'hg manifest [rev]'),
758 755 "parents": (parents, [], 'hg parents [node]'),
759 756 "pull": (pull,
@@ -13,11 +13,10 b' hg commands:'
13 13 forget don't add the specified files on the next commit
14 14 heads show current repository heads
15 15 help show help for a given command or all commands
16 history show the changelog history
17 16 identify print information about the working copy
18 17 import import an ordered set of patches
19 18 init create a new repository in the current directory
20 log show the revision history of a single file
19 log show the revision history of the repository or a single file
21 20 manifest output the latest or given revision of the project manifest
22 21 parents show the parents of the current working dir
23 22 pull pull changes from the specified source
@@ -65,11 +64,10 b' hg commands:'
65 64 forget don't add the specified files on the next commit
66 65 heads show current repository heads
67 66 help show help for a given command or all commands
68 history show the changelog history
69 67 identify print information about the working copy
70 68 import import an ordered set of patches
71 69 init create a new repository in the current directory
72 log show the revision history of a single file
70 log show the revision history of the repository or a single file
73 71 manifest output the latest or given revision of the project manifest
74 72 parents show the parents of the current working dir
75 73 pull pull changes from the specified source
General Comments 0
You need to be logged in to leave comments. Login now