Commits

Anonymous committed 73e469a

we don’t need os or __name__ == "__main__"

Comments (0)

Files changed (1)

pullnamespacedbookmarks.py

 #!/usr/bin/env python
 # encoding: utf-8
 
-"""pull namespaced bookmarks."""
+"""pull namespaced bookmarks.
 
-import os
+Usage: 
+
+    hg --config extensions.bran=<path/to/pullnamespacedbookmarks.py> [--prefix <prefix>] [--postfix <postfix>] repo
+
+"""
+
 from mercurial import commands
 
 def pullnamespacedbookmarks(ui, repo, target=None, prefix="", postfix="", **opts):
 ],
                      "[options] [repo]")
 }
-
-if __name__ == "__main__": 
-    print """Take the branch rebasing challenge: http://felipec.wordpress.com/2011/01/16/mercurial-vs-git-its-all-in-the-branches/
-
-This is a mercurial extension (now). 
-
-Run it in an empty repo with 
-
-    hg --config extensions.bran=<path/to/pullnamespacedbookmarks.py> [--prefix <prefix>] [--postfix <postfix>] repo
-
-Enjoy your time with Mercurial!
-"""