# # # delete "tracvc/mtn/per-file-dag.py" # # patch "setup.py" # from [ed525c593332de97167344f0b6cabd40777e02ba] # to [3c0473b7048a72bcd75655847a36bebd5b705299] # # patch "tracvc/mtn/__init__.py" # from [da39a3ee5e6b4b0d3255bfef95601890afd80709] # to [155004c6ec268ce1f421896c8db6bfc32b37bcea] # # patch "tracvc/mtn/automate.py" # from [f1c452df7e687d3abbc86b0cba3ec34dd597a92f] # to [1cabae2a601a4a744d60267eb278beb687b542dc] # # patch "tracvc/mtn/backend.py" # from [adb26e42b5c2d1364a9bf42fb6ec558c8f2b611c] # to [16a92a8ac8deb5ddbd48780da32781d005ffd5b1] # # patch "tracvc/mtn/basic_io.py" # from [01402b1c9bbaa91b5f02ace419e8f5790a0ba779] # to [695987e1e39467a82c95bb1027dcbc8dc2457e5c] # # patch "tracvc/mtn/cache.py" # from [bc5c1e4f78fff49ac37e54464d7a7ead8b268037] # to [d3523d72b987f92937c6b537803bde4c11e668ff] # # patch "tracvc/mtn/heights.py" # from [fbdb7b7a6a1166f98aadee49e2d045a41499c16a] # to [765aeb820957c1466ecd40203d0621ad1b1385bb] # # patch "tracvc/mtn/log.py" # from [956e425e191aa2314cc10501a0c814bdd7d841ac] # to [6095dd2e319816d668b25296dbe16a70c33b0768] # # patch "tracvc/mtn/util.py" # from [187516de557db811e1dcb949643d1deec8041671] # to [e073d76fa3050b8fd42874838ba78ed3734ed291] # ============================================================ --- setup.py ed525c593332de97167344f0b6cabd40777e02ba +++ setup.py 3c0473b7048a72bcd75655847a36bebd5b705299 @@ -1,16 +1,44 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +Trac Plugin for Monotone +Copyright 2006, 2007 Thomas Moschny (address@hidden) + +{{{ +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +USA +}}} + +""" + from setuptools import setup +from tracvc.mtn import __version__ as VERSION setup( name = 'TracMonotone', keywords = 'trac monotone scm plugin mtn', - version = '0.0.2', + version = VERSION, author = 'Thomas Moschny', author_email = 'address@hidden', packages = ['tracvc', 'tracvc.mtn'], data_files = ['README', 'COPYING'], description = 'Monotone Plugin for Trac', - entry_points={'trac.plugins': 'mtn = tracvc.mtn.backend'}, + url = 'http://tracmtn.1erlei.de/', + entry_points = { + 'trac.plugins': 'mtn = tracvc.mtn.backend', + }, license = 'GPL', ) ============================================================ --- tracvc/mtn/__init__.py da39a3ee5e6b4b0d3255bfef95601890afd80709 +++ tracvc/mtn/__init__.py 155004c6ec268ce1f421896c8db6bfc32b37bcea @@ -0,0 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +__version__ = '0.0.2' + ============================================================ --- tracvc/mtn/automate.py f1c452df7e687d3abbc86b0cba3ec34dd597a92f +++ tracvc/mtn/automate.py 1cabae2a601a4a744d60267eb278beb687b542dc @@ -1,7 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify ============================================================ --- tracvc/mtn/backend.py adb26e42b5c2d1364a9bf42fb6ec558c8f2b611c +++ tracvc/mtn/backend.py 16a92a8ac8deb5ddbd48780da32781d005ffd5b1 @@ -1,7 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify ============================================================ --- tracvc/mtn/basic_io.py 01402b1c9bbaa91b5f02ace419e8f5790a0ba779 +++ tracvc/mtn/basic_io.py 695987e1e39467a82c95bb1027dcbc8dc2457e5c @@ -1,7 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify ============================================================ --- tracvc/mtn/cache.py bc5c1e4f78fff49ac37e54464d7a7ead8b268037 +++ tracvc/mtn/cache.py d3523d72b987f92937c6b537803bde4c11e668ff @@ -1,7 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify ============================================================ --- tracvc/mtn/heights.py fbdb7b7a6a1166f98aadee49e2d045a41499c16a +++ tracvc/mtn/heights.py 765aeb820957c1466ecd40203d0621ad1b1385bb @@ -1,8 +1,11 @@ #!/usr/bin/env python -# -*-mode:python, encoding: utf-8-*- +# -*- coding: utf-8 -*- # -# Create topologically sorted numbers for all revisions +# Create topologically sorted numbers for all revisions. # +# Note: This is a prototype. The final algorithm implemented in mtn +# behaves slightly different, especially for some corner cases. +# # Author: Thomas Moschny # @@ -88,8 +91,14 @@ def main(): roots = args or repo.roots() heights = get_heights(roots).items() - heights.sort(lambda x, y: listcompare(x[1], y[1])) + def heightcmp(x,y): + ret = listcompare(x[1], y[1]) + assert ret != 0 + return ret + + heights.sort(heightcmp) + for rev, number in heights: print '.'.join(["%d" % i for i in number]), rev, \ ','.join(branches(rev)) ============================================================ --- tracvc/mtn/log.py 956e425e191aa2314cc10501a0c814bdd7d841ac +++ tracvc/mtn/log.py 6095dd2e319816d668b25296dbe16a70c33b0768 @@ -1,9 +1,9 @@ Trac Plugin for Monotone #!/usr/bin/env python # -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify ============================================================ --- tracvc/mtn/util.py 187516de557db811e1dcb949643d1deec8041671 +++ tracvc/mtn/util.py e073d76fa3050b8fd42874838ba78ed3734ed291 @@ -1,7 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- """ Trac Plugin for Monotone -Copyright 2006, Thomas Moschny (address@hidden) +Copyright 2006, 2007 Thomas Moschny (address@hidden) {{{ This program is free software; you can redistribute it and/or modify