--- a/hgext/qsync.py Wed Mar 28 14:09:01 2012 +0200
+++ b/hgext/qsync.py Thu Mar 29 17:18:43 2012 +0200
@@ -124,9 +124,12 @@
def get_current_data(repo):
"""Return what would be exported if not previous data exists"""
data = []
- for ctx in repo.set('draft() - obsolete()'):
+ for ctx in repo.set('draft() - (obsolete() + merge())'):
name = makename(ctx)
data.append([ctx.hex(), makename(ctx)])
+ merges = repo.revs('draft() and merge()')
+ if merges:
+ repo.ui.warn('ignoring %i merge\n' % len(merges))
return data