Polish revolutionaries participated in uprisings in Prussia , Austrian Empire and Imperial Russia Polish legions fought alongside Napoleon and under the slogan of For our freedom and yours participated widely in the Spring of Nations ( particularly Hungarian Revolution ( 1848 ) ) . Polish revolutionaries participated in uprisings in Prussia , the Austrian Empire and Imperial Russia Polish legions fought alongside Napoleon and under the slogan of For our freedom and yours participated widely in the Spring of Nations ( particularly Hungarian Revolution ( 1848 ) ) .