changeset 5143:d4fa6bafc43a

Remove trailing spaces, fix indentation
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 07 Aug 2007 10:28:43 +0200
parents 2ffe3e2a1ac2
children 07735e2d24cb
files contrib/hgk hgext/convert/__init__.py hgext/convert/common.py hgext/convert/hg.py hgext/convert/subversion.py hgext/extdiff.py hgext/imerge.py hgext/record.py mercurial/patch.py tests/test-extdiff
diffstat 10 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/hgk	Tue Aug 07 10:28:14 2007 +0200
+++ b/contrib/hgk	Tue Aug 07 10:28:43 2007 +0200
@@ -32,7 +32,7 @@
     # if we are outside the app, try and scroll the focus widget
     if {![winfo exists $w]} { catch {set w [focus]} }
     if {[winfo exists $w]} {
-        
+
         if {[bind $w $evt] ne ""} {
             # Awkward ... this widget has a MouseWheel binding, but to
             # trigger successfully in it, we must give it focus.
@@ -70,7 +70,7 @@
 bind all <MouseWheel> [list ::tk::MouseWheel %W %X %Y %D 0]
 
 # end of win32 section
-} 
+}
 
 
 proc gitdir {} {
--- a/hgext/convert/__init__.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/convert/__init__.py	Tue Aug 07 10:28:43 2007 +0200
@@ -326,7 +326,7 @@
             except KeyError, err:
                 pass
         return '', name, ''
-        
+
     def __call__(self, name):
         if self.include:
             inc = self.lookup(name, self.include)[0]
--- a/hgext/convert/common.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/convert/common.py	Tue Aug 07 10:28:43 2007 +0200
@@ -7,7 +7,7 @@
         lines = base64.encodestring(s)
         lines = [l.splitlines()[0] for l in lines]
         return ''.join(lines)
-    
+
     s = pickle.dumps(args)
     return encodearg(s)
 
--- a/hgext/convert/hg.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/convert/hg.py	Tue Aug 07 10:28:43 2007 +0200
@@ -165,7 +165,7 @@
             except TypeError:
                 pass
         return copies
-        
+
     def getcommit(self, rev):
         ctx = self.changectx(rev)
         parents = [hex(p.node()) for p in ctx.parents() if p.node() != nullid]
--- a/hgext/convert/subversion.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/convert/subversion.py	Tue Aug 07 10:28:43 2007 +0200
@@ -67,8 +67,8 @@
             for k, v in orig_paths.iteritems():
                 orig_paths[k] = changedpath(v)
         pickle.dump((orig_paths, revnum, author, date, message),
-                                fp, protocol)
-        
+                    fp, protocol)
+
     try:
         # Use an ra of our own so that our parent can consume
         # our results without confusing the server.
@@ -240,14 +240,14 @@
                         break
                     raise SubversionException("child raised exception", entry)
                 yield entry
-            
+
         args = [self.url, paths, start, end, limit, discover_changed_paths,
                 strict_node_history]
         arg = encodeargs(args)
         hgexe = util.hgexecutable()
         cmd = '"%s "debugsvnlog""' % util.shellquote(hgexe)
         stdin, stdout = os.popen2(cmd, 'b')
-        
+
         stdin.write(arg)
         stdin.close()
 
@@ -540,7 +540,7 @@
             parents = []
             orig_paths = orig_paths.items()
             orig_paths.sort()
-            
+
             # check whether this revision is the start of a branch
             path, ent = orig_paths and orig_paths[0] or (None, None)
             if ent and path == self.module:
--- a/hgext/extdiff.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/extdiff.py	Tue Aug 07 10:28:43 2007 +0200
@@ -64,7 +64,7 @@
     base = os.path.join(tmproot, dirname)
     os.mkdir(base)
     ui.note(_('making snapshot of %d files from rev %s\n') %
-                 (len(files), short(node)))
+            (len(files), short(node)))
     for fn in files:
         if not fn in mf:
             # skipping new file after a merge ?
@@ -90,7 +90,7 @@
     base = os.path.join(tmproot, dirname)
     os.mkdir(base)
     ui.note(_('making snapshot of %d files from working dir\n') %
-                 (len(files)))
+            (len(files)))
     for fn in files:
         wfn = util.pconvert(fn)
         ui.note('  %s\n' % wfn)
