Python DVCS PEP - integrate info extension?
Arne Babenhauserheide
arne_bab at web.de
Tue Jan 20 11:29:09 CST 2009
Hi,
In the DVCS PEP I just read the following:
"For this to happen I first had to remember the URLs for the repositories.
Instead of simply looking in this PEP, though, I decided to try to figure it
out from the command-line help for each tool or simply guessing. Bzr worked
out great with ``bzr info``. Git took a little poking around, but I figured
out ``git remote show origin`` told me what I needed. For hg, though, I
couldn't figure it out short of running ``hg pull`` and denoting the status
information during the pull."
- http://docs.google.com/View?docid=dg7fctr4_40dvjkdg64
This is suboptimal (and I also stumbled over that from time to time).
To fix this, could the info command be integrated into Mercurial?
- http://www.selenic.com/mercurial/wiki/index.cgi/InfoExtension
I just updated the info extension to work with hg 1.1.
$ diff info-old.py info.py
##################### Patch #######################
--- info-old.py 2009-01-20 18:24:44.000000000 +0100
+++ info.py 2009-01-20 18:23:12.000000000 +0100
@@ -14,7 +14,7 @@
"""Print information about the repository"""
ui.write(_("Repository: %s\n") % (repo.root,))
ui.write(_("Base Hash: %s\n") % (hex(repo.changectx(0).node()),))
- ui.write(_("Revisions: %s\n") % (repo.changelog.count(),))
+ ui.write(_("Revisions: %s\n") % (len(repo.changelog),))
ui.write(_("Files: %s\n") % (len(repo.changectx(None).manifest()),))
ui.write(_("Cloned From: %s\n") % (ui.config('paths','default'),))
default_push = ui.config('paths','default-push')
##################### #######################
Best wishes,
Arne
PS: I'm unavailable right now (should be; learning for an upcoming exam).
--
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the
history of free software.
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)
-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090120/9239a1c7/attachment.pgp
More information about the Mercurial
mailing list