comparison doc/hg.1.txt @ 612:9cd745437269

On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote: # HG changeset patch # User Alecs King <alecsk@gmail.com> On Sat, Jul 02, 2005 at 02:11:34PM -0700, Matt Mackall wrote: > On Sun, Jul 03, 2005 at 12:49:27AM +0800, Alecs King wrote: > > Hg is really very nice. The only feature i miss from git is the > > whatchanged -p, which shows a diff along with a changeset. > > python before, i just dig into the mercurial/commands.py a while and > > see what diff(), dodiff(), export(), show_changeset(), log() would > > normally do. There might be one thing or two missed or wrong. But here > > it is: a '-d' option to 'hg log' showing the diff info. You can use 'hg > > log -d' to show the whole history with the diff or 'hg log -d <file>' to > > show that info of a particular file. And also works with the '-r' > > option. > > Let's use -p. We're going to be combining the global and per command > switch namespace shortly and the global -p will disappear. Okay. '-d' changed to '-p'. Just like 'whatchanged -p', now we have 'hg log -p'. > Also, the argument list for show_changeset is getting a bit unwieldy. This time i remain show_changeset untouched at all. Only changed some bits of log().
author Alecs King <alecsk@gmail.com>
date Mon, 04 Jul 2005 12:15:44 -0800
parents d2994b5298fb
children b6c42714d900
comparison
equal deleted inserted replaced
611:48c3eb2bf844 612:9cd745437269
181 aliases: patch 181 aliases: patch
182 182
183 init:: 183 init::
184 Initialize a new repository in the current directory. 184 Initialize a new repository in the current directory.
185 185
186 log [-r revision ...] [file]:: 186 log [-r revision ...] [-p] [file]::
187 Print the revision history of the specified file or the entire project. 187 Print the revision history of the specified file or the entire project.
188 188
189 By default this command outputs: changeset id and hash, tags, 189 By default this command outputs: changeset id and hash, tags,
190 parents, user, date and time, and a summary for each commit. The 190 parents, user, date and time, and a summary for each commit. The
191 -v switch adds some more detail, such as changed files, manifest 191 -v switch adds some more detail, such as changed files, manifest
192 hashes or message signatures. 192 hashes or message signatures.
193 193
194 When a revision argument is given, only this file or changelog revision 194 options:
195 is displayed. With two revision arguments all revisions in this range 195 -r, --rev <A>, ... When a revision argument is given, only this file or
196 are listed. Additional revision arguments may be given repeating the above 196 changelog revision is displayed. With two revision
197 cycle. 197 arguments all revisions in this range are listed.
198 Additional revision arguments may be given repeating
199 the above cycle.
200 -p, --patch show patch
198 201
199 aliases: history 202 aliases: history
200 203
201 manifest [revision]:: 204 manifest [revision]::
202 Print a list of version controlled files for the given revision. 205 Print a list of version controlled files for the given revision.