@@ -102,7 +102,7 @@
         for chunk in util.filechunkiter(repo.wopener(wfn)):
             fp.write(chunk)
     return dirname
-    
+
 
 def dodiff(ui, repo, diffcmd, diffopts, pats, opts):
     node1, node2 = cmdutil.revpair(repo, opts['rev'])
@@ -133,14 +133,14 @@
         if changes == 1 :
             if len(modified):
                 dir1 = os.path.join(dir1, util.localpath(modified[0]))
-                dir2 = os.path.join(dir2root, dir2, util.localpath(modified[0]))  
+                dir2 = os.path.join(dir2root, dir2, util.localpath(modified[0]))
             elif len(removed) :
                 dir1 = os.path.join(dir1, util.localpath(removed[0]))
                 dir2 = os.devnull
             else:
                 dir1 = os.devnull
-                dir2 = os.path.join(dir2root, dir2, util.localpath(added[0]))  
-    
+                dir2 = os.path.join(dir2root, dir2, util.localpath(added[0]))
+
         cmdline = ('%s %s %s %s' %
                    (util.shellquote(diffcmd), ' '.join(diffopts),
                     util.shellquote(dir1), util.shellquote(dir2)))
--- a/hgext/imerge.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/imerge.py	Tue Aug 07 10:28:43 2007 +0200
@@ -340,7 +340,7 @@
         rev = opts.get('rev')
         if rev and args:
             raise util.Abort('please specify just one revision')
-        
+
         if len(args) == 2 and args[0] == 'load':
             pass
         else:
--- a/hgext/record.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/hgext/record.py	Tue Aug 07 10:28:43 2007 +0200
@@ -71,7 +71,7 @@
         for h in self.header:
             if h.startswith('index '):
                 return True
-        
+
     def pretty(self, fp):
         for h in self.header:
             if h.startswith('index '):
@@ -213,7 +213,7 @@
             'range': {'context': addcontext,
                       'hunk': addhunk},
             }
-             
+
     p = parser()
 
     state = 'context'
@@ -311,7 +311,7 @@
         for h in chunks:
             try: contenders.update(dict.fromkeys(h.files()))
             except AttributeError: pass
-            
+
         newfiles = [f for f in files if f in contenders]
 
         if not newfiles:
--- a/mercurial/patch.py	Tue Aug 07 10:28:14 2007 +0200
+++ b/mercurial/patch.py	Tue Aug 07 10:28:43 2007 +0200
@@ -321,7 +321,7 @@
                         os.mkdir(d)
             self.lines = []
             self.exists = False
-            
+
         self.hash = {}
         self.dirty = 0
         self.offset = 0
@@ -350,7 +350,7 @@
             vala = abs(a - linenum)
             valb = abs(b - linenum)
             return cmp(vala, valb)
-            
+
         try:
             cand = self.hash[l]
         except:
@@ -706,7 +706,7 @@
 
     def old(self, fuzz=0, toponly=False):
         return self.fuzzit(self.a, fuzz, toponly)
-        
+
     def newctrl(self):
         res = []
         for x in self.hunk:
@@ -842,7 +842,7 @@
     """reads a patch from fp and tries to apply it.  The dict 'changed' is
        filled in with all of the filenames changed by the patch.  Returns 0
        for a clean patch, -1 if any rejects were found and 1 if there was
-       any fuzz.""" 
+       any fuzz."""
 
     def scangitpatch(fp, firstline, cwd=None):
         '''git patches can modify a file, then copy that file to
--- a/tests/test-extdiff	Tue Aug 07 10:28:14 2007 +0200
+++ b/tests/test-extdiff	Tue Aug 07 10:28:43 2007 +0200
@@ -24,7 +24,7 @@
 echo b >> a
 hg ci -d '1 0' -mtest2
 
-# should diff cloned files directly 
+# should diff cloned files directly
 hg falabala -r 0:1
 
 # test diff during merge
@@ -34,7 +34,7 @@
 hg ci -m "new branch" -d '1 0'
 hg update -C 1
 hg merge tip
-# should diff cloned file against wc file 
+# should diff cloned file against wc file
 hg falabala > out || echo "diff-like tools yield a non-zero exit code"
 # cleanup the output since the wc is a tmp directory
 sed  's:\(.* \).*\(\/test-extdiff\):\1[tmp]\2:' out