Kiln » Kiln Extensions
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip

Kiln 3.1.424 extensions

Changeset 1f18453ba26a

Parent c6b44e175bf4

by Profile picture of User 686Jack Bowman <jack@fogcreek.com>

Changes to 2 files · Browse files at 1f18453ba26a Showing diff from parent c6b44e175bf4 Diff from another changeset...

Change 1 of 1 Show Entire File big-push.py Stacked
 
102
103
104
105
 
 
 
 
 
 
 
106
107
108
 
102
103
104
 
105
106
107
108
109
110
111
112
113
114
@@ -102,7 +102,13 @@
  current_push_size = min(push_size, len(outgoing))   ui.debug('pushing: %d\n' % current_push_size)   # force the push, because we checked above that by the time the whole push is done, we'll have merged back to one head - remote_heads = repo.push(other, force=True, revs=outgoing[:current_push_size]) + try: + # mercurial < 3.2 + remote_heads = repo.push(other, force=True, revs=outgoing[:current_push_size]) + except AttributeError: + # mercurial 3.2+ + from mercurial import exchange + remote_heads = exchange.push(repo, other, force=True, revs=outgoing[:current_push_size])   if remote_heads: # push succeeded   outgoing = outgoing[current_push_size:]   ui.debug('pushed %d ok\n' % current_push_size)
Change 1 of 1 Show Entire File kilnauth.py Stacked
 
96
97
98
99
 
100
101
102
 
96
97
98
 
99
100
101
102
@@ -96,7 +96,7 @@
 def get_cookiejar(ui):   global current_user   if os.name == 'nt': - cookie_path = os.path.expanduser('~\\_hgcookies') + cookie_path = cookie_path = os.path.expandvars(os.path.expanduser('~\\_hgcookies'))   else:   cookie_path = os.path.expanduser('~/.hgcookies')