[Python-checkins] devguide: Convert more FAQ entries to hg

antoine.pitrou python-checkins at python.org
Sun Feb 6 20:30:00 CET 2011


antoine.pitrou pushed a7601e01038b to devguide:

http://hg.python.org/devguide/rev/a7601e01038b
changeset:   254:a7601e01038b
branch:      hg_transition
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Feb 06 20:12:45 2011 +0100
summary:
  Convert more FAQ entries to hg

files:
  faq.rst

diff --git a/faq.rst b/faq.rst
--- a/faq.rst
+++ b/faq.rst
@@ -302,15 +302,15 @@
 
 Running::
 
- svn revert PATH
+ hg revert PATH
 
-will change ``PATH`` to match the version in the repository, throwing away any
+will revert ``PATH`` to its version in the repository, throwing away any
 changes you made locally.  If you run::
 
- svn revert -R .
+ hg revert -a
 
-from the root of your local repository it will recursively restore everything
-to match up with the main server.
+from the root of your working copy it will recursively restore everything
+to match up with the repository.
 
 
 How do I find out who edited or what revision changed a line last?
@@ -322,26 +322,29 @@
 
 This will output to stdout every line of the file along with which revision
 last modified that line.  When you have the revision number, it is then
-easy to display it in detail using::
+easy to :ref:`display it in detail <hg-log>`.
 
- hg log -vp -r <revision number>
 
+.. _hg-log:
 
 How can I see a list of log messages for a file or specific revision?
 ---------------------------------------------------------------------
 
-To see the log messages for a specific file, run::
+To see the history of changes for a specific file, run::
 
- svn log PATH
+ hg log -v [PATH]
 
-That will list all messages that pertain to the file specified in ``PATH``.
+That will list all messages of revisions which modified the file specified
+in ``PATH``.  If ``PATH`` is omitted, all revisions are listed.
 
-If you want to view the log message for a specific revision, run::
+If you want to display line-by-line differences for each revision as well,
+add the ``-p`` option::
 
- svn log --verbose -r REV
+ hg log -vp [PATH]
 
-With ``REV`` substituted with the revision number.  The ``--verbose`` flag
-should be used to get a listing of all files modified in that revision.
+If you want to view the differences for a specific revision, run::
+
+ hg log -vp -r <revision number>
 
 
 How do I get a diff between the repository and my working copy for a file?

--
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list