diff options
Diffstat (limited to 'libbe/storage/vcs/monotone.py')
-rw-r--r-- | libbe/storage/vcs/monotone.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libbe/storage/vcs/monotone.py b/libbe/storage/vcs/monotone.py index abd3142..add7be9 100644 --- a/libbe/storage/vcs/monotone.py +++ b/libbe/storage/vcs/monotone.py @@ -38,6 +38,11 @@ if libbe.TESTING == True: import sys +# https://stackoverflow.com/a/56719588/164233 +def cmp(a, b): + return (int(a) > int(b)) - (int(a) < int(b)) + + def new(): return Monotone() @@ -315,15 +320,15 @@ class Monotone (base.VCS): # old_revision [1ce9ac2cfe3166b8ad23a60555f8a70f37686c25] # # delete ".be/dir/bugs/moved" - # + # # delete ".be/dir/bugs/removed" - # + # # add_file ".be/dir/bugs/moved2" # content [33e4510df9abef16dad7c65c0775e74602cc5005] - # + # # add_file ".be/dir/bugs/new" # content [45c45b5630f7446f83b0e14ee1525e449a06131c] - # + # # patch ".be/dir/bugs/modified" # from [809bf3b80423c361849386008a0ce01199d30929] # to [f13d3ec08972e2b41afecd9a90d4bc71cdcea338] |