1. Augie Fackler
  2. hgsubversion

Commits

Mitsuhiro Koga  committed b303b60

wrappers: Return the same value as the original incoming command

  • Participants
  • Parent commits 6315bdd
  • Branches default

Comments (0)

Files changed (1)

File hgsubversion/wrappers.py

View file
  • Ignore whitespace
     svnrevisions = list(svn.revisions(start=meta.revmap.youngest))
     if opts.get('newest_first'):
         svnrevisions.reverse()
+    # Returns 0 if there are incoming changes, 1 otherwise.
+    if len(svnrevisions) > 0:
+        ret = 0
+    else:
+        ret = 1
     for r in svnrevisions:
         ui.status('\n')
         for label, attr in revmeta:
             if not ui.verbose:
                 val = val.split('\n')[0]
             ui.status('%s%s\n' % (l1.ljust(13), val))
+    return ret
 
 
 def findcommonoutgoing(repo, other, onlyheads=None, force=False, commoninc=None):