def __call__(self): options, args = self.parser.parse_args(self.gitify.args[2:]) stashed = False if local_changes(): stashed = True print "Stashing uncommitted local changes." status, dummy = popen('git stash', False, False) status, dummy = popen('git svn rebase', False, False) for line in dummy: print line if stashed: status, dummy = popen('git stash pop', False, False)
def __call__(self): options, args = self.parser.parse_args(self.gitify.args[2:]) if not is_svn(): print "This only works on svn checkouts!" sys.exit(1) stashed = False if local_changes(): stashed = True print "Stashing uncommitted local changes." status, dummy = popen('git stash', False, False) status, dummy = popen('git svn rebase', False, False) for line in dummy: print line if stashed: status, dummy = popen('git stash pop', False, False)
def __call__(self): options, args = self.parser.parse_args(self.gitify.args[2:]) if not is_svn(): print "This only works on svn checkouts!" sys.exit(1) stashed = False if local_changes(): stashed = True print "Stashing uncommitted local changes." status, dummy = popen("git stash", False, False) status, dummy = popen("git svn rebase", False, False) for line in dummy: print line if stashed: status, dummy = popen("git stash pop", False, False)