Commits

Nicolas Dumazet  committed a48142c

remove trailing whitespace

  • Participants
  • Parent commits c210240

Comments (0)

Files changed (1)

 
 def subrepo(ui, repo, **opts):
     '''allows for easy(er) management of mutiple subrepositories at once
-    
+
     This extension provides the ability to batch-process subrepositories
-    with a few defined commands. Each command generally loops through the 
+    with a few defined commands. Each command generally loops through the
     subrepositories listed in .hgsub, and simply calls an hg action.
-    
+
     Subrepositories can be complicated, and this extension should not be
     used as a bludgeon, but rather a scalpal. It is for the occasions that
-    active development of the main repo is dependent on the subrepos having 
-    the newest, bleeding edge code. This extension is nothing 
-    but a series of for loops! 
-     
-    Watch the output in case user intervention / remediation is required, 
+    active development of the main repo is dependent on the subrepos having
+    the newest, bleeding edge code. This extension is nothing
+    but a series of for loops!
+
+    Watch the output in case user intervention / remediation is required,
     and always remember that updating subrepos will usually require a commit
-    of the parent repo in order to update the .hgsubstate file (and thus the 
+    of the parent repo in order to update the .hgsubstate file (and thus the
     revision the subrepo is locked at).
     '''
-    
+
     optList = opts.get('list', None)
     optReclone = opts.get('reclone', None)
     optPull = opts.get('pull', None)
     optUpdate = opts.get('update', None)
     optFetch = opts.get('fetch', None)
-    
+
     if optList:
         ui.status("listing subrepos:\n-------\n")
         listSubrepos(ui, repo)
         ui.status("-------\n")
-    
+
     if optReclone:
         ui.status("checking for missing subrepo clones...\n")
         rs = getSubreposFromHgsub(repo)
             else:
                 recloneSubrepo(ui, r[0], r[1])
         ui.status("finishing recloning\n")
-    
+
     if optPull:
         ui.status("pulling all subrepos...\n");
         rs = getSubreposFromHgsub(repo)
                 recloneSubrepo(ui, r[0], r[1])
         ui.status("---------------------------\n")
         ui.status("finished fetching, be sure to commit parent repo to update .hgsubstate\n")
-    
+
 def getSubreposFromHgsub(repo):
     root = repo.root
     f = open(root + "/.hgsub")
     ui.status("* " + local + " is missing, recloning...\n");
     args = shlex.split("clone "+remote+" "+local)
     dispatch._runcatch(ui, args)
-    
+
 # Macro extension meta-data
 cmdtable = {
-    "subrepo": 
-        (subrepo, 
+    "subrepo":
+        (subrepo,
          [('l', 'list', None, _('list registered subrepositories')),
           ('c', 'reclone', None, _('reclone all missing but registered subrepositories (as defined in .hgsub), leaving existing ones intact; this does not look at nor modify .hgsubstate!')),
           ('p', 'pull', None, _('call hg pull within each subrepository')),
           ('u', 'update', None, _('call hg update within each subrepository')),
           ('f', 'fetch', None, _('call hg fetch within each subrepository'))
-         ], 
+         ],
          _('hg subrepo [ACTION]'))
 }