[PATCH 1 of 1] Fix exception in hgit checking for 'max-nr' option for rev-list command

Lee Cantey lcantey at gmail.com
Fri Sep 9 02:33:04 CDT 2005


# HG changeset patch
# User Lee Cantey <lcantey at gmail.com>
# Node ID 9d6023aa8650960d6c0d112438bfb3db9a85abfb
# Parent  1ac04d4be3efc69dff1ce4020cf4ad6aabfae2ad
Fix exception in hgit checking for 'max-nr' option for rev-list command.

* hgit (revlist): Change lookup of long option max-nr to max_nr in options
returned from fancyopts based on change
34be48b4ca852c89fda5ad242a7ed47151758bcd "Map long option names containing
dashes to ones containing underscores."

diff -r 1ac04d4be3ef -r 9d6023aa8650 contrib/hgit
--- a/contrib/hgit	Fri Sep  9 06:44:53 2005
+++ b/contrib/hgit	Fri Sep  9 06:57:40 2005
@@ -214,7 +214,7 @@
         full = None
     for i in range(1, len(args)):
         args[i] = '^' + args[i]
-    revtree(args, repo, full, doptions['max-nr'])
+    revtree(args, repo, full, doptions['max_nr'])
 
 def catchterm(*args):
     raise SignalInterrupt


More information about the Mercurial mailing list